Re: strace one child process
Michael Heiming wrote:[color=blue]
> In comp.os.linux.misc tmp123 <email@example.com>:[color=green]
> > Michael Heiming wrote:[color=darkred]
> >> In comp.os.linux.misc tmp123 <firstname.lastname@example.org>:[/color][/color]
> >> > In the sytem I'm working, one server process creates one child process
> >> > for each client request. I like to "strace" one of these child process.
> >> > strace without specific options only traces the parent, and with the
> >> > "-f" option traces all childs, overloading the system.
> >> > Knows someone any trick to trace only one (or a few ones) childs?[/color][/color]
> >> Please RTFM, 'man strace' and look for the "ff" option, sounds
> >> like what you are looking for?[/color][/color]
> > According to my information, the main difference between "-f" and "-ff"
> > is that in the second case the output is splitted in different files
> > for each child process.
> > In both cases, all childs are traced, producing the same overload.[/color]
> Did you try this out? At least it does save you from sorting the
Yes, I do it.
And, I do not known if due to overload, or due to problem in the signal
handling between strace+parent+childs, system has became blocked and
Trying directly "strace -p" over one single child, It has been posible
to trace the end of its execution, but not the interesting part (the
first 400 miliseconds). It has been imposible to made a loop of "ps -m"
and call "ptrace -p" fast enough.
Now, reading the strace source...
PS: this message is cross-posted to
because I do not known which one was the correct one.