From: Tim W. <tim...@gm...> - 2004-11-26 15:56:18
|
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. :( Tim On Fri, 26 Nov 2004 15:56:42 +0100 (CET), Yves <yme...@pe...> wrote: > > > Yves, > > > > I've done an strace, results are attached. Changing &tm to NULL did > > not change anything. > > Well, here is what your perfparsed does when doing nothing : > > select(6, [4 5], NULL, NULL, NULL) = 1 (in [4]) > rt_sigprocmask(SIG_BLOCK, [INT TERM], [], 8) = 0 > read(4, "", 10) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > wait4(-1, NULL, WNOHANG, NULL) = -1 ECHILD (No child processes) > > In other words, there is always something to read on the 4th file descriptor (1st line), > even if we see on the 3rd line that it reads nothing. > > There is an additionnal test that you could maybe do, still in log_reader.c. You can > find in open_log_source a big test : > if(!strcmp(filename,"-")) { > ... > } else if(filename[0] == '>') { > ... > } else if(filename[0] == '|') { > ... > log_source_nonblock(i); > ... > } else { > ... > } > > Could you comment that log_source_nonblock(i), and only that one ? > I hope this is the fix. Otherwise, I will have to find why, when there is nothing to > read on the pipe, why it considers there is something to read anyways. > > Note : per...@li... is the mailing-list for the core developers, > including Ben. If you don't mind, answer with that list in CC :) > > > > Yves > > -- > - 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/ - > > |