[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: filesystem and `softdep'
> Example my web & mail server (on UPS):
> /dev/sd0a / ffs rw 1 1
> /dev/sd1a /home ffs rw,softdep,nodev,nosuid 1 2
> /dev/sd0d /tmp ffs rw,softdep,nodev,nosuid 1 2
> /dev/sd0e /usr ffs rw,nodev 1 2
> /dev/sd1b /var ffs rw,softdep,nodev,nosuid 1 2
>
> Example my toy dev box (on UPS):
> /dev/sd0a / ffs rw,softdep 1 1
> /dev/sd0f /mnt/junk ffs rw,softdep,nodev,nosuid 1 2
> /dev/sd0e /tmp ffs rw,softdep,nodev,nosuid 1 2
> /dev/sd0g /usr ffs rw,softdep,nodev 1 2
> /dev/sd0h /usr/src ffs rw,softdep,nodev,nosuid 1 2
> /dev/sd0d /var ffs rw,softdep,nodev,nosuid 1 2
I've not had a softdep problem in 2 years of using it.
But I do mount /usr readonly. Of late, I mount /dev/
as MFS and populate it so I can run / as readonly.
/tmp lives on swap (mfs, with limits).
/var and /home and the data need to be r/w.
softdep is faster.
I do notice that if I delete a large file, it
takes a sync or two for the size to appear in
df. But that's cosmetic.
Quoting Marco Peereboom (slash@peereboom.us):
> It's a laptop right? That means it has a built in UPS so turn it on :-)
Or it loses power regularly.
> And next reboot (or remount) comes around and writes are significantly faster!
UFS2 with snapshots is quite nice too. Being able to not wait for
500GB-1TB of disk to fsck is desirable. Given that I can get 500GB
with 2 disks these days, it gets more and more important.