netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: P@draigBrady.com
Cc: Andi Kleen <ak@muc.de>, netdev@oss.sgi.com
Subject: Re: [PATCH] Avoid gettimeofday when not needed
Date: 31 Mar 2004 15:53:25 +0200
Date: Wed, 31 Mar 2004 15:53:25 +0200	[thread overview]
Message-ID: <20040331135325.GA62402@colin2.muc.de> (raw)
In-Reply-To: <406AB7F6.6010805@draigBrady.com>

On Wed, Mar 31, 2004 at 01:22:14PM +0100, P@draigBrady.com wrote:
> Andi Kleen wrote:
> >This patch implements an optimization I proposed a long time 
> >ago. gettimeofday can be quite costly and it currently is 
> >on the fast path of every packet. Normally the packet time stamp
> >is not needed (e.g. TCP doesn't use it), except for tcpdump
> >and a few applications.
> 
> Will this work for apps that don't use a seperate syscall
> to get the timestamp. Like CONFIG_PACKET_MMAP for e.g?

The mmap will enable the time stamp, until the socket is closed.

-Andi

  reply	other threads:[~2004-03-31 13:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-31 12:01 [PATCH] Avoid gettimeofday when not needed Andi Kleen
2004-03-31 12:22 ` P
2004-03-31 13:53   ` Andi Kleen [this message]
2004-03-31 13:45 ` Ville Nuorvala
2004-03-31 13:54   ` Andi Kleen
2004-03-31 14:24     ` Ville Nuorvala
2004-03-31 15:10       ` Andi Kleen
2004-03-31 17:30         ` Ben Greear
2004-03-31 17:50           ` Andi Kleen
2004-03-31 18:53             ` Ben Greear

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=20040331135325.GA62402@colin2.muc.de \
    --to=ak@muc.de \
    --cc=P@draigBrady.com \
    --cc=netdev@oss.sgi.com \
    /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;
as well as URLs for NNTP newsgroup(s).