Re: [PATCH][RFC] slub: increasing order reduces memory usage of some key caches

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Richard Kennedy <richard@...>
Cc: <penberg@...>, <mpm@...>, linux-mm <linux-mm@...>, lkml <linux-kernel@...>, Mel Gorman <mel@...>
Date: Wednesday, July 16, 2008 - 9:21 am

Richard Kennedy wrote:



Good numbers....


Mel would be able to tell you that but I think we better figure out what went wrong first.



The order and waste calculation occurs in slab_order(). If modifications are needed then they need to occur in that function.

Looks like the existing code is not doing the best thing for dentries on your box?

On my 64 bit box dentries are 208 bytes long, 39 objects per page and 84 bytes
are lost per order 1 page. So this would not trigger your patch at all. There must be something special to your configuration.


/linux-2.6$ slabinfo dentry

Slabcache: dentry                Aliases:  0 Order :  1 Objects: 554209
** Reclaim accounting active

Sizes (bytes)     Slabs              Debug                Memory
------------------------------------------------------------------------
Object :     208  Total  :   14215   Sanity Checks : Off  Total: 116449280
SlabObj:     208  Full   :   14179   Redzoning     : Off  Used : 115275472
SlabSiz:    8192  Partial:      32   Poisoning     : Off  Loss : 1173808
Loss   :       0  CpuSlab:       4   Tracking      : Off  Lalig:       0
Align  :       8  Objects:      39   Tracing       : Off  Lpadd: 1137200


Can you post the slabinfo information about the caches that you are concerned with? Please a before and after state.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH][RFC] slub: increasing order reduces memory usage..., Christoph Lameter, (Wed Jul 16, 11:52 am)
Re: [PATCH][RFC] slub: increasing order reduces memory usage..., Christoph Lameter, (Wed Jul 16, 9:21 am)
Re: [PATCH][RFC] slub: increasing order reduces memory usage..., Christoph Lameter, (Wed Jul 16, 10:03 am)
Re: [PATCH][RFC] slub: increasing order reduces memory usage..., Christoph Lameter, (Fri Jul 18, 10:20 am)
Re: [PATCH][RFC] slub: increasing order reduces memory usage..., Christoph Lameter, (Fri Jul 18, 10:55 am)
Re: [PATCH][RFC] slub: increasing order reduces memory usage..., Christoph Lameter, (Fri Jul 18, 1:13 pm)
Re: [PATCH][RFC] slub: increasing order reduces memory usage..., Christoph Lameter, (Fri Jul 18, 10:17 am)
Re: [PATCH][RFC] slub: increasing order reduces memory usage..., Christoph Lameter, (Wed Jul 16, 10:46 am)