Results tagged “Flash drives” from CLICK

Soft updates in OpenBSD

| | Comments (0) |

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.

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appears Saturdays in the Los Angeles Daily News, is now available on the Daily News Technology page.

About this blog

New ways to sign in to comment: I just added the ability for prospective commenters on this blog to sign in using their AOL, Yahoo! and Wordpress.com accounts (for the past 200 posts anyway ... more than that will take an extensive, middle-of-the-night rebuild). That's in addition to the other sign-in choices, which include starting a Movable Type account on this blog, Typekey, OpenID, Live Journal and Vox. If you have trouble getting your Movable Type account verified, or any of the other sign-in options are not working properly, please e-mail me. With these added ways of signing in, there's more reason than ever for you to make a comment (or several!).




Steven Rosenberg aims to learn what he does not know. He writes about it here.



Recent Comments

Powered by Movable Type 4.25

Tags

LXer

Links

Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet U.K.
iTWire
CNet News
Webware
Beyond Binary
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Aaron Toponce
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Gobuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
OMG! Ubuntu!
I' Been to Ubuntu
Tanner Helland
Dustin Kirkland
Ubuntu UK Podcast
Popey
gNewSense
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
Lucky 13's Linux blog (lots of Tiny Core)
Lucky 13's BSD blog
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
hubertf's NetBSD Blog
PC-BSD
DesktopBSD
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
BSD Magazine
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
Engadget
Gizmodo
xkcd – A webcomic of romance, sarcasm, math and language
Nixie Pixel

Advertisement

Other blogs

More on Vijay: The success stories don't end here in Farther Off the Wall
Morning Buzz in Inside USC with Scott Wolf
HS FOOT: Taft's Morgan closing in on 5,000 yards in Daily News High School Spotlight
Sampson, Schmid, Chivas USA & Baseless Rumors in 100 Percent Soccer
A cool little note... in Inside UCLA with Jon Gold