public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Larry McVoy <lm@bitmover.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andi Kleen <ak@muc.de>, Richard Zidlicky <rz@linux-m68k.org>,
	Jeff Dike <jdike@karaya.com>, Alan Cox <alan@redhat.com>,
	linux-kernel@vger.kernel.org
Subject: Re: context switch vs. signal delivery [was: Re: Accelerating user mode linux]
Date: Mon, 5 Aug 2002 07:59:51 -0700	[thread overview]
Message-ID: <20020805075951.L28512@work.bitmover.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0208051223430.8173-100000@localhost.localdomain>; from mingo@elte.hu on Mon, Aug 05, 2002 at 12:40:54PM +0200

> > > actually the opposite is true, on a 2.2 GHz P4:
> > > 
> > >   $ ./lat_sig catch
> > >   Signal handler overhead: 3.091 microseconds
> > > 
> > >   $ ./lat_ctx -s 0 2
> > >   2 0.90
> > > 
> > > ie. *process to process* context switches are 3.4 times faster than signal
> > > delivery. Ie. we can switch to a helper thread and back, and still be
> > > faster than a *single* signal.

Has someone gone through the lat_ctx.c and lat_sig.c code and convinced 
themselves these are measuring things which ought to be compared like this?
When I wrote that code I didn't anticipate this comparison, so somebody
should go look.

I'd suggest that if you want to measure how fast you can communicate using
signals versus pipes (or sockets or whatever), someone write up a test
which has two processes bounce a token between each other using signals
and then compare that with lat_pipe.  It's not clear to me that you are
comparing apples to apples.

If someone does write the test, we'll add it to LMbench if it reveals
anything useful.  It should be easy enough to do.  I can do it if it
isn't obvious.
-- 
---
Larry McVoy            	 lm at bitmover.com           http://www.bitmover.com/lm 

  reply	other threads:[~2002-08-05 14:56 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-01 20:16 Accelerating user mode linux Alan Cox
2002-08-02  4:40 ` Jeff Dike
2002-08-02  9:50   ` Alan Cox
2002-08-02 18:28     ` Jeff Dike
2002-08-02 17:48       ` Alan Cox
2002-08-02 22:33         ` Jeff Dike
2002-08-02 21:57           ` Alan Cox
2002-08-03  0:54             ` Jeff Dike
2002-08-02 11:34   ` Richard Zidlicky
2002-08-02 13:28     ` Alan Cox
2002-08-03 11:38       ` context switch vs. signal delivery [was: Re: Accelerating user mode linux] Ingo Molnar
2002-08-03 12:33         ` context switch vs. signal delivery [was: Re: Accelerating user mode Alan Cox
2002-08-03 15:29           ` Jeff Dike
2002-08-05 13:46             ` Udo A. Steinberg
2002-08-05 20:44               ` Richard Zidlicky
2002-08-05 22:34                 ` Udo A. Steinberg
2002-08-06  0:42                   ` Jeff Dike
2002-08-06  0:16                     ` Udo A. Steinberg
2002-08-06  2:55                       ` Jeff Dike
2002-08-06  8:10                         ` Udo A. Steinberg
2002-08-06 11:20                           ` Jeff Dike
2002-08-06 11:13                             ` Udo A. Steinberg
2002-08-06 12:53                               ` Jeff Dike
2002-08-06 13:04                                 ` Udo A. Steinberg
2002-08-06 14:12                                   ` Jeff Dike
2002-08-06 16:02                                     ` Udo A. Steinberg
2002-08-06 17:42                                       ` Jeff Dike
2002-08-06 18:01                                         ` Udo A. Steinberg
2002-08-08  1:27                                         ` Udo A. Steinberg
2002-08-08  3:14                                           ` Jeff Dike
2002-08-08  2:21                                             ` Benjamin LaHaise
2002-08-08  9:03                                             ` Udo A. Steinberg
2002-08-08 17:19                                               ` Jeff Dike
2002-08-05 22:06             ` Martin Waitz
2002-08-06  0:49               ` Jeff Dike
2002-08-04  6:46         ` context switch vs. signal delivery [was: Re: Accelerating user mode linux] Andi Kleen
2002-08-05  5:35           ` Linus Torvalds
2002-08-05  5:42             ` Arnaldo Carvalho de Melo
2002-08-05  6:37             ` Lincoln Dale
2002-08-05 15:39             ` Jamie Lokier
2002-08-05 16:38               ` Linus Torvalds
2002-08-05 20:01                 ` context switch vs. signal delivery [was: Re: Accelerating usermode linux] Oliver Neukum
2002-08-05 20:23                   ` Linus Torvalds
2002-08-06  5:31             ` context switch vs. signal delivery [was: Re: Accelerating user mode linux] Mark Mielke
2002-08-05 10:40           ` Ingo Molnar
2002-08-05 14:59             ` Larry McVoy [this message]
2002-08-05 15:41             ` Jamie Lokier
2002-08-05 15:44               ` Jamie Lokier
     [not found] <1028294887.18635.71.camel@irongate.swansea.linux.org.uk.suse.lists.linux.kernel>
     [not found] ` <Pine.LNX.4.44.0208031332120.7531-100000@localhost.localdomain.suse.lists.linux.kernel>
     [not found]   ` <m3u1mb5df3.fsf@averell.firstfloor.org.suse.lists.linux.kernel>
     [not found]     ` <ail2qh$bf0$1@penguin.transmeta.com.suse.lists.linux.kernel>
2002-08-05  8:38       ` Andi Kleen
2002-08-05 14:24         ` Jeff Dike
2002-08-05 16:19         ` Linus Torvalds
     [not found] <20020805163910.C7130@kushida.apsleyroad.org.suse.lists.linux.kernel>
     [not found] ` <Pine.LNX.4.44.0208050922570.1753-100000@home.transmeta.com.suse.lists.linux.kernel>
2002-08-05 16:46   ` Andi Kleen
2002-08-05 21:30     ` Jamie Lokier
2002-08-05 21:35       ` Andi Kleen
2002-08-05 22:09         ` Jamie Lokier
2002-08-05 22:16           ` Andi Kleen

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=20020805075951.L28512@work.bitmover.com \
    --to=lm@bitmover.com \
    --cc=ak@muc.de \
    --cc=alan@redhat.com \
    --cc=jdike@karaya.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rz@linux-m68k.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