How do I measure performance of a virtual server?

Posted by Sergey on Ask Ubuntu See other posts from Ask Ubuntu or by Sergey
Published on 2012-03-07T04:29:54Z Indexed on 2012/10/16 5:29 UTC
Read the original article Hit count: 471

Filed under:
|
|
|

I've got a VPS running Ubuntu. Being a virtual server, I understand that it shares resources with unknown number of other servers, and I'm noticing that it's considerably slower than my desktop machine.

Is there some tool to measure the performance of the virtual machine? I'd be curious to see some approximate measure similar to bogomips, possibly for CPU (operations/sec), memory and disk read/write speed. I'd like to be able to compare those numbers to my desktop machine.

I'm not interested in the specs of the actual physical machine my VPS is running on - by doing cat /proc/cpuinfo I can see that it's a nice quad-core Xeon machine, but it doesn't matter to me. I'm basically interested in how fast a program would run in my VPS - how many CPU operations it can make in a second, how many bytes to write to RAM or to disk.

I only have ssh access to the machine so the tool need to be command-line.

I could write a script which, say, does some calculations in a loop for a second and counts how many loops it was able to do, or something similar to measure disk and RAM performance. But I'm sure something like this already exists.

© Ask Ubuntu or respective owner

Related posts about server

Related posts about command-line