~wrf

Bill Fraser


wrf


Archives
2010 February
Asgard
2010 January
2009 October
2009 September
2009 April
2009 February
2009 January
2008 July
2008 May
2008 April
2008 March


Welcome back.
» forget me


Subscribe:
email:


Login:
password:
Asgard
February 11th, 2010 at 11:32 AM
The new machine is complete!

Asgard:
  • Intel Core i7 920, overclocked to 3500 MHz
  • EVGA X58 SLI LE motherboard
  • BFG GeForce GTX 275 OC video card
  • 6GB DDR3-1600 7-7-7-20 Corsair RAM
  • 30GB Patriot SSD
  • 3x 500GB Seagate 7200RPM drives in RAID 5
  • Cooler Master V8 CPU cooler
  • 750W Antec power supply
  • Cooler Master ATCS 840 aluminum full tower case
And then, just for giggles I got a new monitor and stereo:
  • Hanns-G 25.4" 1920x1080 LCD
  • Polk Audio Monitor 30 bookshelf speakers
  • Polk Audio 10" subwoofer
This machine is fast like woah. This is the most top-of-the-line machine I've ever owned, and damn it feels good to be able to run literally any game at full resolution with all the goodies turned on. I can run Lightroom, Photoshop, Chrome with a hundred tabs open, and watch blu-ray resolution video all at the same time with no degradation in response time. SIIIIIIIICK.

PHOTOS:
» (0 comments) (make a comment)


New Skin, New Classes
January 26th, 2010 at 3:39 AM
Yeah, new skin. Same layout as the old skin but not red, and not fixed-width font. I'm not sure I like this better, but it does have some nice improvements.

So, a new semester is upon me. With work and all, I'm taking a lighter courseload -- just 14 hours of classes:
  • CS 440: Software Engineering I
  • CS 473: Compiler Design
  • ECON 121: Macroeconomics
  • EAES 101: Intro to Earth Science
CS 440 is more about diagrams and documentation than programming, which might suck. Other than that, it's like CS 340, but in groups. Same prof even (John Bell for those who know). One big project that matures over the semester. When I took 340, I ended up with a 6000 line Java and C++ adventure game program, which subsequently went on my resume and helped me get my current job.

CS 473 is what I'm really looking forward to. I have grand plans to develop a groundbreaking C compiler with super secret technology of my own design, so this class will provide me with the necessary knowledge to do hard-core compiler work (hopefully). I'm already learning how to do parsing properly, and it's been an interesting exercise to thoroughly analyze the skin parsing code for this site, which I wrote in high school when I knew nothing about formal parsing theory, and see what I got right. Surprisingly, I got quite a bit of it right. w00t!

EAES 101 is about rocks and stuff. Sleepytime. Actually, we got into global weather patterns today, which was pretty interesting. But mostly this class is about rocks, so I struggle to stay awake. However, it has possibly the easiest lab section ever, and it fulfills my lab sci requirement, so SCORE.

ECON 121 is turning out to be a fascinating class. The professor is one of the most enthusiastic teachers I've ever had, which is very good because our textbook and the subject matter in general are quite dry. I'm really getting into this course. Who knows, maybe I'll learn enough to become a brilliant economist and make a killing in the stock market. Yeah right. Very useful knowledge nonetheless.

That's about all I've got. Things at work are mostly super-secret right now, so I won't broach that subject, but I'll just say that I'm having a good amount of fun, so Good Times.

_WRF
» (0 comments) (make a comment)


Semi-Scientific Filesystem Comparison
January 12th, 2010 at 6:34 PM
System: Dual Pentium III (Coppermine) @ 1000 MHz / 133 MHz FSB, 2 GiB ECC SDRAM. Linux 2.6.32-ARCH.
Disks: four 10,000 RPM UltraSCSI 320 disks in RAID5 (hardware accelerated). Max read speed: ~50 MB/s. Max write speed: ~35 MB/s
Setup: filesystems created on a 10 GiB (10737418240 bytes) zero-filled file, mounted via loop device.

Test 1: unpack an uncompressed tar archive of the Chromium browser source code at revision 35890 (2.6 GiB, 222964 files) to the test filesystem.
Test 2: delete all files created in test 1.

(Note: CPU usage is out of 200%, and the loop device and tar command make up a large part of it)

JFS Test 1: 3:25.85, 32% CPU
JFS Test 2: 0:22.38, 64% CPU

XFS Test 1: 4:22.26, 43% CPU
XFS Test 2: 1:16.31, 89% CPU

Ext4 Test 1: 3:28.61, 28% CPU
Ext4 Test 2: 0:24.12, 72% CPU

ReiserFS Test 1: 4:28.20, 39% CPU
ReiserFS Test 2: 0:33.93, 91% CPU

So, JFS wins this one, which is good, because that's what filesystem I'm already using. :)

Test procedure:
% dd if=/dev/zero of=test_disk bs=1G count=10
% sudo losetup /dev/loop0 test_disk
% sudo mkfs.jfs /dev/loop0
% sudo mount /dev/loop0 testmnt
% sudo chown wrf:wrf testmnt
% cd testmnt
% time tar xf ../chromium-r35890.tar
% time rm -rf *
% cd ..
% sudo umount testmnt
(repeat from mkfs step with different filesystem)
» (0 comments) (make a comment)


Re: An Interesting Processor Comparison
October 10th, 2009 at 4:33 AM
Aha. Figured out why the AthlonXP beats the pants off the Core Duo.

Too many processes.

The Core Duo seems to be much slower at creating new processes, which my test method did a lot of.

Also, with the fact that so many short-lived processes are flying around, and therefore being shuttled back and forth between the two cores, these cores' caches probably aren't being used very well, causing even more slowdown.

In the end, I rewrote my processing shell scripts as one program (a PHP script :P), and the processing time on the Core Duo went from 20 minutes down to a few seconds. Clearly, the new-process overhead is significant. The other machines saw similar improvements, to the point where I can't really tell which machine is fastest, because the script runs so fast.
» (0 comments) (make a comment)


An Interesting Processor Comparison
October 9th, 2009 at 11:22 PM
My latest Computer Science assignment involved a large amount of number crunching and text processing, and seeing as how I have a large assortment of computers around my apartment, I figured I'd try them all out and see how they stacked up. The results proved quite surprising.

The data I needed to process was a large text file (10680 lines), where each line had a source IP address, a destination IP address, and various network statistics. I wrote two scripts to process this: the first took each IP address, looked it up in a file that mapped IPs to latitude-longitude pairs (816 lines long), and printed lines with the address substituted for the location. The second script took these two locations and calculated the distance on the globe between them.

Script #1, for each input line, grep'd the ip-location map twice (once for source, once for dest), and printed the new line with the IPs substituted for locations.

Script #2, for each line, ran a perl script that used the Math::Trig module to compute the great circle distance between the locations, and printed the new line with the locations substituted for the distance between them.

These scripts were run as a pipeline, so as to take advantage of dual-core processors:
% scripts/ip-loc-translate.sh < data/raw.txt \
| scripts/loc-dist-translate.sh > data/post-processed.txt


The Machines
System NameProcessorProcessor SpeedUser TimeSystem Time
Delta-ZeroAMD AthlonXP 2100+1x 1733 MHz348.61 s107.19 s
ElementAMD Athlon64 3200+1x 2000 MHz291.663 s143.437 s
SkylightIntel Core Duo T20502x 1600 MHz1205.708 s189.748 s


Yes, that's correct. The Core Duo was more than THREE TIMES SLOWER than the old crusty AthlonXP at this test, despite being able to take full advantage of the parallellized script, being dual-core. For the life of me, I can't figure out why. Both AMD machines are using DDR ram, whereas the Core Duo is using faster DDR2. The Core Duo has 2MB of on-chip cache, the Athlon64 has 1MB, and the AtlonXP only has 256K.

It just goes to show how good those AMD processors are. I often rip on that AthlonXP as being the hottest-running chip I've ever seen (it regularly hits 60+ degress Celcius at idle), but it's still plenty good at doing things that matter.
» (0 comments) (make a comment)


[Page 1] [Page 2] [Page 3] [Page 4] [Page 5] [All One Page]
Shoutbox
Anonymous:
lonely shoutbox :(
April 7th, 2008 at 7:09 PM
Anonymous:
hello
April 7th, 2008 at 7:12 PM
Anonymous:
o hai
April 28th, 2008 at 2:31 PM
CHIZUBAGA:
I CAN HAZ CHIZUBAGA!!!!!!!
January 20th, 2010 at 2:58 PM
Not Jeremy:
o hai remember when i threw hot sauz in yer eye. lulz
January 28th, 2010 at 1:28 PM
JEREMY:
MOAR NAPKINS DURR HURR
February 11th, 2010 at 11:33 AM
Anti-spam field (don't enter anything! This field shouldn't really display at all - something is wrong...):
Name:
Link:
Text:
Anti-spam field (don't enter anything!):



21 database queries. Page generated in 375 milliseconds.
Powered by: CodewiseBlog Mainline v2.1.0.13-DEV
CodewiseBlog © 2004-2010 William R. Fraser / Codewise.org.
All textual content is the property of its author, subject to terms.
CodewiseBlog is free software under the GNU General Public License
CWB