| To: | P@xxxxxxxxxxxxxx |
|---|---|
| Subject: | Re: [PATCH] Avoid gettimeofday when not needed |
| From: | Andi Kleen <ak@xxxxxx> |
| Date: | 31 Mar 2004 15:53:25 +0200 |
| Date: | Wed, 31 Mar 2004 15:53:25 +0200 |
| Cc: | Andi Kleen <ak@xxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <406AB7F6.6010805@xxxxxxxxxxxxxx> |
| References: | <200403311201.i2VC13D19579@xxxxxxxxxxx> <406AB7F6.6010805@xxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
On Wed, Mar 31, 2004 at 01:22:14PM +0100, P@xxxxxxxxxxxxxx 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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] Avoid gettimeofday when not needed, Ville Nuorvala |
|---|---|
| Next by Date: | Re: [PATCH] Avoid gettimeofday when not needed, Andi Kleen |
| Previous by Thread: | Re: [PATCH] Avoid gettimeofday when not needed, P |
| Next by Thread: | Re: [PATCH] Avoid gettimeofday when not needed, Ville Nuorvala |
| Indexes: | [Date] [Thread] [Top] [All Lists] |