running vmstat around a command

Posted by svrist on Server Fault See other posts from Server Fault or by svrist
Published on 2010-04-06T08:40:59Z Indexed on 2010/04/06 8:43 UTC
Read the original article Hit count: 568

Filed under:
|
|

Im trying to automate a long list of database experiments. I would like to save vmstat output while specific parts of the experiments are running.

Does something exist along the lines of time(1) or script(1) that I could use to say: " While this command is running, save vmstat 2(or similar) output to a file "

I am aware that vmstat gives my vmstat for the complete system including other processes, but that is OK for my usage.

(Running Ubuntu 9.10 if that makes a difference)

© Server Fault or respective owner

Related posts about vmstat

Related posts about linux