Re: Collect process sleeping statistics

2002-05-15 Thread Zhihui Zhang
Basically I have a program that does a lot of I/O and alloctes/frees a lot of memory. The time command gives result like this: 6.239u 19.329s 7:59.76 5.3% 310+775k 3993+246io 7pf+0w I want to know why CPU is running only 5.3% of the total time. I just want know how long it is waiting for

Re: Collect process sleeping statistics

2002-05-15 Thread Alfred Perlstein
* Zhihui Zhang [EMAIL PROTECTED] [020515 10:33] wrote: Basically I have a program that does a lot of I/O and alloctes/frees a lot of memory. The time command gives result like this: 6.239u 19.329s 7:59.76 5.3% 310+775k 3993+246io 7pf+0w I want to know why CPU is running only 5.3% of

Re: Collect process sleeping statistics

2002-05-15 Thread Zhihui Zhang
What if most I/O are asynchronous writes and handled by a background process (e.g. SoftUpdate syncer daemon or a special kernel daemon), then I guess the wait should have something to do with memory or buffer. But I do not know to to confirm this. Maybe some profiling or instrumentation (too

Re: Collect process sleeping statistics

2002-05-15 Thread Terry Lambert
Zhihui Zhang wrote: Basically I have a program that does a lot of I/O and alloctes/frees a lot of memory. The time command gives result like this: 6.239u 19.329s 7:59.76 5.3% 310+775k 3993+246io 7pf+0w I want to know why CPU is running only 5.3% of the total time. I just want know

Re: Collect process sleeping statistics

2002-05-15 Thread Terry Lambert
Zhihui Zhang wrote: What if most I/O are asynchronous writes and handled by a background process (e.g. SoftUpdate syncer daemon or a special kernel daemon), then I guess the wait should have something to do with memory or buffer. But I do not know to to confirm this. Maybe some profiling or

Re: Collect process sleeping statistics

2002-05-14 Thread Doug White
On Mon, 13 May 2002, Zhihui Zhang wrote: A process can sleep for various reasons such as memory, I/O etc. Is there a way to collect statistics about how long it sleeps for different reasons? Thanks. I don't think it's actually accounted for anywhere, but if a process does go to sleep the

Re: Collect process sleeping statistics

2002-05-14 Thread Terry Lambert
Doug White wrote: On Mon, 13 May 2002, Zhihui Zhang wrote: A process can sleep for various reasons such as memory, I/O etc. Is there a way to collect statistics about how long it sleeps for different reasons? Thanks. I don't think it's actually accounted for anywhere, but if a process

Collect process sleeping statistics

2002-05-13 Thread Zhihui Zhang
A process can sleep for various reasons such as memory, I/O etc. Is there a way to collect statistics about how long it sleeps for different reasons? Thanks. -Zhihui To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message