DragonFly kernel List (threaded) for 2008-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: migrating proc from zone to objcache
2008/4/1, Nicolas Thery <nthery@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.
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]