Guru Labs: March 2006 Archives

Modern Palm PDAs connect to Linux via USB or Bluetooth. The pilot-link software provides the command line utilities and a library that GUI apps and frameworks (such a gnome-pilot) are built on top of.

Access to the Palm PDA hardware has traditionally been done via the visor kernel module. When the Treo 600 was released I submitted a minor kernel patch that accepted by Linus that enabled the visor kernel module to handle the new Treo 600.

With the visor kernel module, a character device such as /dev/ttyUSB1 used to access the Palm PDA.

A new method available with pilot-link v0.12 is direct USB access via libusb. Besides being twice as fast, access via libusb gets around the problem of tricky timing issues and UDEV being slow to create to the /dev files.

With Fedora Core v5 I decided to benchmark the exact difference in speed between the visor and libusb access methods. To do this I had to recompile pilot-link with libusb support, I filed a bug to have this be enabled by default in the future.

I used pilot-xfer to back my Treo650's 15,668KB of data.

Using the visor method:

pilot-xfer -p /dev/ttyUSB1 -b /tmp/Treo650-backup-visor

Results: 415 seconds or 37.75KB/sec

Using the libusb method:

pilot-xfer -p usb: -b /tmp/Treo650-backup-libusb

Results: 201 seconds or 77.95KB/sec

The results speak for themselves. Using the libusb method is more than twice as fast as using the visor kernel module. I can't wait for pilot-link v0.12 to be officially released.

Linux Software RAID Improvements

| No Comments | No TrackBacks

The Linux kernel has quite capable software RAID support. In the last year RAID6 support was added. Using RAID6 is similar to RAID5 except that two disks can fail with the array still operational (with RAID5, the second failing disk would kill the array).

Two days ago Linus accepted patches from Neil Brown that allows resizing and growing of online RAID5 device. This functionality will be in the 2.6.17 kernel and will require the use of mdadm v2.4.

Here is an illustration:

1. First create a RAID5 device using three drives (each has a single partition that spans the whole drive):

mdadm -C -l5 -n3 /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1

2. Now add an additional spare drive (initially) and then grow the array to use the four drives:

mdadm /dev/md0 -a /dev/sdd1
mdadm --grow /dev/md0 --raid-disks=4

3. Add three more drives and then grow the array to seven drives:

mdadm /dev/md0 -a /dev/sde1 /dev/sdf1 /dev/sdg1
mdadm --grow /dev/md0 --raid-disks=7

We have a ticket logged in our tracking system to expand our coverage of Linux software RAID in the GL250 class to cover this functionality.

Posting Blog Entries from Linux

| No Comments | No TrackBacks

Using a web interface to post blog entries is OK, however, a streamlined desktop application can be a faster and more pleasant experience.

I'm creating this post using, Drivel, a GNOME blogging client. It has support for various online journals as well as self-hosted blogs such as WordPress and MoveableType.

When using MoveableType it supports categories which the Guru Labs planet uses to only display relevant blog entries.

The drivel package exists in Fedora Extras making it an easy install.

About this Archive

This page is an archive of entries in the Guru Labs category from March 2006.

Guru Labs: December 2005 is the previous archive.

Guru Labs: April 2006 is the next archive.

Find recent content on the main index or look in the archives to find all content.