CPU performance measurement

Wolfgang Denk wd at denx.de
Tue Jul 23 04:49:49 EST 2002

In message <B7AC573479F05C438F232539B961A168095005 at CUR1006V.br002.siemens.net.br> you wrote:
> >>Why don't you simply run "top" on your board, then?
> I tried to run "top" on my custom board, but no success. No message
> appears on console. Do I need to do anything special, any configuration?

You did mount the /proc filesystem, didn't you?

> >>Or read /proc/stat?
> I will try this. What kind of information can get from /proc/stat? Is it
> any kind of statistics?

Yes, kernel statistics:
user, nice, system, jiffies * #_cpus - (user + nice + system)

See fs/proc/kstat_read_proc/proc_misc.c

Wolfgang Denk

Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
When all is said and done, more is said than done.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

More information about the Linuxppc-embedded mailing list