Re: brief naps (aftermath)

2003-11-05 Thread Ehud Karni
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 4 Nov 2003 15:18:00 +0200, Gilad Ben-Yossef <[EMAIL PROTECTED]> wrote: > > On Tuesday 04 November 2003 14:43, Ehud Karni wrote: > > > I tested the select call on various machines. > > 1. It is not accurate enough (2 ms deviations). > > Yes it

Re: brief naps (aftermath)

2003-11-04 Thread Ami Chayun
If you don't set your process to SCHED_FIFO or SCHED_RR (only possible as root) and give it realtime priority, you can never be sure to wake up in time (see Gilad's message in the thread). >From my understanding, if you recompile the kernel with HZ value higher than 1000, you can use nanosleep or u

Re: brief naps (aftermath)

2003-11-04 Thread Gilad Ben-Yossef
On Tuesday 04 November 2003 14:43, Ehud Karni wrote: > I tested the select call on various machines. > 1. It is not accurate enough (2 ms deviations). Yes it does, you don't seem to use sched_setscheduler in your test program to give your proccess real time priority. setpriority only changes

Re: brief naps (aftermath)

2003-11-04 Thread Ehud Karni
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 03 Nov 2003 12:30:15 +0200, Ami Chayun <[EMAIL PROTECTED]> wrote: > > A couple of results: > 1) The rdtscll Pentium instruction (Eran's answer) is very useful. It's > super accurate and right now I decided to use it mostly to benchmark > other

RE: brief naps (aftermath)

2003-11-03 Thread Ami Chayun
Hi all, First of all, I'd like to thank everyone that have answered, I never expected so many solutions :) A couple of results: 1) The rdtscll Pentium instruction (Eran's answer) is very useful. It's super accurate and right now I decided to use it mostly to benchmark other solutions, and to esti