Subject: Re: Limiting disk I/O?
To: Eric Haszlakiewicz <erh@nimenees.com>
From: Ignatios Souvatzis <is@netbsd.org>
List: netbsd-users
Date: 12/03/2007 09:25:12
On Sun, Dec 02, 2007 at 03:58:21PM -0600, Eric Haszlakiewicz wrote:
> except what you really need is more like:
>
> while (something_to_be_flushed) {
> if (systat_disk_%busy >= 90) {
> temporarily_let_new_io_bypass_softdep()
> }
> else
> turn_off_bypass()
> flush_some_data();
> };
I don't know the details of softdep, but the idea is to only make
i/o with some ordering constraints, such that a certain state of
the disk is always guaranteed, right?
Now guess what happens when you temporarily bypass softdep's ordering.
-is