| To: | "jamal" <hadi@xxxxxxxxxx>, "Andi Kleen" <ak@xxxxxxx> |
|---|---|
| Subject: | Re: packet re-ordering on SMP machines. |
| From: | "Xiaoliang \(David\) Wei" <weixl@xxxxxxxxxxx> |
| Date: | Tue, 27 Aug 2002 12:43:02 -0700 |
| Cc: | "Ben Greear" <greearb@xxxxxxxxxxxxxxx>, "Cheng Jin" <chengjin@xxxxxxxxxxxxxx>, "Cheng Hu" <chenghu@xxxxxxxxxxxxxx>, "Steven Low" <slow@xxxxxxxxxxxxxx>, <netdev@xxxxxxxxxxx> |
| References: | <Pine.GSO.4.30.0208270803520.6895-100000@shell.cyberus.ca> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
> > > > That is because of the lock it takes. Locks are always slow. > > xtime_lock? I guess so, after looked at do_gettimeofday > > > Possibilities: > > > > - Ignore the problem and switch back to gettimeoffset again > > Is it safe to call gettimeoffset without the lock? What's the possible danger to ignore the lock? Can I read the xtime directly? > > > - 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. > > cheers, > jamal > > > > |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: packet re-ordering on SMP machines., Andi Kleen |
|---|---|
| Next by Date: | Re: IP stack question (how to force pkts to not route locally, but go out interfaces regardless of destination), Ben Greear |
| Previous by Thread: | Re: packet re-ordering on SMP machines., Andi Kleen |
| Next by Thread: | Re: Re: packet re-ordering on SMP machines., Mohd. Mohtashim |
| Indexes: | [Date] [Thread] [Top] [All Lists] |