From owner-freebsd-hackers Wed May 15 10:55:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 9BE3B37B872 for ; Wed, 15 May 2002 10:46:40 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id 5C6B2AE1D1; Wed, 15 May 2002 10:46:09 -0700 (PDT) Date: Wed, 15 May 2002 10:46:09 -0700 From: Alfred Perlstein To: Zhihui Zhang Cc: Terry Lambert , Doug White , freebsd-hackers@FreeBSD.ORG Subject: Re: Collect process sleeping statistics Message-ID: <20020515174609.GK1585@elvis.mu.org> References: <3CE1F48A.532F0649@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Zhihui Zhang [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 the total time. I just > want know how long it is waiting for memory and how long it is waiting for > I/O. No other process is running at the same time. When not condending against other processes, almost all time not spent on CPU is waiting for IO. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message