From: Mark Seger <Mark.Seger@hp.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: linux-mm@kvack.org
Subject: Re: collectl and the new slab allocator [slub] statistics
Date: Fri, 28 Dec 2007 10:10:47 -0500 [thread overview]
Message-ID: <477511F7.3010307@hp.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0712271551290.1144@schroedinger.engr.sgi.com>
Christoph Lameter wrote:
> On Thu, 27 Dec 2007, Mark Seger wrote:
>
>
>> particular slab you can always look up its mapping. I would also provide a
>> mechanism for specifying those slabs you want to monitor and even if not a
>> 'primary' name it would use that name.
>>
>
> Sounds good.
>
>
>> Today's kind of over for me but perhaps I can send out an updated prototype
>> format tomorrow.
>>
>
> Great. But I will only be back next Wednesday.
>
So here's the latest... I made a couple of tweaks to the format but I
think it's getting real close and as you can see, I'm now printing the
longest alias associated with a slab as is done in slabinfo. I'm also
including the time to make it easier to read but typically this is an
option in case the user doesn't want to use the extra screen
real-estate. As a minor point, as I was debugging this and comparing
its output to slabinfo (and we don't always get the same aliases if
there are multiple aliases of the same length) I found that slabinfo
reports on 'kmalloc-1024' and I'm reporting 'biovec-64'. I thought you
wanted to only print the kmalloc* names when there was nothing else and
so I suspect a slight bug in slabinfo...
Note that I decided to print the number of objects in a slab, even
though one could derive that themselves. I also decided to report the
size of the slabs in K bytes as well as the user/total memory. I'm
still reporting the objects inuse/avail in bytes since these are often
<1K and I really don't want to report fractions.
<----------- objects
-----------><--- slabs ---><----- memory ----->
Time Slab Name Size /slab In Use Avail
SizeK Number UsedK TotalK
10:25:04 TCP 1728 4 13
20 8 5 21 40
10:25:04 TCPv6 1856 4 15
20 8 5 27 40
10:25:04 UDP-Lite 896 4 51
64 4 16 44 64
10:25:04 UDPLITEv6 1088 7 28
28 8 4 29 32
10:25:04 anon_vma 48 85 773
1105 4 13 36 52
Anyhow, here's an example of watching the system once a second for any
slabs that change while the system is idle
<----------- objects
-----------><--- slabs ---><----- memory ----->
Time Slab Name Size /slab In Use Avail
SizeK Number UsedK TotalK
10:25:34 skbuff_fclone_cache 448 9 16
36 4 4 7 16
10:25:34 skbuff_head_cache 256 16 1266
1552 4 97 316 388
10:25:35 skbuff_fclone_cache 448 9 23
36 4 4 10 16
10:25:35 skbuff_head_cache 256 16 1265
1552 4 97 316 388
10:25:36 biovec-64 1024 4 303
320 4 80 303 320
10:25:36 dentry 224 18 215543
215568 4 11976 47150 47904
10:25:36 skbuff_fclone_cache 448 9 19
36 4 4 8 16
10:25:36 skbuff_head_cache 256 16 1269
1552 4 97 317 388
And finally, here's watching a single slab while writing a large file,
noting the I/O started at 10:26:30...
<----------- objects
-----------><--- slabs ---><----- memory ----->
Time Slab Name Size /slab In Use Avail
SizeK Number UsedK TotalK
10:26:25 blkdev_requests 288 14 39
84 4 6 10 24
10:26:30 blkdev_requests 288 14 189
224 4 16 53 64
10:26:31 blkdev_requests 288 14 187
224 4 16 52 64
10:26:32 blkdev_requests 288 14 174
224 4 16 48 64
10:26:33 blkdev_requests 288 14 173
224 4 16 48 64
10:26:34 blkdev_requests 288 14 46
84 4 6 12 24
It shouldn't take too much time to actually implement this in collectl,
but I do need to find the block of time to update the code, man pages,
etc before releasing it so if there are any final tweaks, now is the
time to say so...
-mark
--
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:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2007-12-28 15:10 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-20 15:06 SLUB Mark Seger
2007-12-20 19:44 ` SLUB Christoph Lameter
2007-12-20 23:36 ` SLUB Mark Seger
2007-12-21 1:09 ` SLUB Mark Seger
2007-12-21 1:27 ` SLUB Mark Seger
2007-12-21 21:41 ` SLUB Christoph Lameter
2007-12-27 14:22 ` SLUB Mark Seger
2007-12-27 15:59 ` SLUB Mark Seger
2007-12-27 19:43 ` SLUB Christoph Lameter
2007-12-27 19:57 ` SLUB Mark Seger
2007-12-27 19:58 ` SLUB Christoph Lameter
2007-12-27 20:17 ` SLUB Mark Seger
2007-12-27 20:55 ` SLUB Mark Seger
2007-12-27 20:59 ` SLUB Christoph Lameter
2007-12-27 23:49 ` collectl and the new slab allocator [slub] statistics Mark Seger
2007-12-27 23:52 ` Christoph Lameter
2007-12-28 15:10 ` Mark Seger [this message]
2007-12-31 18:30 ` Mark Seger
2007-12-27 19:40 ` SLUB Christoph Lameter
2007-12-27 19:51 ` SLUB Mark Seger
2007-12-27 19:53 ` SLUB Christoph Lameter
2007-12-21 21:32 ` SLUB Christoph Lameter
2007-12-21 16:59 ` SLUB Mark Seger
2007-12-21 21:37 ` SLUB Christoph Lameter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=477511F7.3010307@hp.com \
--to=mark.seger@hp.com \
--cc=clameter@sgi.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox