SSH Commands To Check The VPS Performance

Here are some common SSH commands done through putty to check the performance of the VPS

Checking the processor used for the VPS

 [abc@vps2 ~]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Core(TM) i7 CPU 970 @ 3.20GHz
stepping : 2
cpu MHz : 3200.539
cache size : 12288 KB

To check the I/O (Input Output ratio) of the VPS

[abc@vps2 ~]$ dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 24.9287 s, 43.1 MB/s
[abc@vps2 ~]$

To check the download speed of the VPS

[abc@vps2 ~]$ wget cachefly.cachefly.net/100mb.test
--2012-07-07 05:03:56-- http://cachefly.cachefly.net/100mb.test
Resolving cachefly.cachefly.net... 205.234.175.175
Connecting to cachefly.cachefly.net|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: â100mb.testâ

100%[======================================>] 104,857,600 3.79M/s in 26s

2012-07-07 05:04:23 (3.83 MB/s) - â100mb.testâ

[abc@vps2 ~]$

To check Disk space on the VPS

To check in KB

[abc@vps2 ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/simfs 26214400 11343856 14870544 44% /
none 65536 4 65532 1% /dev
tmpfs 65536 396 65140 1% /tmp
tmpfs 65536 396 65140 1% /tmp
[abc@vps2 ~]$

To check in GB

[abc@vps2 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 25G 11G 15G 44% /
none 64M 4.0K 64M 1% /dev
tmpfs 64M 396K 64M 1% /tmp
tmpfs 64M 396K 64M 1% /tmp
[abc@vps2 ~]$

An automated to do some of this is to use the shell script “Linux server info script” at akamaras.

The output of my VPS is this:

[abc@vps2 ~]$ sh bench.sh
CPU model : Intel(R) Core(TM) i7 CPU 970 @ 3.20GHz
Number of cores : 1
CPU frequency : 3200.539 MHz
Total amount of ram : 128 MB
Total amount of swap : 128 MB
System uptime : 20 days, 13:35,
Download speed : (3.89MB/s)
I/O speed : 60.1MB/s
[abc@vps2 ~]$

3 thoughts on “SSH Commands To Check The VPS Performance

  • I can't tell the difference between burst ram and VSWAP, im using 4GB ram on SSD but it shows
    Mem : 4GB total
    on burst ram (3GB GB Ram on HDD) it shows
    Mem : 6GB total

  • The all in one script is really nice.
    By the way, you can check your RAM allocation using free -m, but beware on OpenVZ, it will show the burstable RAM instead.

Leave a Reply

Your email address will not be published. Required fields are marked *