From owner-cvs-all@FreeBSD.ORG Sun Dec 12 04:10:52 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D07316A4CF; Sun, 12 Dec 2004 04:10:52 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BE3643D31; Sun, 12 Dec 2004 04:10:52 +0000 (GMT) (envelope-from mckay@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBC4Aq0U009114; Sun, 12 Dec 2004 04:10:52 GMT (envelope-from mckay@repoman.freebsd.org) Received: (from mckay@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBC4Aqxd009113; Sun, 12 Dec 2004 04:10:52 GMT (envelope-from mckay) Message-Id: <200412120410.iBC4Aqxd009113@repoman.freebsd.org> From: Stephen McKay Date: Sun, 12 Dec 2004 04:10:52 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/sys/dev/vinum vinumrequest.c vinumvar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 04:10:52 -0000 mckay 2004-12-12 04:10:52 UTC FreeBSD src repository Modified files: (Branch: RELENG_4) sys/dev/vinum vinumrequest.c vinumvar.h Log: Merge from, um, oblivion: vinumvar.h 1.49, vinumrequest.c 1.73 When doing round-robin reads from a multi-plex volume, only switch to the next plex if the sector to be read isn't nearby the last read sector. Submitted by: Vsevolod Lobko via ru@ Not only does this boost multi-access performance, but surprisingly it helps single process sequential reads on my IDE disk mirror. My guess is that the read-a-block skip-a-block read-a-block effect of strict round-robin defeats some sort of on-disk caching, leading to poor performance. With this patch, longer contiguous reads from a single disk are more common. /sbin/vinum needs to be rebuilt as this patch changes the size of struct plex. OK'd by: grog Revision Changes Path 1.44.2.6 +12 -4 src/sys/dev/vinum/vinumrequest.c 1.32.2.5 +9 -1 src/sys/dev/vinum/vinumvar.h