PDA

View Full Version : How to meter linux command performance / CPU impact?



Fli
11-16-2014, 06:41 PM
Hello,

is there any simple way how i can monitor some linux command impact on server CPU?

I mean i have command:

cut -d . -f 1 /proc/loadavg

and im curious to see how much percent of cpu it takes?

example if i execute it like every 500 miliseconds if its effective and dont overload my VPS regarding CPU

Update: this can be used: /usr/bin/time -v COMMAND_HERE
or simply: time COMMAND