netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/4] net: enable timestamps on a per-socket basis
@ 2008-04-21  5:34 Jason Uhlenkott
  2008-04-21  5:34 ` [RFC 1/4] net core: move timestamp functions Jason Uhlenkott
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Jason Uhlenkott @ 2008-04-21  5:34 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Stephen Hemminger

Currently, if anyone enables the SOCK_TIMESTAMP flag on any socket
(via the SO_TIMESTAMP socket option or the SIOCGSTAMP ioctl), we start
recording timestamps for *every* packet coming into the system.  We do
this because timestamps are recorded very early by the net core,
before the upper protocol layers have a chance to look up the
socket(s) associated with each incoming packet.

A number of common apps enable timestamps, including ping, tcpdump,
and named.  named probably has the biggest impact -- most people don't
leave ping running all the time, and expect that leaving tcpdump
running will cost a bit of performance, but it's unfortunate that the
mere presence of a local caching nameserver has a global negative
effect on incoming packet overhead.


This patchset creates a mechanism for protocols to opt in to handling
timestamps at a higher layer, and uses this mechanism to implement
per-socket SOCK_TIMESTAMP support for several common protocols.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-04-21 11:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21  5:34 [RFC 0/4] net: enable timestamps on a per-socket basis Jason Uhlenkott
2008-04-21  5:34 ` [RFC 1/4] net core: move timestamp functions Jason Uhlenkott
2008-04-21  5:35 ` [RFC 2/4] net core: let protocols implement SOCK_TIMESTAMP efficiently Jason Uhlenkott
2008-04-21  5:35 ` [RFC 3/4] ipv4: efficient SOCK_TIMESTAMP support for TCP, UDP, and raw sockets Jason Uhlenkott
2008-04-21  5:36 ` [RFC 4/4] af_packet: efficient SOCK_TIMESTAMP support Jason Uhlenkott
2008-04-21  6:03 ` [RFC 0/4] net: enable timestamps on a per-socket basis David Miller
2008-04-21  7:28   ` Jason Uhlenkott
2008-04-21 10:44   ` Andi Kleen
2008-04-21 10:59     ` David Miller
2008-04-21 11:43       ` Andi Kleen
2008-04-21 11:51         ` David Miller

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).