migrating proc from zone to objcache
Nicolas Thery
nthery at gmail.com
Tue Apr 1 10:59:00 PDT 2008
2008/4/1, Nicolas Thery <nthery at gmail.com>:
> I ran make buildworld twice with procs in objcache and twice with
> procs allocated thru kmalloc() on a UP system. The runtime is
> identical in both cases and the ram footprint presumably smaller with
> kmalloc(). (Admittedly, 2 runs are not much for stat purpose but
> buildworld takes time.)
>
> I'm now running buildworld with procs in zones.
Same duration with zone.
> I gave a quick look at struct proc and I admit that there isn't much
> for pre-initialization as an instance inherits lots of stuff from its
> parent. I'll look at it again today more thoroughly.
>
> So, I'm inclined toward using kmalloc() right now. More on this
> tonight. It's time to go to my real job :-)
I'll go for kmalloc() for now as I'm a bit wary of changing the proc
construction/destruction code and I don't think there is much to
factor out. Anyway, there are very few lines of code impacted, so
changing again in the future is no big deal.
More information about the Kernel
mailing list