CPU/Mem/Disk utilization (average) after process has completed
Posted
by BassKozz
on Server Fault
See other posts from Server Fault
or by BassKozz
Published on 2010-03-20T19:07:08Z
Indexed on
2010/03/20
19:11 UTC
Read the original article
Hit count: 425
Ubuntu Server 9.10
So there is the time
command which will show you the time it took for a specific process/command to run after the command has completed.
For example:
:~$ time ls
real 0m0.020s
user 0m0.000s
sys 0m0.000s
I'd like to also collect the average CPU usage, Memory, and Disk (i/o) utilization after the process has completed using time (or another command if necessary). How can I accomplish this?
Mainly I am using this to benchmark MySQL import performance using different innodb_buffer_pool_size
settings.
© Server Fault or respective owner