lkml.org 
[lkml]   [2008]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] procfs: provide slub's /proc/slabinfo
On Sat, 5 Jan 2008, Pekka J Enberg wrote:

> So, I have this silly memory profiler derived from the kleak patches by
> the relayfs people and would love to try it out on an embedded workload
> where SLUB memory footprint is terrible. Any suggestions?

Good idea. But have you tried to look at slabinfo?

Try to run

slabinfo -t

which will calculate the allocation overhead of the currently allocated
objects in all slab caches.

One problem: The actual size of kmalloc'ed objects is not available so it
does not calculate the overhead that comes about because of rounding. Your
approach would cover that as well but I think we could also add a debug
mode in which we store the actual size of a kmalloc object and export the
information via sysfs. Would be nicer than adding this whole additional
layer.



\
 
 \ /
  Last update: 2008-01-05 21:09    [W:0.292 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site