Re: [patch 21/21] slab defrag: Obsolete SLAB

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Wilcox
Date: Thursday, May 15, 2008 - 1:14 pm

On Thu, May 15, 2008 at 01:29:59PM -0600, Matthew Wilcox wrote:

This is rather interesting.  Since Christoph refuses to, here's my
results with 8f40f67, first with slab:

willy@piggy:~$ sudo ./io-gen -d /dev/sda -j4
CPU 0 completed 1000000 ops in 52.817 seconds; 18933 ops per second
CPU 2 completed 1000000 ops in 56.391 seconds; 17733 ops per second
CPU 3 completed 1000000 ops in 57.009 seconds; 17541 ops per second
CPU 1 completed 1000000 ops in 57.591 seconds; 17363 ops per second
willy@piggy:~$ sudo taskset -p 1 941
pid 941's current affinity mask: f
pid 941's new affinity mask: 1
willy@piggy:~$ sudo ./io-gen -d /dev/sda -j4
CPU 2 completed 1000000 ops in 46.740 seconds; 21394 ops per second
CPU 0 completed 1000000 ops in 48.716 seconds; 20527 ops per second
CPU 3 completed 1000000 ops in 59.255 seconds; 16876 ops per second
CPU 1 completed 1000000 ops in 60.473 seconds; 16536 ops per second

(the pid is that of scsi_ram_0)

Now, change the config to slub:

--- 64-slab/.config     2008-05-15 15:21:31.000000000 -0400
+++ 64-slub/.config     2008-05-15 15:37:45.000000000 -0400
-# Thu May 15 15:21:31 2008
+# Thu May 15 15:37:45 2008
-CONFIG_SLAB=y
-# CONFIG_SLUB is not set
+CONFIG_SLUB_DEBUG=y
+# CONFIG_SLAB is not set
+CONFIG_SLUB=y
-# CONFIG_DEBUG_SLAB is not set
+# CONFIG_SLUB_DEBUG_ON is not set
+# CONFIG_SLUB_STATS is not set

and we get slightly better results:

willy@piggy:~$ sudo ./io-gen -d /dev/sda -j4
CPU 0 completed 1000000 ops in 45.848 seconds; 21811 ops per second
CPU 2 completed 1000000 ops in 50.789 seconds; 19689 ops per second
CPU 3 completed 1000000 ops in 55.876 seconds; 17896 ops per second
CPU 1 completed 1000000 ops in 56.941 seconds; 17562 ops per second
willy@piggy:~$ sudo taskset -p 1 1001
pid 1001's current affinity mask: f
pid 1001's new affinity mask: 1
willy@piggy:~$ sudo ./io-gen -d /dev/sda -j4
CPU 2 completed 1000000 ops in 45.713 seconds; 21875 ops per second
CPU 0 completed 1000000 ops in 47.020 seconds; 21267 ops per second
CPU 3 completed 1000000 ops in 58.692 seconds; 17038 ops per second
CPU 1 completed 1000000 ops in 60.389 seconds; 16559 ops per second

Slub's clearly in the lead, right?  Maybe.  Here's the results we get
with 2.6.25+slab:

willy@piggy:~$ sudo ./io-gen -d /dev/sda -j4
CPU 3 completed 1000000 ops in 48.709 seconds; 20530 ops per second
CPU 1 completed 1000000 ops in 50.181 seconds; 19927 ops per second
CPU 0 completed 1000000 ops in 53.511 seconds; 18687 ops per second
CPU 2 completed 1000000 ops in 54.169 seconds; 18460 ops per second
willy@piggy:~$ sudo taskset -p 1 930
pid 930's current affinity mask: f
pid 930's new affinity mask: 1
willy@piggy:~$ sudo ./io-gen -d /dev/sda -j4
CPU 2 completed 1000000 ops in 40.568 seconds; 24649 ops per second
CPU 0 completed 1000000 ops in 47.986 seconds; 20839 ops per second
CPU 3 completed 1000000 ops in 55.944 seconds; 17875 ops per second
CPU 1 completed 1000000 ops in 56.180 seconds; 17799 ops per second

I think I'm going to try backing out some of the recent patches that
have gone into /slab/ and see if it's been regressing.

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Fri May 9, 8:08 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Andi Kleen, (Sat May 10, 2:53 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Rik van Riel, (Sat May 10, 7:15 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, KOSAKI Motohiro, (Mon May 12, 12:38 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Pekka Enberg, (Mon May 12, 12:54 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Andi Kleen, (Mon May 12, 3:08 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Pekka Enberg, (Mon May 12, 3:23 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 10:29 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 10:30 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Andi Kleen, (Wed May 14, 10:49 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 11:03 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 11:05 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matt Mackall, (Wed May 14, 11:18 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 12:21 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matt Mackall, (Wed May 14, 12:49 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 1:33 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 1:46 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matthew Wilcox, (Wed May 14, 1:58 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 2:00 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matt Mackall, (Wed May 14, 2:02 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matthew Wilcox, (Wed May 14, 2:21 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 2:26 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 2:33 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matthew Wilcox, (Wed May 14, 2:43 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 2:53 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matt Mackall, (Wed May 14, 2:54 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matthew Wilcox, (Wed May 14, 3:00 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 3:32 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Wed May 14, 3:34 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Zhang, Yanmin, (Wed May 14, 8:26 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Thu May 15, 10:05 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Thu May 15, 10:15 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matthew Wilcox, (Thu May 15, 10:49 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Thu May 15, 10:58 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matthew Wilcox, (Thu May 15, 11:13 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Eric Dumazet, (Thu May 15, 11:19 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Vegard Nossum, (Thu May 15, 11:29 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Thu May 15, 11:43 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matthew Wilcox, (Thu May 15, 11:51 am)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Thu May 15, 12:09 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matthew Wilcox, (Thu May 15, 12:29 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Matthew Wilcox, (Thu May 15, 1:14 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Pekka Enberg, (Thu May 15, 1:30 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Zhang, Yanmin, (Thu May 15, 10:16 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Fri May 16, 12:06 pm)
Re: [patch 21/21] slab defrag: Obsolete SLAB, Christoph Lameter, (Fri May 16, 12:17 pm)