How to double your SETI@home speed

Posted in Computers, Howto, Linux, Ubuntu, Windows on September 26th, 2009 by Andy
Seti@home analyses astronomical data for signs of life

SETI@home analyses astronomical data for signs of life

In fact, you might be able to do a lot better than double it, some people have reported a tenfold improvement from one simple tweak: CUDA!

Put simply, CUDA is a way of getting your graphics card to help out with computational tasks. And it turns out that in the hands of CUDA-enabled software the peculiar architecture of a graphics processor absolutely rocks at hardcore number-crunching like SETI@home.

What do I need?

  1. A compatible Nvidia graphics card. Generally speaking: Geforce 8XXX or better.
  2. The latest drivers for that card.
  3. The latest BOINC software.

How do I get started?

Simply update to the latest version of BOINC. If everything is ok you should see a message about CUDA and your GPU being detected as a coprocessor when you run the CPU benchmarks (done automatically after installing).

There are some problems. BOINC’s site claims in one place that 6.4.5 is ok for CUDA, but mine just wouldn’t work. Elsewhere on the site they say you need 6.6.36 or better, but the version in the Ubuntu repos is only 6.4.5. You can get the latest version here, just uninstall any existing copy of BOINC, extract the folder somewhere on your system and set the contained run_client file within to run at startup (System > Prefs > Startup Applications).

What sort of performance will I get?

BOINC say between 2 and 10 times the speed. But a picture is worth a thousand words:

Can you tell what day I switched to CUDA?

Can you tell what day I switched to CUDA?

Is it just for SETI@home?

No, you can also sign up to GPUgrid to do biological simulations, and users with ATI graphics cards will soon be able to crunch for Milkyway@home and Collatz Conjecture, all still using the BOINC distributed computing platform.

Tags: , , , , , ,

Ubuntu Minimal: Build an ultra-lightweight portable OS

Posted in Computers, Howto, Linux, Ubuntu on September 9th, 2009 by Andy
This system is so light you might need a paerweight to keep it on your desk

This system is so light you might need to watch out for strong breezes

Ordinary Ubuntu LiveCDs are pretty portable and useful things, but come with all the same hardware requirements as the full desktop install. I’ll show you how to create a fully-functional Ubuntu system that will idle at 80MB of memory and use 1.2GB of disk space.

Why?

  • You could install this system onto a 2GB USB stick and still have room for more.
  • Want to create an Ubuntu guest VM to run Ubuntu apps? This one will boot in about 30 sec and not take up your whole hard drive.
  • You’ve got a netbook with a small SSD, and want to have the smallest OS possible.
  • You’ve got some crusty old hardware with a tiny sliver of RAM that needs the lightest system possible.

How?

The secret:  the Ubuntu Minimal image!

  1. The Minmal CD image is a 10MB download (!) that can boot you up into the installer. From there you can choose one of a whole slew of different types of system to install, from servers to the regular KDE or Gnome desktops. What we want to install though, is the basic command line system.
  2. From there, use the command line to add packages until you get the system you want.  To do this really easily, you can use my Perfectminimal script.
  3. If you don’t want to use the script a good suggested list of packages for a fairly minimal Gnome desktop is:
  4. sudo apt-get update && sudo apt-get install gdm xorg gnome-core gnome-codec-install indicator-session-applet update-manager firefox-3.5-gnome-support gnome-themes network-manager gdebi dkms

  5. The dependencies from these packages will cascade down and install a very minimal Gnome system that punches well above it’s weight.
  6. Enjoy!

Put it on a 2GB+ USB stick

If you want to put this on a USB stick, then you can install Remastersys. Run Remastersys in backup mode and it’ll generate an .iso of your customised minimal system, which you can then feed to Ubuntu’s regular “USB startup disk creator”, or the cross-platform LiveUSB creator Unetbootin.

If you use the former to create a “persistent” LiveUSB you can allocate a couple of hundred MB for persistence on even a 2GB USB stick. That’s enough room to store files, perform updates, install new software, and generally do everything on a USB stick that you’d do on a hard drive.

One word of caution though: USB sticks have a limited lifespan, and running an OS off them will reduce that. Make sure that you’re safeguarding your data. A good solution would be a could-based file storage system, such as Ubuntu One, which gives you 2GB of remote storage for free, and integrates nicely into the Ubuntu desktop.

Tags: , , , ,

Site last updated 23 August 2010