* Re: Re: packet re-ordering on SMP machines.
@ 2002-08-27 13:57 Mohd. Mohtashim
0 siblings, 0 replies; only message in thread
From: Mohd. Mohtashim @ 2002-08-27 13:57 UTC (permalink / raw)
To: Andi Kleen
Cc: Xiaoliang(David)Wei, Ben Greear, Cheng Jin, Cheng Hu, Steven Low,
netdev, jamal
On Tue, 27 Aug 2002 Andi Kleen wrote :
>
>On Tue, Aug 27, 2002 at 08:05:04AM -0400, jamal wrote:
> >
> >
> >
> > On Tue, 27 Aug 2002, Andi Kleen wrote:
> >
> > >
> > > That is because of the lock it takes. Locks are always
>slow.
> >
> > xtime_lock?
>
>Yes.
>
>It also has some other overhead.
>
> >
> > >
> > > Older kernels used gettimeoffset which ran without lock, but
>that was
> > > changed because in some very obscure cases it could cause
>non monotonous
> > > timestamps when the user turns on timestamp receiving to
>user space
> > > (kernel protocols do not care)
> > >
> > > Possibilities:
> > >
> > > - Ignore the problem and switch back to gettimeoffset
>again
> >
> > Is it safe to call gettimeoffset without the lock?
>
>
>Of course. The only problem is that the clock can be non
>mononotonous
>sometimes and not be in sync with gettimeofday, but at least the
>kernel
>users of packet timestamps do not care.
>The only problem is the socket option, but it is obscure enough
>that I
>would not worry too much about it.
> >
> > > - Switch to gettimeoffset but add some correction step for
>the unlikely
> > > case that someone wants the timestamp from user space
> > > (would be my prefered solution)
> > > - Implement lockless gettimeofday like x86-64 or sparc
> > > (good one too, but likely slower than last)
> >
> >
> > ia64 seems to also have the lock.
>
>Quick fix is to just use gettimeoffset in netif_rx again.
>Should
>be fine for you.
>
>-Andi
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-27 13:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-27 13:57 Re: packet re-ordering on SMP machines Mohd. Mohtashim
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).