Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sleep sleeping too long



> > tx:work$ time sleep 3 ; time sleep 5 ; time sleep 10
> >     6.81s real     0.00s user     0.01s system
> >     8.52s real     0.00s user     0.00s system
> >    25.84s real     0.01s user     0.00s system
> 
> "time" works the same way, you cannot see the delay when "sleep" is loaded.

Hoping I understand you correctly ... sleep loads fast:

tx:reed$ time sleep 0 ; time sleep 3 ; time sleep 0; time sleep 5 ; time sleep 
0; time sleep 10 ; time sleep 0
    0.00s real     0.00s user     0.00s system
    8.28s real     0.00s user     0.00s system
    0.01s real     0.01s user     0.00s system
   12.88s real     0.00s user     0.00s system
    0.00s real     0.00s user     0.00s system
   25.45s real     0.00s user     0.01s system
    0.01s real     0.00s user     0.00s system

> When no swap involved, the system stays responsive even under heavy disk 
> I/O. (I don't deny, that there're other causes of such behaviour.)

I am not sure what that means. But that is true that I disabled by swap 
partition a week ago. I didn't think I needed it. I did a swapon -a but no 
change here.

I will update my HEAD kernel soon. And maybe that will fix it, if I read 
otheremail in this thread correct.

  Jeremy C. Reed


Home | Main Index | Thread Index | Old Index