I do not know if it is bug or feature, but it seems that sync(8) command
doesn't really flushing write buffers for softdep enabled f/s. IMHO this
behavior is not very friendly for the notebooks and ATX owners because
before putting computer into sleep mode OS preferably should try to
write as many as possible unflushed buffers to disk (see
/etc/rc.suspend). Following is simple showcase for above described
(mis)behaviour:
bash-2.03# mount ; df; dd if=/dev/zero of=bigfile bs=1m count=50 ; df ;
rm bigfile; sync;sync;sync ; sleep 5; df
/dev/wd0s2a on / (local, noatime, soft-updates, writes: sync 3 async
913)
procfs on /proc (local)
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0s2a 908319 538529 297125 64% /
procfs 4 4 0 100% /proc
50+0 records in
50+0 records out
52428800 bytes transferred in 10.366562 secs (5057492 bytes/sec)
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0s2a 908319 590217 245437 71% /
procfs 4 4 0 100% /proc
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0s2a 908319 589769 245885 71% /
procfs 4 4 0 100% /proc
Any comments?
Sincerely,
Maxim
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message