Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 1999 13:37:24 +0300
From:      Maxim Sobolev <sobomax@altavista.net>
To:        current@freebsd.org
Subject:   Sync(8) doesn't have any effect on softupdates-enabled filesystem
Message-ID:  <37BFD2E4.370EA4A4@altavista.net>

next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37BFD2E4.370EA4A4>