Using Facebook Graph API to keep an eye on friends activity

Life is really moving in the fast lane for me, and Im pretty sure for most of you readers too. I login to social-networking platforms after weeks and I cant recognize most of these faces (even though they are my friends). Its proven that Humans tend to recognize people by face more quickly then names and email addresses so whenever someone puts on a new face (uploads a new profile-picture), I have hard time getting to know them.

Well, I thought today, I have been developing in facebook application for so long now – Why not put online a few hours to fetch Facebook Friends data via API and keeping track of who did what? (status updates) and who changed his/her profile picture? So last night I was up, as usual, and I put together a small script in PHP that fetches my friends’s list, processes newcomers, checks for updates (pictures and statuses) and posts them into a database. Now I can track who updated his profile picture and what was their previous profile photo. Also, I can invest in another 1 hr to create high-level-summary everyday for ME :)

Do you do something of this sort? I’d love to hear your story

ThrustVPS Benchmark

Update (25-Aug-2010): Rus Foster from ThrustVPS.com is a blackmailer and a person with low self-esteem. He actually blackmailed me to hand him over certain domain names which he thinks believes is breaching the AUP. My accounts, VPS and the $60 of affiliate commission was terminated. I will advise everyone to KEEP AWAY from Rus Foster and ThrustVPS.com (click here to read the full review)

Unix Benchmark results from ThrustVPS using unixbench v 5.1.2

Specs: 512MB / 15GB XEN PV running Ubuntu 10.04 LTS

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.2                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   December 22, 2007                  johantheghost at yahoo period com

1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.2)

   System: wc.li-node.com: GNU/Linux
   OS: GNU/Linux -- 2.6.32-306-ec2 -- #11-Ubuntu SMP Tue Jun 1 14:35:25 UTC 2010
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (4791.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   18:19:22 up  3:09,  1 user,  load average: 0.26, 0.26, 0.32; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Wed Jul 28 2010 18:19:22 - 18:47:38
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       26329137.2 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3042.7 MWIPS (10.0 s, 7 samples)
Execl Throughput                               1574.9 lps   (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        231428.5 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           59019.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        719938.8 KBps  (30.0 s, 2 samples)
Pipe Throughput                              365359.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  89788.9 lps   (10.0 s, 7 samples)
Process Creation                               3490.3 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3024.7 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    396.9 lpm   (60.1 s, 2 samples)
System Call Overhead                         429628.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   26329137.2   2256.1
Double-Precision Whetstone                       55.0       3042.7    553.2
Execl Throughput                                 43.0       1574.9    366.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     231428.5    584.4
File Copy 256 bufsize 500 maxblocks            1655.0      59019.0    356.6
File Copy 4096 bufsize 8000 maxblocks          5800.0     719938.8   1241.3
Pipe Throughput                               12440.0     365359.6    293.7
Pipe-based Context Switching                   4000.0      89788.9    224.5
Process Creation                                126.0       3490.3    277.0
Shell Scripts (1 concurrent)                     42.4       3024.7    713.4
Shell Scripts (8 concurrent)                      6.0        396.9    661.5
System Call Overhead                          15000.0     429628.4    286.4
                                                                   ========
System Benchmarks Index Score                                         507.5

root@wc:~/unixbench-5.1.2# 

Not getting a package on Ubuntu?

If you are not getting a package on Ubunu using apt-get then chances are that it has not been updated in the /etc/apt/sources.list file

For example, the following should be there in the sources.list file if you are running Ubuntu 10.04 LTS (codename lucid)

## main & restricted repositories
deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

deb http://security.ubuntu.com/ubuntu lucid-updates main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-updates main restricted

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted

## universe repositories - uncomment to enable
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe

deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe

deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe

2Host Benchmark

Unix Benchmark results from 2Host VPS (WHT offer) using unixbench v 5.1.2

Specs: 512MB / 40GB XEN (using the old “Quad-Core AMD Opteron(tm) Processor 2374 HE”)

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.2                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   December 22, 2007                  johantheghost at yahoo period com

1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

2 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

2 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

2 x Execl Throughput  1 2 3

2 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

2 x File Copy 256 bufsize 500 maxblocks  1 2 3

2 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

2 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

2 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

2 x Process Creation  1 2 3

2 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

2 x Shell Scripts (1 concurrent)  1 2 3

2 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.2)

   System: ash.li-node.com: GNU/Linux
   OS: GNU/Linux -- 2.6.18-194.3.1.el5xen -- #1 SMP Thu May 13 13:49:53 EDT 2010
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Quad-Core AMD Opteron(tm) Processor 2374 HE (5494.9 bogomips)
          Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSCALL/S                                                                                                                     YSRET
   CPU 1: Quad-Core AMD Opteron(tm) Processor 2374 HE (5494.9 bogomips)
          Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSCALL/S                                                                                                                     YSRET
   10:12:22 up 17:41,  2 users,  load average: 0.00, 0.00, 0.00; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Sat Jul 24 2010 10:12:22 - 10:40:15
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       11715238.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1954.6 MWIPS (9.9 s, 7 samples)
Execl Throughput                               1048.5 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        158606.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           44107.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        446431.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                              259729.7 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  65287.5 lps   (10.0 s, 7 samples)
Process Creation                               2440.8 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2017.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    383.6 lpm   (60.1 s, 2 samples)
System Call Overhead                         318401.9 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   11715238.4   1003.9
Double-Precision Whetstone                       55.0       1954.6    355.4
Execl Throughput                                 43.0       1048.5    243.8
File Copy 1024 bufsize 2000 maxblocks          3960.0     158606.6    400.5
File Copy 256 bufsize 500 maxblocks            1655.0      44107.9    266.5
File Copy 4096 bufsize 8000 maxblocks          5800.0     446431.0    769.7
Pipe Throughput                               12440.0     259729.7    208.8
Pipe-based Context Switching                   4000.0      65287.5    163.2
Process Creation                                126.0       2440.8    193.7
Shell Scripts (1 concurrent)                     42.4       2017.6    475.8
Shell Scripts (8 concurrent)                      6.0        383.6    639.3
System Call Overhead                          15000.0     318401.9    212.3
                                                                   ========
System Benchmarks Index Score                                         347.0

------------------------------------------------------------------------
Benchmark Run: Sat Jul 24 2010 10:40:15 - 11:08:22
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables       23239290.6 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3908.7 MWIPS (9.8 s, 7 samples)
Execl Throughput                               1566.8 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        114126.1 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           34423.3 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        376661.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                              512697.2 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 127717.8 lps   (10.0 s, 7 samples)
Process Creation                               3241.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2730.9 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    397.4 lpm   (60.1 s, 2 samples)
System Call Overhead                         565738.2 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   23239290.6   1991.4
Double-Precision Whetstone                       55.0       3908.7    710.7
Execl Throughput                                 43.0       1566.8    364.4
File Copy 1024 bufsize 2000 maxblocks          3960.0     114126.1    288.2
File Copy 256 bufsize 500 maxblocks            1655.0      34423.3    208.0
File Copy 4096 bufsize 8000 maxblocks          5800.0     376661.0    649.4
Pipe Throughput                               12440.0     512697.2    412.1
Pipe-based Context Switching                   4000.0     127717.8    319.3
Process Creation                                126.0       3241.5    257.3
Shell Scripts (1 concurrent)                     42.4       2730.9    644.1
Shell Scripts (8 concurrent)                      6.0        397.4    662.3
System Call Overhead                          15000.0     565738.2    377.2
                                                                   ========
System Benchmarks Index Score                                         467.6

root@ash:~/unixbench-5.1.2#

HazeNet Benchmark

Update (14-May-2011): HazeNet has been taken over by ThrustVPS / Rus Foster. Read more about it here

Update (29-Aug-2010): Please check the latest benchmark results from their XEON node, pretty awesome for a 1024MB VPS.

Unix Benchmark results from HazeNet VPS using unixbench v 5.1.2 (please note that these are Quad-Core benchmark and not the new i7s and XEON that they are offering)

Specs: 1GB / 50GB OpenVZ

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.2                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   December 22, 2007                  johantheghost at yahoo period com

1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

4 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

4 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

4 x Execl Throughput  1 2 3

4 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

4 x File Copy 256 bufsize 500 maxblocks  1 2 3

4 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

4 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

4 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

4 x Process Creation  1 2 3

4 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

4 x Shell Scripts (1 concurrent)  1 2 3

4 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.2)

   System: kc: GNU/Linux
   OS: GNU/Linux -- 2.6.18-194.3.1.el5.028stab069.6 -- #1 SMP Wed May 26 18:31:05 MSD 2010
   Machine: i686 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz (5333.2 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 1: Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz (5333.2 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 2: Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz (5333.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 3: Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz (5333.2 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   21:26:27 up 3 days, 17:20,  1 user,  load average: 0.11, 0.04, 0.01; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Fri Jul 23 2010 21:26:27 - 21:54:42
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       12321177.3 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2399.6 MWIPS (9.5 s, 7 samples)
Execl Throughput                               3425.0 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        404117.8 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          120797.7 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        912271.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                              752344.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 147959.1 lps   (10.0 s, 7 samples)
Process Creation                              10617.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   4192.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1061.4 lpm   (60.0 s, 2 samples)
System Call Overhead                         655556.1 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   12321177.3   1055.8
Double-Precision Whetstone                       55.0       2399.6    436.3
Execl Throughput                                 43.0       3425.0    796.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     404117.8   1020.5
File Copy 256 bufsize 500 maxblocks            1655.0     120797.7    729.9
File Copy 4096 bufsize 8000 maxblocks          5800.0     912271.1   1572.9
Pipe Throughput                               12440.0     752344.5    604.8
Pipe-based Context Switching                   4000.0     147959.1    369.9
Process Creation                                126.0      10617.7    842.7
Shell Scripts (1 concurrent)                     42.4       4192.8    988.9
Shell Scripts (8 concurrent)                      6.0       1061.4   1769.0
System Call Overhead                          15000.0     655556.1    437.0
                                                                   ========
System Benchmarks Index Score                                         793.1

------------------------------------------------------------------------
Benchmark Run: Fri Jul 23 2010 21:54:42 - 22:23:49
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       37577505.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     9217.4 MWIPS (10.2 s, 7 samples)
Execl Throughput                               8328.6 lps   (29.6 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        243880.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           66651.4 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        635842.8 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2313723.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 797833.2 lps   (10.0 s, 7 samples)
Process Creation                              23557.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   9255.1 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1202.9 lpm   (60.1 s, 2 samples)
System Call Overhead                        1724823.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   37577505.1   3220.0
Double-Precision Whetstone                       55.0       9217.4   1675.9
Execl Throughput                                 43.0       8328.6   1936.9
File Copy 1024 bufsize 2000 maxblocks          3960.0     243880.6    615.9
File Copy 256 bufsize 500 maxblocks            1655.0      66651.4    402.7
File Copy 4096 bufsize 8000 maxblocks          5800.0     635842.8   1096.3
Pipe Throughput                               12440.0    2313723.6   1859.9
Pipe-based Context Switching                   4000.0     797833.2   1994.6
Process Creation                                126.0      23557.1   1869.6
Shell Scripts (1 concurrent)                     42.4       9255.1   2182.8
Shell Scripts (8 concurrent)                      6.0       1202.9   2004.9
System Call Overhead                          15000.0    1724823.0   1149.9
                                                                   ========
System Benchmarks Index Score                                        1466.8

root@kc:~/unixbench-5.1.2#

Linode Benchmark

Unix Benchmark results from Linode VPS in London using unixbench v 5.1.2

Specs: 512MB / 16GB XEN


   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.2                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   December 22, 2007                  johantheghost at yahoo period com

1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

4 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

4 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

4 x Execl Throughput  1 2 3

4 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

4 x File Copy 256 bufsize 500 maxblocks  1 2 3

4 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

4 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

4 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

4 x Process Creation  1 2 3

4 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

4 x Shell Scripts (1 concurrent)  1 2 3

4 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.2)

   System: svnforge.com: GNU/Linux
   OS: GNU/Linux -- 2.6.34-linode26 -- #2 SMP Wed Jun 23 18:47:16 UTC 2010
   Machine: i686 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4533.5 bogomips)
          Hyper-Threading, MMX, Physical Address Ext
   CPU 1: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4533.5 bogomips)
          Hyper-Threading, MMX, Physical Address Ext
   CPU 2: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4533.5 bogomips)
          Hyper-Threading, MMX, Physical Address Ext
   CPU 3: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4533.5 bogomips)
          Hyper-Threading, MMX, Physical Address Ext
   21:25:13 up 28 days,  3:13,  1 user,  load average: 0.20, 0.09, 0.03; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Fri Jul 23 2010 21:25:13 - 21:53:51
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       14279671.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2094.2 MWIPS (10.4 s, 7 samples)
Execl Throughput                               1251.8 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        266551.4 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           70991.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        789838.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                              415063.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  50831.3 lps   (10.0 s, 7 samples)
Process Creation                               1886.2 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2266.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    529.7 lpm   (60.7 s, 2 samples)
System Call Overhead                         421539.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   14279671.1   1223.6
Double-Precision Whetstone                       55.0       2094.2    380.8
Execl Throughput                                 43.0       1251.8    291.1
File Copy 1024 bufsize 2000 maxblocks          3960.0     266551.4    673.1
File Copy 256 bufsize 500 maxblocks            1655.0      70991.9    429.0
File Copy 4096 bufsize 8000 maxblocks          5800.0     789838.0   1361.8
Pipe Throughput                               12440.0     415063.9    333.7
Pipe-based Context Switching                   4000.0      50831.3    127.1
Process Creation                                126.0       1886.2    149.7
Shell Scripts (1 concurrent)                     42.4       2266.0    534.4
Shell Scripts (8 concurrent)                      6.0        529.7    882.8
System Call Overhead                          15000.0     421539.3    281.0
                                                                   ========
System Benchmarks Index Score                                         434.2

------------------------------------------------------------------------
Benchmark Run: Fri Jul 23 2010 21:53:51 - 22:22:46
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       49456910.6 lps   (10.1 s, 7 samples)
Double-Precision Whetstone                     7199.2 MWIPS (11.8 s, 7 samples)
Execl Throughput                               3962.5 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        269698.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           69760.4 KBps  (30.1 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        931798.2 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1489736.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 189343.3 lps   (10.0 s, 7 samples)
Process Creation                               4623.3 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5059.8 lpm   (60.3 s, 2 samples)
Shell Scripts (8 concurrent)                    792.9 lpm   (60.2 s, 2 samples)
System Call Overhead                        1455240.6 lps   (10.1 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   49456910.6   4238.0
Double-Precision Whetstone                       55.0       7199.2   1309.0
Execl Throughput                                 43.0       3962.5    921.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     269698.6    681.1
File Copy 256 bufsize 500 maxblocks            1655.0      69760.4    421.5
File Copy 4096 bufsize 8000 maxblocks          5800.0     931798.2   1606.5
Pipe Throughput                               12440.0    1489736.5   1197.5
Pipe-based Context Switching                   4000.0     189343.3    473.4
Process Creation                                126.0       4623.3    366.9
Shell Scripts (1 concurrent)                     42.4       5059.8   1193.4
Shell Scripts (8 concurrent)                      6.0        792.9   1321.6
System Call Overhead                          15000.0    1455240.6    970.2
                                                                   ========
System Benchmarks Index Score                                         976.3

root@svnforge:~/unixbench-5.1.2#

How to install byte-unixBench on Ubuntu

From UnixBench project homepage:

UnixBench is the original BYTE UNIX benchmark suite, updated and revised by many people over the years.

The purpose of UnixBench is to provide a basic indicator of the performance of a Unix-like system; hence, multiple tests are used to test various aspects of the system’s performance. These test results are then compared to the scores from a baseline system to produce an index value, which is generally easier to handle than the raw scores. The entire set of index values is then combined to make an overall index for the system.

Some very simple graphics tests are included to measure the 2D and 3D graphics performance of the system.

Multi-CPU systems are handled. If your system has multiple CPUs, the default behaviour is to run the selected tests twice — once with one copy of each test program running at a time, and once with N copies, where N is the number of CPUs. This is designed to allow you to assess:

* the performance of your system when running a single task
* the performance of your system when running multiple tasks
* the gain from your system’s implementation of parallel processing

Do be aware that this is a system benchmark, not a CPU, RAM or disk benchmark. The results will depend not only on your hardware, but on your operating system, libraries, and even compiler.

First install required libraries for compilation :

apt-get install libx11-dev libgl1-mesa-dev libxext-dev perl  perl-modules make

Then get the unixbench and run it :

wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz
tar xvf unixbench-5.1.2.tar.gz
cd unixbench-5.1.2
./Run

NordicVPS Benchmark

Update (Apr 22, 2011): Please read my post NordicVPS is down the drain? to learn more about this host before ordering with them.

Unix Benchmark results from Nordic VPS in Hetzner, Germany using unixbench v 5.1.2

Specs: 256MB / 10GB XEN PV


   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.2                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   December 22, 2007                  johantheghost at yahoo period com

1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.2)

   System: fra.li-node.com: GNU/Linux
   OS: GNU/Linux -- 2.6.32-305-ec2 -- #9-Ubuntu SMP Thu Apr 15 04:14:01 UTC 2010
   Machine: i686 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (5351.4 bogomips)
          Hyper-Threading, MMX, Physical Address Ext, SYSENTER/SYSEXIT
   21:20:07 up 17:00,  2 users,  load average: 0.42, 0.23, 0.19; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Fri Jul 23 2010 21:20:07 - 21:48:49
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       14219975.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2531.0 MWIPS (10.2 s, 7 samples)
Execl Throughput                               1814.0 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        402343.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          121184.7 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1203280.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                              713357.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  84853.7 lps   (10.0 s, 7 samples)
Process Creation                               3918.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2756.7 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    361.2 lpm   (60.1 s, 2 samples)
System Call Overhead                         629430.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   14219975.8   1218.5
Double-Precision Whetstone                       55.0       2531.0    460.2
Execl Throughput                                 43.0       1814.0    421.9
File Copy 1024 bufsize 2000 maxblocks          3960.0     402343.6   1016.0
File Copy 256 bufsize 500 maxblocks            1655.0     121184.7    732.2
File Copy 4096 bufsize 8000 maxblocks          5800.0    1203280.3   2074.6
Pipe Throughput                               12440.0     713357.0    573.4
Pipe-based Context Switching                   4000.0      84853.7    212.1
Process Creation                                126.0       3918.4    311.0
Shell Scripts (1 concurrent)                     42.4       2756.7    650.2
Shell Scripts (8 concurrent)                      6.0        361.2    602.0
System Call Overhead                          15000.0     629430.4    419.6
                                                                   ========
System Benchmarks Index Score                                         602.1

root@fra:~/unixbench-5.1.2#

Installing Lighttpd, PHP and MySQL on Ubuntu

If you are not getting a package on Ubuntu, please check to see if your /etc/apt/sources.list file is updated. This is common with most VPS providers

On VPS, especially with challenging small memory limit (e.g. 64MB or 128MB) lighttpd is the best option instead of Apache. In this article I will show you how to do that. On a fresh box (which has no apache installed) type this to get lighttpd webserver installed

apt-get install lighttpd

Now install PHP5 CGI package and PHP5 command line package

apt-get install php5-cgi php5-cli

Edit the following file

nano /etc/php5/cgi/php.ini

and uncomment this line

cgi.fix_pathinfo = 1

Now enable fastcgi module

lighty-enable-mod fastcgi

Restart Lighttpd

/etc/init.d/lighttpd restart

You get the welcome page

Lets install MySQL 5.1 server and client

apt-get install mysql-server mysql-client

and optionally phpMyAdmin

apt-get install phpmyadmin

Now create a test page to see if phpinfo is all Ok

nano /var/www/info.php

Type in the following

<?php
phpinfo();