On 2016-12-02 at 18:54 ron minnich <[email protected]> wrote: > barret, the arena work is awesome. > > how hard would you say it would be to add to another kernel, e.g. plan 9?
depends. you'll need to populate the base arena with memory (i do this based on multiboot info + the kernel's _end) and change all of the allocators. that shouldn't be too bad. one tricky thing is that some kernels use page refcnts to manage the lifetime of memory. that's a bit nasty, which is why i got rid of it. (there's a refd_pages abstraction for things that need it, like mlx4). that'll require looking at the various memory allocator interfaces in the kernel. i'd try and get arena.c ported. comment out the slab stuff (qcaches). once it's working for some dummy tests, then try to replace the main allocator with it. one problem is that i didn't sort out reclaim and blocking yet. so there might be a chunk of work in that area. that's sort of hooking into the OS from the "bottom" of the allocator, which hasn't really be done yet (even on akaros). barret -- You received this message because you are subscribed to the Google Groups "Akaros" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
