From: David Rientjes <rientjes@google.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org, Christoph Lameter <cl@linux.com>
Subject: Re: [PATCH v2 2/2] SLUB: Mark merged slab caches in /proc/slabinfo
Date: Tue, 14 Sep 2010 13:00:02 -0700 (PDT) [thread overview]
Message-ID: <alpine.DEB.2.00.1009141243290.1470@chino.kir.corp.google.com> (raw)
In-Reply-To: <1284490101-2362-2-git-send-email-penberg@kernel.org>
On Tue, 14 Sep 2010, Pekka Enberg wrote:
> SLUB uses the name of the first slab cache for all merged slab caches. To make
> the output of /proc/slabinfo more obvious, append the name of each merged slab
> cache to s->name.
>
> An example output of /proc/slabinfo with this patch looks like this:
>
> kmalloc-8192 544 544 8192 4 8 : tunables 0
> kmalloc-4096+names_cache+biovec-256+sgpool-128+ecryptfs_headers
> kmalloc-2048+biovec-128+sgpool-64 400 416 2048 16 8
> kmalloc-1024+biovec-64+sgpool-32 436 496 1024 16 4 :
> kmalloc-512+task_xstate+skbuff_fclone_cache+sgpool-16 1060 10
> kmalloc-256+mnt_cache+skbuff_head_cache+biovec-16+sgpool-8+arp_ [ snip ]
> kmalloc-128+pid+bip-1+eventpoll_epi+request_sock_TCP+ip_mrt_cac
> kmalloc-64+fs_cache+biovec-4+blkdev_ioc+inet_peer_cache+tcp_bin
> kmalloc-32+ip_fib_alias+dnotify_struct+inotify_event_private_da
> kmalloc-16+biovec-1+ecryptfs_file_cache+dm_rq_clone_bio_info+dm
> kmalloc-8 5119 5120 8 512 1 : tunables 0
> kmalloc-192+cred_jar+key_jar+filp+bip-4+bio-0+request_sock_TCPv
> kmalloc-96 924 1008 96 42 1 : tunables 0
> kmem_cache_node 128 128 64 64 1 : tunables 0
>
I really don't like this.
I can understand how it's confusing that only the first slab cache name is
being emitted, and I think that can be changed, but this shows way too
much information that is already available when CONFIG_SLUB_DEBUG is used
via the sysfs interface.
CONFIG_SLUB_DEBUG is the default configuration for all users and is
required for CONFIG_SLABINFO when using slub. It softlinks merged caches
together so that it's very simple to determine their relationship.
There's also nothing preventing a name from already including a '+'
itself.
I think it would be better to use the unique id of each slab cache when
emitting this information, perhaps suffixed with a count of the number of
caches merged such as ":t-0000008(3)".
next prev parent reply other threads:[~2010-09-14 20:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 18:48 [PATCH v2 1/2] SLUB: Fix merged slab cache names Pekka Enberg
2010-09-14 18:48 ` [PATCH v2 2/2] SLUB: Mark merged slab caches in /proc/slabinfo Pekka Enberg
2010-09-14 20:00 ` David Rientjes [this message]
2010-09-14 20:05 ` Linus Torvalds
2010-09-14 20:11 ` Pekka Enberg
2010-09-14 20:56 ` Linus Torvalds
2010-09-14 20:56 ` David Rientjes
2010-09-14 21:00 ` Pekka Enberg
2010-09-15 0:02 ` David Rientjes
2010-09-15 11:16 ` Theodore Tso
2010-09-15 20:33 ` David Rientjes
2010-09-15 22:25 ` Ted Ts'o
2010-09-15 22:53 ` David Rientjes
2010-09-16 17:39 ` Christoph Lameter
2010-09-16 17:49 ` Linus Torvalds
2010-09-16 22:08 ` Tony Luck
2010-09-14 18:59 ` [PATCH v2 1/2] SLUB: Fix merged slab cache names Christoph Lameter
2010-09-14 19:32 ` Pekka Enberg
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=alpine.DEB.2.00.1009141243290.1470@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=cl@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@kernel.org \
--cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.