Performance script

Gleb Lanbin

Registered
Hello,

I wrote a shell script to collect performance statistics for MacOS, it provides in the next format:

name=Hardware Resources|CPU|%Idle,value=1
....
....
name=Hardware Resources|Disks|Reads/sec,value=19
name=Hardware Resources|Disks|Writes/sec,value=23
name=Hardware Resources|Disks|KB read/sec,value=80
name=Hardware Resources|Disks|KB written/sec,value=90

all works perfectly on my Mac OS Tiger(Darwin 8.1.0), but I have information that disks statistics doesn't work with Mac OS Leopard(Darwin 9.6.0)

I use output from top to collect disks statistics, probably they have different format of output for 2 versions of OS, but I can't test it and figure out where an issue, because don't have opportunity to test it on Leopard somewhere.

I'll be very appreciated if someone can help me and will try to execute script on own Leopard and try to figure out the issue with collection of disks performance.

Also, it's possible to provide here a result from command:
$top -l2 -cd -o pid -s 10 | grep Disks:

Script link: https://download.yousendit.com/TTZtcXlqaytlaFR2Wmc9PQ

Thanks,
Gleb
 
Hi Gleb
I have run your script even though hayne would not, it hangs at the disk section and outputs this-
name=Hardware Resources|Disks|Reads/sec,value=0
name=Hardware Resources|Disks|Writes/sec,value=
name=Hardware Resources|Disks|KB read/sec,value=
name=Hardware Resources|Disks|KB written/sec,value=

Is the script supposed to end?

I have had a look around and cannot find the equivalent command in Leopard for testing disk read writes. I did find this though, maybe you can modify it to do the various read/writes you want-
http://macosx.com/forums/apple-news-rumors-discussion/7909-lets-benchmark-our-hard-drives-test.html

Would it be possible for me to use this script?
Ed
 
Last edited:
Back
Top