On Tue, 2006-09-12 at 15:47 +0200, Raoul Bhatia [IPAX] wrote:
> i have come uppon an issue with an tcl script using sockets to make an
> ftp connection. unfortunatly the script is bytecode so i cannot tell too
> much about the actual work the program does.
>
> after some time the process starts to use 100% cpu. strace reveals this
> output: http://nopaste.info/3dc9e844fe.html
>
> as far as i know the program normally runs just as expected.
> is this somehow a vserver related issue?
FWIW it looks like some sort of bug in an event loop which is repeatedly
putting threads to sleep, waking them (async I/O notification perhaps),
failing to read and then having them sleep again. I guess whatever is
triggering the -EAGAIN is not being cleared properly - hence the
problem. Might identifying what the file descriptors are and working
out why they might be giving -EAGAIN help? Perhaps combined with
ethereal to monitor network traffic if they are sockets.
Beyond that I think you're going to have to give a lot more details to
get anywhere with this.
HTH
Cheers,
- Martin
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Sep 12 23:28:12 2006