Re: What are these processes doing?

2009-01-26 Thread Ken Teague
Denys Vlasenko wrote: > I don't understand. > > Waiting properly and consuming a lot of CPU time are different things. > Waiting processes should use no CPU at all, unless they are poorly coded > and wait for something by periodically polling: "did it happen?" "did it > happen?" "did it happen?"..

Re: What are these processes doing?

2009-01-23 Thread Ken Teague
Ken Teague wrote: > I have two processes running on a Linux box that are consuming quite a > lot of CPU time. Scratch that. After digging around a bit more, I found that these processes were waiting for I/O from other threads... just hanging out, drinking a beer and consuming a lot of (CPU

What are these processes doing?

2009-01-23 Thread Ken Teague
I have two processes running on a Linux box that are consuming quite a lot of CPU time. I ran strace -p on the main program itself and it shows: futex(0x9fd7ef8, FUTEX_WAIT, 1, NULL The main program also uses java, so I ran strace -p on the java process ID and see: futex(0xb7f88bd8, FUTEX_WAIT,