login
Header Space

 
 

Re: migrating proc from zone to objcache

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel@...>
Date: Monday, March 31, 2008 - 3:21 pm

I both agree and disagree with Jeff.  I think the only *disadvantage*
    to using objcache for struct proc is that objcache must cache a minimum
    number of free structures to be efficient so the overall kernel memory
    use would be a bit greater verses uses kmalloc().  But I agree with Jeff
    in that objcache's biggest advantage is that you can keep structural state
    intact and struct proc might not be a good candidate (yet).

    What I suggest is that you convert struct proc from zone to kmalloc
    first, and then look into a possible objcache adaptation.  kmalloc
    is not slow.. it's a very fast allocator.  Objcache is probably a tad
    faster but not by much.  Where objcache really wins is in not having
    to completey reinitialize the allocated structures.

    Over the years I've removed (I think) all the dependancies on requiring
    the proc structure to be in stable memory so I believe it can be moved to
    kmalloc/objcache now without any major pain.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: migrating proc from zone to objcache, Matthew Dillon, (Mon Mar 31, 3:21 pm)
Re: migrating proc from zone to objcache, Simon 'corecode' Schubert..., (Mon Mar 31, 3:39 pm)
speck-geostationary