[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080828023958.GB21395@juhlenko-desk.sanmateo.corp.akamai.com>
Date: Wed, 27 Aug 2008 19:39:58 -0700
From: Jason Uhlenkott <juhlenko@...mai.com>
To: David Miller <davem@...emloft.net>
Cc: andi@...stfloor.org, johnpol@....mipt.ru, dada1@...mosbay.com,
denys@...p.net.lb, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: loaded router, excessive getnstimeofday in oprofile
On Wed, Aug 27, 2008 at 14:34:01 -0700, David Miller wrote:
> By the time you get to the socket, it might be eons (relatively
> speaking) later, decreasing the usefulness of the timestamp.
It's a *socket* option. It's named SO_TIMESTAMP. Users of it ought
to *expect* that it records the time the packet hits the socket, not
the time the frame hits the device.
If banks want to know when frames are hitting their devices, that's
fine, but setsockopt() is the wrong layer for controlling that sort of
thing. An interface flag would make a lot more sense.
> I find it amusing that nobody it talking about fixing the tools
> that are creating the timestamp requests when they have no real
> reason for having them in the first place.
I don't agree that the tools are broken. Some of them may have
frivolous reasons for wanting timestamps, but they're asking for
something at the socket layer, with the scope of a single socket, and
it's hardly their fault that we respond to that by doing something
expensive and global at a much lower level.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists