tools/vm/slabinfo: sort slabs by loss
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Fri, 6 Nov 2015 02:45:22 +0000 (18:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commit2651f6e7fe1c24b0a50691828edd392971d57d4f
treea7f39ef2ed97cc20a6701dbb094ee4190050e459
parent4980a9639b4bf4948f4cba60e3e6c45a635b98ec
tools/vm/slabinfo: sort slabs by loss

Introduce opt "-L|--sort-loss" to sort and output slabs by
loss (waste) in slabcache().

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/vm/slabinfo.c