From owner-freebsd-hackers Sun Feb 21 1:48: 9 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 992E110E01 for ; Sun, 21 Feb 1999 01:48:05 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA55204; Sun, 21 Feb 1999 09:47:16 GMT (envelope-from dfr@nlsystems.com) Date: Sun, 21 Feb 1999 09:47:16 +0000 (GMT) From: Doug Rabson To: Terry Lambert Cc: dillon@apollo.backplane.com, freebsd-hackers@FreeBSD.ORG Subject: Re: Panic in FFS/4.0 as of yesterday In-Reply-To: <199902210011.RAA22231@usr08.primenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 21 Feb 1999, Terry Lambert wrote: > > I think promoting directory writes (and directory reads probably) might be > > the simplest solution. > > Hum. This is trivial... > > Let's see... is there a free flag? Yes... > > OK, here's code to add the ability to expedite placement of async > writes. It' doesn't insert them in order behind other expedited > writes, so it turns the expedited stuff LIFO. This is probably > suboptimal, but can't happen in dependent operations, so what the > heck... > > When you use the code, be sure to *not* set the flag if soft updates > are in effect (I think that's a caller issue, not a callee issue, since > it would complicate the bdwrite code, probably unacceptably. I don't think this will do the job at all. The buffers in question are not delayed writes, so all this patch will do is change the order of the LOCKED and LRU lists, probably pessimising the reuse of those buffers. I think the flag needs to be implemented in the driver. The driver should check for the EXPEDITE flag and either maintain two queues for the two possible priorities or place the buffer at the front of a single work queue. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message