From owner-freebsd-current Sun Aug 22 3:34:19 1999 Delivered-To: freebsd-current@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.42.68.2]) by hub.freebsd.org (Postfix) with ESMTP id 0DB0614ECC for ; Sun, 22 Aug 1999 03:34:12 -0700 (PDT) (envelope-from sobomax@altavista.net) Received: from altavista.net (dialup2-39.iptelecom.net.ua [212.42.74.103]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id NAA16872 for ; Sun, 22 Aug 1999 13:34:06 +0300 (EEST) Message-ID: <37BFD2E4.370EA4A4@altavista.net> Date: Sun, 22 Aug 1999 13:37:24 +0300 From: Maxim Sobolev X-Mailer: Mozilla 4.6 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: current@freebsd.org Subject: Sync(8) doesn't have any effect on softupdates-enabled filesystem Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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