linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* CPU performance measurement
@ 2002-07-22 11:01 OTAVIO ISAMU SUGENO
  2002-07-22 17:27 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: OTAVIO ISAMU SUGENO @ 2002-07-22 11:01 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

I would like to measure the cpu performance in my custom board.
Basically to know how many of cpu performance each process or driver is
spending, something like TOP command in PCs.

Anyone has already this experience or can give me suggestion?

Regards



Otavio

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CPU performance measurement
  2002-07-22 11:01 OTAVIO ISAMU SUGENO
@ 2002-07-22 17:27 ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2002-07-22 17:27 UTC (permalink / raw)
  To: OTAVIO ISAMU SUGENO; +Cc: linuxppc-embedded


In message <B7AC573479F05C438F232539B961A1686C4CF0@CUR1006V.br002.siemens.net.br> you wrote:
>
> I would like to measure the cpu performance in my custom board.
> Basically to know how many of cpu performance each process or driver is
> spending, something like TOP command in PCs.
>
> Anyone has already this experience or can give me suggestion?

Why don't you simply run "top" on your board, then?

Or read /proc/stat?

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Put your Nose to the Grindstone!
                 -- Amalgamated Plastic Surgeons and Toolmakers, Ltd.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: CPU performance measurement
@ 2002-07-22 18:30 OTAVIO ISAMU SUGENO
  2002-07-22 18:49 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: OTAVIO ISAMU SUGENO @ 2002-07-22 18:30 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded


-----Original Message-----
From: Wolfgang Denk [mailto:wd@denx.de]
Sent: segunda-feira, 22 de julho de 2002 14:27
To: OTAVIO ISAMU SUGENO
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: CPU performance measurement

In message
<B7AC573479F05C438F232539B961A1686C4CF0@CUR1006V.br002.siemens.net.br>
you wrote:
>
> I would like to measure the cpu performance in my custom board.
> Basically to know how many of cpu performance each process or driver
is
> spending, something like TOP command in PCs.
>
> Anyone has already this experience or can give me suggestion?

>>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?

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

Thanks
Otavio Sugeno

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CPU performance measurement
  2002-07-22 18:30 OTAVIO ISAMU SUGENO
@ 2002-07-22 18:49 ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2002-07-22 18:49 UTC (permalink / raw)
  To: OTAVIO ISAMU SUGENO; +Cc: linuxppc-embedded


In message <B7AC573479F05C438F232539B961A168095005@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@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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CPU performance measurement
       [not found] <B7AC573479F05C438F232539B961A168095007@CUR1006V.br002.siemens.net.br>
@ 2002-07-23 21:14 ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2002-07-23 21:14 UTC (permalink / raw)
  To: OTAVIO ISAMU SUGENO; +Cc: linuxppc-embedded


Dear OtavioOtavio,

in message <B7AC573479F05C438F232539B961A168095007@CUR1006V.br002.siemens.net.br> you wrote:
>
> >>You did mount the /proc filesystem, didn't you?
> I though /proc filesystem was mounted but it is not. My custom board is

Ummm.. I guess you have a login or any other way to access a shell on
your board? You can (and should) manually check which filesystems are
mounted, and mount anything that may be missing.

> running a 6MB ramdisk and I receive the following message when Linux
> goes up:
>
> EXT-f2 warning: mounting unchecked fs, running e2fsck is recommended

This is harmless - just an indication that  your  way  to  build  the
ramdisk image is more or less broken.

> VFS: Mounted root (ext2 filesystem)
> Freeing unused kernel memory: 60k init 4k openfirmware
> INIT; version 2.78 booting
> Checking all file systems...
> Parallelizing fsck version 1.19(13-jul-2000)
> Mounting local filesystems...
> Not mounted anuthing

To me this seems pretty much overkill for a ramdisk  of  an  embedded
system;  have  a  look  how  we  do this in our Simple Embedded Linux
Framework, see ftp://ftp.denx.de/pub/LinuxPPC/usr/src/SELF/

> I tried to run e2fsck but no success. Any idea what can I do to fix fs?

Fix the the build process for your ramdisk image.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
I used to be indecisive, now I'm not sure.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-07-23 21:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <B7AC573479F05C438F232539B961A168095007@CUR1006V.br002.siemens.net.br>
2002-07-23 21:14 ` CPU performance measurement Wolfgang Denk
2002-07-22 18:30 OTAVIO ISAMU SUGENO
2002-07-22 18:49 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2002-07-22 11:01 OTAVIO ISAMU SUGENO
2002-07-22 17:27 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).