All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: imipak@yahoo.com
Cc: netdev@vger.kernel.org, Daniel Ng <daniel_ng11@lycos.com>
Subject: Re: Multicast Routing Kernel option?
Date: Fri, 15 Aug 2008 16:13:24 +0200	[thread overview]
Message-ID: <87tzdmxt6j.fsf@basil.nowhere.org> (raw)
In-Reply-To: <124178.76775.qm@web31502.mail.mud.yahoo.com> (Jonathan Day's message of "Fri, 15 Aug 2008 01:41:51 -0700 (PDT)")

Jonathan Day <imipak@yahoo.com> writes:

> They could, I guess, but context switches are expensive (think 20ms
> from kernel to user, and same in reverse)

40ms for a system call? That would be really horrible if it really
were that slow. Fortunately it's not. A Core2 (Merom) here can do a
very simple system call roundtrip (getppid()) in ~570 cycles, that is
at 2Ghz less than 300ns. You are roughly 5 orders of magnitude off.
 
-Andi

      reply	other threads:[~2008-08-15 14:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15  7:37 Multicast Routing Kernel option? Daniel Ng
2008-08-15  8:41 ` Jonathan Day
2008-08-15 14:13   ` Andi Kleen [this message]

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=87tzdmxt6j.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=daniel_ng11@lycos.com \
    --cc=imipak@yahoo.com \
    --cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.