Date: Sat, 15 Mar 1997 20:06:53 -0700 (MST) From: Marc Slemko <marcs@znep.com> Cc: isp@freebsd.org, hackers@freebsd.org Subject: Re: freebsd as a news server? Message-ID: <Pine.BSF.3.95.970315195421.5877H-100000@alive.znep.com> In-Reply-To: <Pine.BSF.3.95.970309002758.6158R-100000@alive.znep.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 9 Mar 1997, Marc Slemko wrote: > You are probably using 2.2 or -current, right? On a 2.2 system I get > similar results to yours. On 2.1, async mounts only change one bit of > ffs code. In 2.2, they make more things async. I don't think the > difference in real life between 2.1 async and 2.2 async is as big as in a > test like this. For anyone still interested in this sync vs. async discussion, below is patch for 2.1-stable that should make async close to what it is in 2.2. This is the same change that was made in 2.2... Index: ffs_inode.c =================================================================== RCS file: /usr/cvs/src/sys/ufs/ffs/ffs_inode.c,v retrieving revision 1.13.4.1 diff -c -r1.13.4.1 ffs_inode.c *** ffs_inode.c 1995/08/24 06:03:02 1.13.4.1 --- ffs_inode.c 1997/03/16 01:23:13 *************** *** 222,227 **** --- 222,229 ---- oip->i_size = length; if (aflags & B_SYNC) bwrite(bp); + else if (ovp->v_mount->mnt_flag & MNT_ASYNC) + bdwrite(bp); else bawrite(bp); vnode_pager_setsize(ovp, (u_long)length); *************** *** 252,257 **** --- 254,261 ---- allocbuf(bp, size); if (aflags & B_SYNC) bwrite(bp); + else if (ovp->v_mount->mnt_flag & MNT_ASYNC) + bdwrite(bp); else bawrite(bp); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970315195421.5877H-100000>