Mailinglist Archive: opensuse (4570 mails)

< Previous Next >
Diff between top and ps?
  • From: Anders Norrbring <lists@xxxxxxxxxxxx>
  • Date: Sat, 19 Nov 2005 10:34:46 +0000 (UTC)
  • Message-id: <437EFFB6.5040202@xxxxxxxxxxxx>
I don't understand a diff I get in outputs from 'top' and ps', can somebody please explain it?

If I run 'ps -A -o %cpu,%mem,comm' and grep for 'httpd', I get 0.0% CPU time.
If I run top at the same time, I get 13.9% cpu load for httpd2-prefork.

That's a pretty big difference...

--

Anders Norrbring
Norrbring Consulting

< Previous Next >
Follow Ups