From: Yves <yme...@pe...> - 2004-11-26 16:09:06
|
> Yves, > > Recompiling with the log_source_nonblock(i) line commented out does > not change anything. The CPU still sky-rockets, and the 4 lines still > show up (a gazillion times) in strace output. So I just suggest that you upgrade to 0.104.1 this week-end, when Ben rel= eases it, and I will try to find out why there is always something to read on the pipe fo= r select(). The only thing I can suggest you now, if you really want a hacked solutio= n, is to put this in log_reader() : while(10 =3D=3D (r=3Dread(...))) { ... } if((r>0) && (r<10)) { ... } else if(r =3D=3D 0) { sleep(1); } Add the 2 last lines to sleep the program when it reads nothing. The CPU = should still sky-rocket, but passengers will now have 1 second to get inside the rocke= t :) I will try to find something better for 0.104.2 or 0.105 or course :) Yves PS. uncomment back log_source_nonblock(i) because it may have side effect= s. --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://perfparse.sf.net/ - |