public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Christoph Hellwig <hch@infradead.org>,
	john stultz <johnstul@us.ibm.com>,
	Oleg Nesterov <oleg@tv-sign.ru>,
	Dipankar Sarma <dipankar@in.ibm.com>,
	"David S. Miller" <davem@davemloft.net>,
	kuznet@ms2.inr.ac.ru, Jonathan Corbet <corbet@lwn.net>,
	Arjan van de Ven <arjan@infradead.org>,
	Arnd Bergmann <arnd@arndb.de>
Subject: Re: [RFC PATCH 1/8] Convert the RCU tasklet into a softirq
Date: Mon, 16 Jul 2007 19:11:50 -0700	[thread overview]
Message-ID: <20070717021150.GA10938@linux.vnet.ibm.com> (raw)
In-Reply-To: <20070716205323.GA15220@elte.hu>

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

On Mon, Jul 16, 2007 at 10:53:23PM +0200, Ingo Molnar wrote:
> 
> * Steven Rostedt <rostedt@goodmis.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);
		}
	}
}

[-- Attachment #2: RCUtorture.2007.07.17a.tgz --]
[-- Type: application/x-gtar, Size: 11758 bytes --]

  reply	other threads:[~2007-07-17  2:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-27 19:36 [RFC PATCH 0/8] Convert all tasklets to workqueues V3 Steven Rostedt
2007-06-27 19:36 ` [RFC PATCH 1/8] Convert the RCU tasklet into a softirq Steven Rostedt
2007-07-16 20:12   ` Paul E. McKenney
2007-07-16 20:23     ` Linus Torvalds
2007-07-16 20:44       ` Steven Rostedt
2007-07-16 20:53         ` Ingo Molnar
2007-07-17  2:11           ` Paul E. McKenney [this message]
2007-07-16 20:48       ` Ingo Molnar
2007-06-27 19:36 ` [RFC PATCH 2/8] Split out tasklets from softirq.c Steven Rostedt
2007-06-27 19:36 ` [RFC PATCH 3/8] Add a tasklet is-scheduled API Steven Rostedt
2007-06-27 19:36 ` [RFC PATCH 4/8] Make DRM use the tasklet is-sched API Steven Rostedt
2007-06-27 19:36 ` [RFC PATCH 5/8] Convert net wireless tasklet to workqueue Steven Rostedt
2007-06-27 19:36 ` [RFC PATCH 6/8] Remove DECLARE_TASKLET_DISABLE API Steven Rostedt
2007-06-27 19:36 ` [RFC PATCH 7/8] remove DECLARE_TASKLET API Steven Rostedt
2007-06-27 19:36 ` [RFC PATCH 8/8] Convert tasklets to work queues Steven Rostedt

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=20070717021150.GA10938@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=arjan@infradead.org \
    --cc=arnd@arndb.de \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=dipankar@in.ibm.com \
    --cc=hch@infradead.org \
    --cc=johnstul@us.ibm.com \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=oleg@tv-sign.ru \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox