[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070717021150.GA10938@linux.vnet.ibm.com>
Date: Mon, 16 Jul 2007 19:11:50 -0700
From: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
To: Ingo Molnar <mingo@...e.hu>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Christoph Hellwig <hch@...radead.org>,
john stultz <johnstul@...ibm.com>,
Oleg Nesterov <oleg@...sign.ru>,
Dipankar Sarma <dipankar@...ibm.com>,
"David S. Miller" <davem@...emloft.net>, kuznet@....inr.ac.ru,
Jonathan Corbet <corbet@....net>,
Arjan van de Ven <arjan@...radead.org>,
Arnd Bergmann <arnd@...db.de>
Subject: Re: [RFC PATCH 1/8] Convert the RCU tasklet into a softirq
On Mon, Jul 16, 2007 at 10:53:23PM +0200, Ingo Molnar wrote:
>
> * Steven Rostedt <rostedt@...dmis.org> wrote:
>
> > But to answer your question. No, I didn't take any actual
> > measurements. The changes just seemed obvious to me (and others).
>
> btw., does anyone know about some reliable way to stress and measure RCU
> completion performance, via some real userspace app? I think there used
> to be an open-tons-of-files thing that unearthed the
> RCU-completion-single-threadness bottleneck a year or two ago? Anyone
> got a link to it (or to some other performance tool for RCU)?
It was more of a stress test -- it simply opened a file and immediately
closes it in a tight loop. 2.6.22 survives four of the following running
on a 4-CPU machine.
Attached are the kernel modules I use to measure RCU performance
(and to torture RCU), but they don't really measure completion
performance. (All licensed under GPL, FWIW.)
Thanx, Paul
(The following is my reconstruction of the open/close stress test.)
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc, char *argv[])
{
int fd;
for (;;) {
fd = open("/dev/null", O_RDONLY);
if (fd >= 0) {
close(fd);
}
}
}
Download attachment "RCUtorture.2007.07.17a.tgz" of type "application/x-gtar" (11758 bytes)
Powered by blists - more mailing lists