From owner-freebsd-current Tue Nov 14 00:43:37 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id AAA10757 for current-outgoing; Tue, 14 Nov 1995 00:43:37 -0800 Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id AAA10721 for ; Tue, 14 Nov 1995 00:43:22 -0800 Received: from corbin.Root.COM (corbin [198.145.90.50]) by Root.COM (8.6.12/8.6.5) with ESMTP id AAA28085; Tue, 14 Nov 1995 00:43:18 -0800 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.12/8.6.5) with SMTP id AAA00206; Tue, 14 Nov 1995 00:43:12 -0800 Message-Id: <199511140843.AAA00206@corbin.Root.COM> To: Poul-Henning Kamp cc: current@freebsd.org In-reply-to: Your message of "Tue, 14 Nov 95 09:33:11 +0100." <252.816337991@critter.tfs.com> From: David Greenman Reply-To: davidg@Root.COM Date: Tue, 14 Nov 1995 00:43:12 -0800 Sender: owner-current@freebsd.org Precedence: bulk >> "Fixing" this is very difficult and would require a rewrite of the code >> involved. > >Why would this: > > void > update_every_3_sec() > { > static int i; > > for all buffers { > if ((blockno % 10) == i) > write it > } > i = ++i % 10; > } > >give more io traffic ? Because delayed write buffers are delayed for a reason. It's the expectation that additional data/changes will be made to the buffer before it is written out. In the case where stuff is being appended to files via small writes (like log files, for instance), doing an update 10 times more often may very well increase the number of writes by 10 times. -DG