wlv001 - LMBENCH Results
This is the fastest machine I've ever owned...
L M B E N C H 3 . 0 S U M M A R Y ------------------------------------ (Alpha software, do not distribute) Processor, Processes - times in microseconds - smaller is better ------------------------------------------------------------------------------ Host OS Mhz null null open slct sig sig fork exec sh call I/O stat clos TCP inst hndl proc proc proc --------- ------------- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- wlv001 Linux 2.6.18- 2860 0.22 0.33 1.71 2.36 2.70 0.29 1.08 181. 614. 2332 Basic integer operations - times in nanoseconds - smaller is better ------------------------------------------------------------------- Host OS intgr intgr intgr intgr intgr bit add mul div mod --------- ------------- ------ ------ ------ ------ ------ wlv001 Linux 2.6.18- 0.3500 0.0100 0.1600 8.3400 8.3100 Basic float operations - times in nanoseconds - smaller is better ----------------------------------------------------------------- Host OS float float float float add mul div bogo --------- ------------- ------ ------ ------ ------ wlv001 Linux 2.6.18- 1.0400 1.4000 5.1600 4.8600 Basic double operations - times in nanoseconds - smaller is better ------------------------------------------------------------------ Host OS double double double double add mul div bogo --------- ------------- ------ ------ ------ ------ wlv001 Linux 2.6.18- 1.0400 1.7400 7.9400 7.6400 Context switching - times in microseconds - smaller is better ------------------------------------------------------------------------- Host OS 2p/0K 2p/16K 2p/64K 8p/16K 8p/64K 16p/16K 16p/64K ctxsw ctxsw ctxsw ctxsw ctxsw ctxsw ctxsw --------- ------------- ------ ------ ------ ------ ------ ------- ------- wlv001 Linux 2.6.18- 5.3800 8.2900 14.9 9.0300 16.6 9.38000 16.5 *Local* Communication latencies in microseconds - smaller is better --------------------------------------------------------------------- Host OS 2p/0K Pipe AF UDP RPC/ TCP RPC/ TCP ctxsw UNIX UDP TCP conn --------- ------------- ----- ----- ---- ----- ----- ----- ----- ---- wlv001 Linux 2.6.18- 5.380 12.1 8.92 31.9 17.4 32.4 19.4 29. File & VM system latencies in microseconds - smaller is better ------------------------------------------------------------------------------- Host OS 0K File 10K File Mmap Prot Page 100fd Create Delete Create Delete Latency Fault Fault selct --------- ------------- ------ ------ ------ ------ ------- ----- ------- ----- wlv001 Linux 2.6.18- 46.7 10.2 74.6 17.8 20.9K 0.299 0.23420 1.477 *Local* Communication bandwidths in MB/s - bigger is better ----------------------------------------------------------------------------- Host OS Pipe AF TCP File Mmap Bcopy Bcopy Mem Mem UNIX reread reread (libc) (hand) read write --------- ------------- ---- ---- ---- ------ ------ ------ ------ ---- ----- wlv001 Linux 2.6.18- 1150 5954 2349 4176.2 7725.9 3794.8 3636.4 5855 6005. Memory latencies in nanoseconds - smaller is better (WARNING - may not be correct, check graphs) ------------------------------------------------------------------------------ Host OS Mhz L1 $ L2 $ Main mem Rand mem Guesses --------- ------------- --- ---- ---- -------- -------- ------- wlv001 Linux 2.6.18- 2860 1.4050 3.6100 23.3 119.6 make[1]: Leaving directory `/home/wyattv/lmbench3/results'
Welcome wlv001
Say hello to wlv001, my new Linux server. This machine is destined to be my front end Apache box. I have it up and running, but already there have been challenges...
Here are the details on the hardware:
- ASUS RS100-E6/PI2
- Intel® Xeon® Processor X3440
- 8GB 1066MHz DDR3 ECC Reg w/Par CL7 DIMM (Kit of 2) QR, x8 w/Therm Sen
- 2 X Seagate Barracuda 7200.12 SATA 3Gb/s 1TB Hard Drive
- ASUS EN8400GS Silent/P/512M
PostgreSQL on Windows
Download the Windows zip from EnterpriseDB site and unzip to some directory. For this demonstration, I'll assume C:\_apps\pgsql.
C:\>cd \_apps\pgsql
Initialize a new database. This location could be anywhere you like, for simplicity's sake I'll create a directory named data inside the pgsql directory.
C:\_apps\pgsql>mkdir data C:\_apps\pgsql>bin\initdb.exe -D data
After a series of debug messages you should finally receive the following.
WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the -A option the next time you run initdb. Success. You can now start the database server using: "bin\postgres" -D "data" or "bin\pg_ctl" -D "data" -l logfile start
W3C Geolocation, Bing Maps and HTML 5 Canvas
This code uses the W3C's Geolocation API in conjunction with Bing Maps and HTML 5 Canvas.
<!DOCTYPE HTML> <html> <head> <title>HTML5 page</title> <!--link rel="stylesheet" type="text/css" href="site.css"/--> <style type="text/css"> #baseDiv {position:relative; width:80%; left:10%; border:1px solid;} </style> </head> <body> <div id="baseDiv"> <canvas id="stage" width="600" height="600">Sorry, your browser does not support the canvas tag.</canvas> </div> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.js"></script> <script type="text/javascript"> //<![CDATA[ var lineHeight = 14; jQuery(function() { navigator.geolocation.getCurrentPosition(showPosition); }); function showPosition(position) { var ctx = document.getElementById('stage').getContext('2d'), txt = 'This is a string of text', x = 10, y = lineHeight, maxWidth = 50, lat = position.coords.latitude, lon = position.coords.longitude; ctx.font = '12pt Courier New'; ctx.fillText('latitude: ' + lat, x, y); y += lineHeight; ctx.fillText('longitude: ' + lon, x, y); y += lineHeight; var img = new Image(), url = 'http://dev.virtualearth.net/REST/v1/Imagery/Map/Road/' + lat + ',' + lon + '/15' + '?mapSize=400,400' + '&pushpin=' + lat + ',' + lon + '&mapLayer=trafficFlow' + '&key=XXXXXXXXXXXXXXXXXX'; jQuery(img).bind('load', function() { ctx.drawImage(img, x, y); }); img.src = url; } //]]> </script> </body> </html>