Linux server info script

Here is a script that will quickly provide you information about your linux server such as cpu model, frequency, number of cores, amount of ram & swap, system uptime and test server download & I/O speed

cpu, ram and system uptime info are taken from “/proc/cpuinfo” , “free” and “uptime” respectively

download speed is measured by downloading a test file from cachefly, while I/O speed is measured by creating a 1GB file from null characters (/dev/zero)

To execute the script, just download and run

wget http://akamaras.com/bench.sh
sh bench.sh

if you’re on debian based distribution you’ll have to execute with bash

wget http://akamaras.com/bench.sh
bash bench.sh

Here is a sample of the output

CPU model : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
Number of cores : 8
CPU frequency : 3066.772 MHz
Total amount of ram : 112 MB
Total amount of swap : 255 MB
System uptime : 33 days, 17:57,
Download speed : (8.33MB/s)
I/O speed : 167MB/s

NOTE: it will take a while for the script to print the results

feel free to share your results in the comments 🙂

Leave a comment ?

64 Comments.

  1. Working fine here 🙂

    [root@web ~]# sh bench.sh
    CPU model : Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
    Number of cores : 2
    CPU frequency : 2399.998 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 2047 MB
    Download speed : (65.7MB/s)
    I/O speed : 424MB/s

  2. CPU model : Intel(R) Xeon(R) CPU E31220 @ 3.10GHz
    Number of cores : 4
    CPU frequency : 3092.970 MHz
    Total amount of ram : 256 MB
    Total amount of swap : 0 MB
    System uptime : 2:12,
    Download speed : (88.9MB/s)
    I/O speed : 165MB/s

  3. CPU model : Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
    Number of cores : 1
    CPU frequency : 3192.892 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 0 MB
    System uptime : 4 days, 4:20,
    Download speed : MB/s)-
    I/O speed : 75.8MB/s

    at hostigation 512 vz vps

  4. Volumedrive vps

    CPU model :    Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
    Number of cores : 1
    CPU frequency : 2400.147 MHz
    Total amount of ram : 32112 MB
    Total amount of swap : 8594 MB
    System uptime :   41 min,
    Download speed : (3.60MB/s)
    I/O speed : 88.7MB/s
  5. WEBTROPIA VPS S + 1 GB RAM EXTRA
    CPU model : Intel(R) Xeon(R) CPU E5504 @ 2.00GHz
    Number of cores : 1
    CPU frequency : 1999.963 MHz
    Total amount of ram : 2048 MB
    Total amount of swap : 0 MB
    System uptime : 2:46,
    Download speed : (10.9MB/s)
    I/O speed : 69.1MB/s

  6. ramhost.us

    CPU model : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
    Number of cores : 3
    CPU frequency : 3074.411 MHz
    Total amount of ram : 256 MB
    Total amount of swap : 0 MB
    System uptime : 52 days, 15:11,
    Download speed : (10.8MB/s)
    I/O speed : 60.9MB/s

  7. dediserve.com 256MB Cloud VPS:

    CPU model : Intel(R) Xeon(R) CPU X5670 @ 2.93GHz
    Number of cores : 1
    CPU frequency : 2932.498 MHz
    Total amount of ram : 256 MB
    Total amount of swap : 1023 MB
    System uptime : 23 min,
    Download speed : (1.36MB/s)
    I/O speed : 18.3MB/s

    I guess that despite their NetApp storage units, things don’t look that good after all.

  8. From XenVZ new node:

    ===============================================
    CPU model : AMD Opteron(tm) Processor 4162 EE
    Number of cores : 2
    CPU frequency : 1700.019 MHz
    Total amount of ram : 256 MB
    Total amount of swap : 255 MB
    System uptime : 21 min,
    Download speed : (7.65MB/s)
    I/O speed : 57.3MB/s
    ===============================================

  9. I ran this but the CPU model and CPU frequency aren’t matching.

    Is this because of speed stepping? or is my VPS provider cheating in giving multiple cores at lower clocks?

    ===============================================
    CPU model : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
    Number of cores : 2
    CPU frequency : 1200.042 MHz
    Total amount of ram : 1088 MB
    Total amount of swap : 0 MB
    System uptime : 3 days, 23:38,
    Download speed : (63.2MB/s)
    I/O speed : 93.2MB/s
    ===============================================

    • this could be both. Try running something cpu hungry, such as unixbench. While it is running, leave another console open running

      watch --interval=1 'cat /proc/cpuinfo | grep MHz'

      if the MHz are getting up&down it’s speedstep

  10. RamHost.us tinyvz VPS from ramnet 256mb 10gb space 500gb traffic.
    Bench with 10 active users and 6 heavy crawlers online.
    Thank you for script

    CPU model : Intel(R) Xeon(R) CPU E31220 @ 3.10GHz
    Number of cores : 4
    CPU frequency : 3092.980 MHz
    Total amount of ram : 256 MB
    Total amount of swap : 0 MB
    System uptime : 1 day, 10:35,
    Download speed : (82.0MB/s)
    I/O speed : 77.0MB/s

  11. Just purchased kimsufi 2G (kimsufi.ie which is ovh.ie)


    CPU model : Intel(R) Atom(TM) CPU N2800 @ 1.86GHz
    Number of cores : 4
    CPU frequency : 1862.000 MHz
    Total amount of ram : 1991 MB
    Total amount of swap : 2998 MB
    System uptime : 14 min,
    Download speed : (10.9MB/s)
    I/O speed : 153MB/s

  12. tektonic:

    CPU model : Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
    Number of cores : 2
    CPU frequency : 1304.581 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 1024 MB
    System uptime : 550 days, 17:32,
    Download speed : (45.7MB/s)
    I/O speed : 18.3MB/s

  13. secure dragon:

    CPU model : Intel(R) Xeon(R) CPU X5355 @ 2.66GHz
    Number of cores : 1
    CPU frequency : 2660.027 MHz
    Total amount of ram : 512 MB
    Total amount of swap : 0 MB
    System uptime : 19:49,
    Download speed : (23.5MB/s)
    I/O speed : 148MB/s

  14. Hostigation:

    CPU model : Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
    Number of cores : 1
    CPU frequency : 3192.943 MHz
    Total amount of ram : 256 MB
    Total amount of swap : 0 MB
    System uptime : 14:46,
    Download speed : (50.3MB/s)
    I/O speed : 116MB/s

  15. bluevm:

    CPU model : Intel(R) Xeon(R) CPU L5420 @ 2.50GHz
    Number of cores : 3
    CPU frequency : 2242.913 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 0 MB
    System uptime : 3 min,
    Download speed : (4.62MB/s)
    I/O speed : 42.6MB/s

  16. ChicagoVPS, this is what I get for $7/month

    CPU model : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
    Number of cores : 4
    CPU frequency : 3392.510 MHz
    Total amount of ram : 2048 MB
    Total amount of swap : 0 MB
    System uptime : 9:36,
    Download speed : (10.9MB/s)
    I/O speed : 86.5MB/s

  17. CPU model : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
    Number of cores : 2
    CPU frequency : 424.030 MHz
    Total amount of ram : 128 MB
    Total amount of swap : 640 MB
    System uptime : 1:00,
    Download speed : (24.5MB/s)
    I/O speed : 101MB/s

    [[ Host1plus ]] Free VPS!

  18. Hi,
    Please add IPv6 connectivy detected. Some VPS are IPv6 only or have IPv6 native connections.

  19. can you add different locations for download speed test?

    • Yes, it can be done.
      But I can’t see the purpose of it.
      The cachefly test file is being downloaded to show you the port speed and it might give you an estimate of the networks performance.
      Cachefly is chosen over other datacenters test files because it doesn’t have a location, it has a global network

      I don’t think anybody buys a server to download files. What might be useful in my opinion, is to have ping times to many locations. If you’re interested in something like this, let me know.

  20. BlueVM vps (BLUE3)
    CPU model : Intel(R) Xeon(R) CPU L5420 @ 2.50GHz
    Number of cores : 2
    CPU frequency : 2248.533 MHz
    Total amount of ram : 512 MB
    Total amount of swap : 0 MB
    System uptime : 12 min,
    Download speed : (90.5MB/s)
    I/O speed : 114MB/s

  21. SSH Commands To Check The VPS Performance | vps2.me - pingback on 08/07/2012 at 16:42
  22. Corgi Tech Limited:

    CPU model : AMD Opteron(TM) Processor 6272
    Number of cores : 2
    CPU frequency : 2100.000 MHz
    Total amount of ram : 491 MB
    Total amount of swap : 575 MB
    System uptime : 2 days, 43 min,
    Download speed : (24.0MB/s)
    I/O speed : 169MB/s

  23. budgetVM Chicago IL

    [root@host ~]# sh bench.sh
    CPU model : Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz
    Number of cores : 4
    CPU frequency : 1999.905 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 1024 MB
    System uptime : 17:15,
    Download speed : (70.0MB/s)
    I/O speed : 580MB/s

  24. no.lieb.be – old ost im about to cancel

    CPU model : Intel(R) Atom(TM) CPU D425 @ 1.80GHz
    Number of cores : 2
    CPU frequency : 1800.141 MHz
    Total amount of ram : 1998 MB
    Total amount of swap : 1998 MB
    System uptime : 38 days, 4:19,
    Download speed : (10,6MB/s)
    I/O speed : 91,2MB/s

  25. TinyVZ.com

    CPU model : Intel(R) Xeon(R) CPU E31220 @ 3.10GHz
    Number of cores : 4
    CPU frequency : 3092.982 MHz
    Total amount of ram : 256 MB
    Total amount of swap : 0 MB
    System uptime : 1 min,
    Download speed : (6.11MB/s)
    I/O speed : 59.7MB/s

  26. 2host

    CPU model : Intel(R) Xeon(R) CPU E5405 @ 2.00GHz
    Number of cores : 1
    CPU frequency : 1999.997 MHz
    Total amount of ram : 256 MB
    Total amount of swap : 63 MB
    System uptime : 6 days, 7:22,
    Download speed : (18.4MB/s)
    I/O speed : 216MB/s

  27. Promoteus :

    CPU model : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
    Number of cores : 4
    CPU frequency : 1600.000 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 512 MB
    System uptime : 50 min,
    Download speed : (44.2MB/s)
    I/O speed : 355MB/s

  28. FREE VPS. No paid, no limt bandwitch, account forever. Operator: host1free.com Localization: EU Deutschland DE Frankfurt (lan: Ghostnet GMBH)


    CPU model : Intel(R) Xeon(R) CPU L5630 @ 2.13GHz
    Number of cores : 2
    CPU frequency : 266.703 MHz
    Total amount of ram : 128 MB
    Total amount of swap : 384 MB
    System uptime : 3 days, 13:52,
    Download speed : (252KB/s)
    I/O speed : 40,8MB/s

  29. Mhamad Rachini

    CPU model : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz
    Number of cores : 1
    CPU frequency : 2327.495 MHz
    Total amount of ram : 32 MB
    Total amount of swap : 32 MB
    System uptime : 13 min,
    Download speed : (10.2MB/s)
    I/O speed : 93.1MB/s

  30. Beamservers NL S vps Package!
    ———————————-
    CPU model : Intel(R) Xeon(R) CPU E31260L @ 2.40GHz
    Number of cores : 5
    CPU frequency : 1600.050 MHz
    Total amount of ram : 2048 MB
    Total amount of swap : 0 MB
    System uptime : 13:07,
    Download speed : (33.1MB/s)
    I/O speed : 113MB/s

  31. cloudup.it :

    CPU model : Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz
    Number of cores : 1
    CPU frequency : 2000.056 MHz
    Total amount of ram : 998 MB
    Total amount of swap : 0 MB
    System uptime : 1:15,
    Download speed : (20.8MB/s)
    I/O speed : 6.8MB/s

  32. colorhost.de

    CPU model : Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
    Number of cores : 4
    CPU frequency : 3300.092 MHz
    Total amount of ram : 256 MB
    Total amount of swap : 256 MB
    System uptime : 2 days, 10:21,
    Download speed : (37.9MB/s)
    I/O speed : 65.1MB/s

    vooservers.co.uk
    CPU model : Intel(R) Xeon(R) CPU X3440 @ 2.53GHz
    Number of cores : 4
    CPU frequency : 2526.982 MHz
    Total amount of ram : 241 MB
    Total amount of swap : 511 MB
    System uptime : 15 min,
    Download speed : (9.99MB/s)
    I/O speed : 99.1MB/s

  33. ipxcore.com

    CPU model : Intel(R) Xeon(R) CPU E3-1240 V2 @ 3.40GHz
    Number of cores : 1
    CPU frequency : 3401.000 MHz
    Total amount of ram : 128 MB
    Total amount of swap : 32 MB
    System uptime : 3 min,
    Download speed : (10.6MB/s)
    I/O speed : 161MB/s

  34. UGVPS

    CPU model : Intel(R) Xeon(R) CPU E3-1240 V2 @ 3.40GHz
    Number of cores : 4
    CPU frequency : 3400.013 MHz
    Total amount of ram : 1536 MB
    Total amount of swap : 0 MB
    System uptime : 29 min,
    Download speed : (69.3MB/s)
    I/O speed : 437MB/s

  35. GIGAS Cloud VPS nova:

    CPU model : QEMU Virtual CPU version 1.3.1
    Number of cores : 2
    CPU frequency : 2099.602 MHz
    Total amount of ram : 2012 MB
    Total amount of swap : 1023 MB
    System uptime : 11 days, 12:08,
    Download speed : (4.86MB/s)
    I/O speed : 76.1MB/s

  36. SSD cPanel:

    CPU model : Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
    Number of cores : 24
    CPU frequency : 2399.926 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 0 MB
    System uptime : 24 days, 17:05,
    Download speed : (14.3MB/s)
    I/O speed : 802MB/s

  37. SSD cPanel:

    CPU model : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz
    Number of cores : 24
    CPU frequency : 2300.093 MHz
    Total amount of ram : 2048 MB
    Total amount of swap : 0 MB
    System uptime : 8 days, 17:30,
    Download speed : (11.6MB/s)
    I/O speed : 792MB/s

  38. How to Benchmark Your Server - Unix IO - pingback on 06/08/2013 at 12:34
  39. xevolx@607hosting.com [~]# ./bench.sh
    CPU model : Intel(R) Xeon(R) CPU E3-1240 V2 @ 3.40GHz
    Number of cores : 8
    CPU frequency : 3399.960 MHz
    Total amount of ram : 6144 MB
    Total amount of swap : 0 MB
    System uptime : 82 days, 14:15,
    Download speed : (90.6MB/s)
    I/O speed : 76.0MB/s
    xevolx@607hosting.com [~]#

  40. Gregg Leventhal

    You know, you can search for regex using awk, there is no reason to pipe grep to awk. Just do something like awk ‘$0 ~ /name/ { $1=$2=$3″”; print }’

    HTH

  41. CPU model : Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
    Number of cores : 16
    CPU frequency : 283.350 MHz
    Total amount of ram : 4096 MB
    Total amount of swap : 0 MB
    System uptime : 43 min,
    Download speed : (33.3MB/s)
    I/O speed : 69.1MB/s

  42. I’m using Ramnode SSD VPS.

    CPU model : Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
    Number of cores : 4
    CPU frequency : 3300.178 MHz
    Total amount of ram : 4096 MB
    Total amount of swap : 4096 MB
    System uptime : 8 days, 16:31,
    Download speed : (54.8MB/s)
    I/O speed : 849MB/s

  43. Weloveservers.net Anniversary Sale – LEB 1GB $19/yr

    CPU model:Intel(R) Xeon(R) CPU E3-1240 v3 @3.40GHz
    Number of cores : 4
    CPU frequency : 3399.832 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 1280 MB
    System uptime : 7 days, 5:11,
    Download speed : (78.5MB/s)
    I/O speed : 141MB/s

  44. Onetsolutions:
    CPU model : Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz
    Number of cores : 1
    CPU frequency : 3399.721 MHz
    Total amount of ram : 16384 MB
    Total amount of swap : 16384 MB
    System uptime : 1 day, 12:29,
    Download speed : (55,1MB/s)
    I/O speed : 27,2MB/s

  45. CPU model : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
    Number of cores : 1
    CPU frequency : 2600.112 MHz
    Total amount of ram : 992 MB
    Total amount of swap : 0 MB
    System uptime : 9:12,
    Download speed : (52.0MB/s)
    I/O speed : 417MB/s

  46. CPU model : Intel(R) Xeon(R) CPU L5520 @ 2.27GHz
    Number of cores : 3
    CPU frequency : 1600.000 MHz
    Total amount of ram : 512 MB
    Total amount of swap : 1024 MB
    System uptime : 15 days, 15:52,
    Download speed : (49.1MB/s)
    I/O speed : 96.2MB/s

  47. How to Benchmark Your Server | VPStrial.eu - pingback on 22/01/2014 at 10:49
  48. CPU model : Intel(R) Xeon(R) CPU L5520 @ 2.27GHz
    Number of cores : 1
    CPU frequency : 2266.747 MHz
    Total amount of ram : 490 MB
    Total amount of swap : 2015 MB
    System uptime : 10:07,
    Download speed : (2,77MB/s)
    I/O speed : 77,4MB/s

  49. [root@apache2 tmp]# sh bench.sh
    CPU model : Intel(R) Xeon(R) CPU E3-1240 V2 @ 3.40GHz
    Number of cores : 8
    CPU frequency : 3400.157 MHz
    Total amount of ram : 2048 MB
    Total amount of swap : 2457 MB
    System uptime : 17 min,
    Download speed : (83.1MB/s)
    I/O speed : 137MB/s

  50. Crissic Solutions
    ——————
    CPU model : Intel(R) Xeon(R) CPU X5660 @ 2.80GHz
    Number of cores : 4
    CPU frequency : 2800.292 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 1024 MB
    System uptime : 22 min,
    Download speed : (38.2MB/s)
    I/O speed : 99.8MB/s

  51. HostHatch 3 year anniversary VPS (VZ-SSD #3):
    http://lowendbox.com/blog/hosthatch-3-year-anniversary/

    CPU model : Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz
    Number of cores : 3
    CPU frequency : 3499.976 MHz
    Total amount of ram : 1024 MB
    Total amount of swap : 1024 MB
    System uptime : 10 days, 23:58,
    Download speed : (18.1MB/s)
    I/O speed : 381MB/s

  52. dominionhosting

    CPU model : Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
    Number of cores : 8
    CPU frequency : 2266.746 MHz
    Total amount of ram : 512 MB
    Total amount of swap : 511 MB
    System uptime : 6 days, 15:38,
    Download speed : (11.1MB/s)
    I/O speed : 14.7MB/s

  53. Vultr VPS Review (Tokyo) | vps2.me - pingback on 21/08/2014 at 20:52
  54. hello, thanks for the script!

    here is modified version to remove useless spaces and last comma in uptime.

    http://paste.ubuntu.com/9401248/

    have fun!

    PS. my contributions are licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication license. so simply do “whatever you want”..

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.