lkml.org 
[lkml]   [2010]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: slow nanosleep?
From
Date
Eric Dumazet <eric.dumazet@gmail.com> wrote on 2010/09/08 10:24:49:
>
> Le mercredi 08 septembre 2010 à 10:04 +0200, Joakim Tjernlund a écrit :
>
> > That makes litte difference:
> > root@localhost ~ # ./nanosleep
> > nanosleep
> > req:0 :0
> > tv_res:0 :112
> >
>
> Here, result is 30 (with prctl())
> instead of 95 (without)

On x86 I notice a difference:
7 vs 57.
however select is still faster: 2
The system call OH seems to be bigger for nanosleep than
for select and on my ppc is is about 112 us. Can anything
be done about that?

Jocke

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-09-08 11:17    [W:0.055 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site