Recently in Filesystems Category
I decided to start using Soft Updates on my FFS partitions in OpenBSD. I'm still running version 4.4 of OpenBSD (still waiting for my CDs to arrive and for time to figure out how to do the upgrade).
According to the portion of the FAQ cited above, using soft updates on a Unix-style Fast File System improves disk performance.
You can really see it, supposedly, in disk-intensive applications such as servers, and since all I'm doing is running a desktop (and at the moment trying to compile as little as possible), I don't expect to really "feel" an improvement, though that could very well happen.
Here is the part of Kirk McKusick's explanation of soft updates that made me want to use them:
In addition to performance enhancement, soft updates can also maintain better disk consistency. By ensuring that the only inconsistencies are unclaimed blocks or inodes, soft updates can eliminate the need to run a filesystem check program after every system crash. Instead, the system is brought up immediately.
Soft updates are invoked in the /etc/fstab file that brings up the various filesystems when you boot your Unix machine. Also see the man page for mount for a little more information.
I was already going into my /etc/fstab because I wanted to put the information for mounting a USB flash drive into the file to make it easier for me to mount the drive when I have it plugged in. Now all I have to do is:
$ sudo mount usbdrive
and the drive is mounted. I chose "noauto" as an option in /etc/fstab because I don't always have the drive plugged it. If you wish to mount a drive every session that's always connected, feel free to leave noauto out of your fstab.
Here's what my /etc/fstab looks like now (with the softdep option added to all the FFS partitions):
/dev/wd0a / ffs rw,softdep 1 1
/dev/wd0h /home ffs rw,nodev,nosuid,softdep 1 2
/dev/wd0d /tmp ffs rw,nodev,nosuid,softdep 1 2
/dev/wd0g /usr ffs rw,nodev,softdep 1 2
/dev/wd0e /var ffs rw,nodev,nosuid,softdep 1 2
/dev/sd0i /home/steven/usbdrive msdos rw,noauto,noatime 0 0
Note: since the USB drive is formatted with the FAT filesystem and not OpenBSD's FFS, I can't use soft updates on it. I could reformat it as a native FFS drive, but since I'm using it with my other, non-OpenBSD machines, I need to keep it FAT.





Recent Comments
Steven Rosenberg on NetworkManager in Ubuntu 8.04 – here's the problem: Everybody thinks Slackware is so hard to use, but the netconfig utilit ...
Alan Rochester on NetworkManager in Ubuntu 8.04 – here's the problem: "My first question: How well (if at all) does Wicd handle wired networ ...
Steven Rosenberg on NetworkManager in Ubuntu 8.04 – here's the problem: I, too, have seen the move from NetworkManager to Wicd. My first ques ...
Alan Rochester on NetworkManager in Ubuntu 8.04 – here's the problem: In Kubuntu Forums people seem to be moving away from NetworkManager, i ...
Steven Rosenberg on Tropic of Vector – a blog devoted to Vector Linux Light, plus the Vector Linux Cookbook of Common Tasks: The few times I've run Vector and Zenwalk, I've been very impressed by ...
tropicofvector.wordpress.com on Tropic of Vector – a blog devoted to Vector Linux Light, plus the Vector Linux Cookbook of Common Tasks: Hey Steven, Thanks for writing about my blog. Rest assured, it has ha ...
garyam on Ubuntu 9.04 on my 8.04 laptop: Intel video issues sink upgrade: See updated versions of X.org drivers, libraries, etc. for Ubuntu from ...
Steven Rosenberg on Public Wi-Fi is problematic if you value your passwords and privacy: (I had a huge Chess Griffin bio here about all the things he does with ...
Alan on Tips on running netbooks with Ubuntu Netbook Remix from Ladislav Bodner ... plus a look at flash-memory life span: I don't own a netbook and normal desktop, I've also read that using yo ...