Archive for the ‘computing’ Category

The Rack Race

Thursday, July 31st, 2008

So HP have put 1000 cores in a rack ( with some serious cut backs ). Well thats great. Web 2.0 can keep growing nicely. Sun however, can put 336 cores in a rack. Yes, thats less, but its units of execution that count (i.e. threads) ( of course it all depends on your workload, but still, we’ll play the numbers game). So in these 336 cores, Sun pack 2688 threads. Using these t5240 machines, you ‘ll also get 2688GB of RAM. 42 DVD drives, 84 * 10Gb Ethernet interfaces. You also get on-cpu cryptographic acceleration for DES, 3DES, AES, RC4, SHA1, SHA256, MD5, RSA to 2048 key, ECC, CRC32. Nice. Oh, with HP, you get no storage. Not one bit. With the Sun configuration, you’ll get 336 * 146GB drives. Thats 49056GB of storage (49TB). Theres a Sun released white paper which explains more about how the new generation of T2 and T2+ chips work.

Working for Sun may change my views on hardware, but really these figures speak for themselves!

why use openbsd?

Tuesday, May 6th, 2008

First up, its cute. Thats right, the branding is so adorable, you just want a little puffy, like its was a Pokemon or something. No, but really, I do think the branding tells you something about the product; its lean and functional. Of course, you pick whichever product you feel solves the problem, but heres my reasons for liking openbsd:

  1. The download is relatively small: about 207MB for the iso image
  2. It takes up little resources: 30MB once booted up (and 13 processes). Of course, you’ll be expecting to load the machine up with services, thats the whole point of a good OS, right? Unless you don’t actually intend on using it…
  3. Easy to use ports system. You just download the ports.tar.gz file for your version of openbsd, uncompress and then untar in the right directory (/usr/ports), then navigate to the directory of the software you want and type
    make && make install

    Of course, this is only really needed for people who like to compile from source! Everyone else can just use the usual packages system
  4. Easy network configuration. You can make a bridged connection with two commands:
    ifconfig bridge0 up
    brconfig bridge0 add xl0 add fxp0
    (insert your own network cards here)
  5. It ships with apache! Just type:
    apachectl start and your running! (the htdocs directory is /var/www/htdocs )
  6. The documentation is fantastic. No really, it really is good, its always a pleasure to RTM on openbsd
  7. After installing a window manager like fluxbox, it takes one command to get it working, provided you want to type startx each time you boot. Also bear in mind you’ll need to add /usr/local/bin/fluxbox to your users .xinitrc file , from a fresh install you’ll need to make this file.
  8. It recognised my ancient 3COM pccard Ethernet adapter! I can just pull it out and openbsd doesn’t die, it just kills off the dhclient process that was using it!
  9. You get stickers if you buy the CD set!!!

project indiana is born!

Monday, May 5th, 2008

The latest version of Opensolaris can be found at opensolaris.com . This was known as project indiana whilst in development and is now yours absolutely free! (support does cost). Its basically Sun’s home rolled distro of opensolaris.org , and now contains IPS (Image Packaging System) . Essentially IPS is like apt for ubuntu and debian:

you want netbeans?

pkg install netbeans

Theres also a graphical installer too! Theres a screencast you might want to watch which explains a little about how to use it, and what its about!

You should also note that its made it onto distrowatch.com, to rank 69!!!!Hopefully enough people will blog about the release to push that figure up!!!Surely it should make it to the top ten, for all the features it has?

Computing Society, GO GO GO!

Thursday, March 20th, 2008

Today we finally moved our computing equipment into a room that has been provided for us by the faculty (BIG THANK YOU TO THE FACULTY TEAM, MIKE PHILIPS AND IAN ROBINSON! :) ). Its in the Surrey Club, just across the road from the Penryhn road campus:

Hopefully we’ll be getting a network connection soon, its been difficult to find a place on the University network where we can have complete autonomy without breaking anything else!

Theres plenty of room, with about five tables and twice as many chairs, as well as about 14 power sockets in the walls!

more compsoc!

compsoc

Its a bit messy in these shots, maybe we should have taken an after shot! The tables are now lined against the walls, and the beastly Dell servers are under the table to the left behind the door. We were initially rejected by the uni marketing team for compsoc.kingston.ac.uk because we might not represent the views of the uni, much like the case of The River who also applied for a subdomain of kingston, but were denied. However, Ian is going to restate our case, given that we are affiliated to the Student Union and so by default only represent our own views anyway!

Progress! :)

Installing XP in 10 mins!

Friday, March 14th, 2008

I’m sure my readers at some time or another have had the pleasure of installing Windows XP. They will also probably had the pleasure of having to wait 3/4 of an hour for it to finish! Well, there is a solution!

Furthering the idea of putting the disk install image in RAM before installing, why not write to a Virtual hard drive, also in RAM (if your using VirtualBox)! Specify /tmp as the prefix to your disks name in the “Virtual Disk Location and Size” dialogue window. The result? An installation of windows that will reboot in about 15 seconds. Of course, this is good for some tasks, but not all! Your millage will vary!

NOTE01: I would recommend your have at least 3GB of RAM before trying this!

NOTE02: If you want to keep the install for good, you will need to copy it off /tmp before you reboot, otherwise your virtual drive will be gone!

I must admit though, it still wont solve any post-install issues!

cd needs execute permissions to work?!

Sunday, March 9th, 2008

You need execute permission on a directory to cd to it! Is read not enough? In practice, no. The chdir system call requires execute permission to make that directory the starting point for path searches. According to the chdir (system call, section 2) man page:

For a directory to become the current directory, a process
must have execute (search) access to the directory.

So when trussing the output of a failed cd to a directory with no execute permissions we see:

chdir("lala") Err#13 EACCES [file_dac_search]
chdir(”lala”) Err#13 EACCES [file_dac_search]

and as the man page goes on to say:

EACCES Search permission is denied for any com-
ponent of the path name.

Reading this article explains, that of course you can’t execute a directory but rather, that the execute permission bit is reused for different purposes. Without execute permission on the directory, you can’t stat() any files within the directory. Opening, deleting and other operations on a file first require you to stat() it first, as stat() gives you the files inode. Without the files inode, theres very little you can do with it!

Armed with this knowledge you might feel inspired to check out the source code of this call for yourself!

Bullet proof Solaris!

Saturday, December 29th, 2007

One thing I found out about the Solaris OS is that regardless of system load or runlevel, you could always ping the box. Even when you rm -rf / Ok, so that wasn’t always true, somtimes it was powered off, but its pretty close. Solaris appears to have gained another ability……Despite a “failed” install of build 78 of OpenSolaris which collapsed at 85% completion, the machine still appears to have installed well. It boots, JDS works fine, ZFS is happy, and nothing has crashed (yet). :) This is another shining example why those guys down in the Sun labs deserve a pay rise!!! Now, if only they could fix a gigabit ethenet bug thats affecting me…… :)