Messages in this thread | | | Subject | Re: slow nanosleep? | From | Joakim Tjernlund <> | Date | Wed, 8 Sep 2010 11:12:44 +0200 |
| |
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/
| |