Thread (19 messages) 19 messages, 5 authors, 2004-10-09

Re: slab fragmentation ?

From: Martin J. Bligh <hidden>
Date: 2004-09-30 14:49:56

--Andrew Morton [off-list ref] wrote (on Wednesday, September 29, 2004 20:41:43 -0700):
Badari Pulavarty [off-list ref] wrote:
quoted
# name            <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab> : tunables <batchcount> <limit> <sharedfactor> : slabdata <active_slabs> <num_slabs> <sharedavail>
size-40             2633  11468     64   61    1 : tunables  120   60    8 : slabdata    188    188      0
size-40             2633  11468     64   61    1 : tunables  120   60    8 : slabdata    188    188      0
size-40             2633  11468     64   61    1 : tunables  120   60    8 : slabdata    188    188      0
size-40             2633  11468     64   61    1 : tunables  120   60    8 : slabdata    188    188      0
size-40             4457  27084     64   61    1 : tunables  120   60    8 : slabdata    444    444      0
size-40             7685  59292     64   61    1 : tunables  120   60    8 : slabdata    972    972      0
size-40            10761  89548     64   61    1 : tunables  120   60    8 : slabdata   1468   1468      0
size-40            13589 119316     64   61    1 : tunables  120   60    8 : slabdata   1956   1956      0
size-40            16717 149084     64   61    1 : tunables  120   60    8 : slabdata   2444   2444      0
That looks like plain brokenness rather than fragmentation.  We shouldn't
be allocating new pages until active_objs reaches num_objs, should we?

Unless the accouting is broken, or course...
Doesn't this happen if we allocate 1000 slabs, then free half the elements
in each of the slabs? Which seemed to be the default action of the slab 
shrink routines ;-)

M.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help