From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 22 20:27:03 2011 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EC271065672 for ; Mon, 22 Aug 2011 20:27:03 +0000 (UTC) (envelope-from marck@FreeBSD.org) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id C9DB98FC0C for ; Mon, 22 Aug 2011 20:27:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.4/8.14.4) with ESMTP id p7MKAH9F026018; Tue, 23 Aug 2011 00:10:17 +0400 (MSD) (envelope-from marck@FreeBSD.org) Date: Tue, 23 Aug 2011 00:10:17 +0400 (MSD) From: Dmitry Morozovsky X-X-Sender: marck@woozle.rinet.ru To: Kostik Belousov In-Reply-To: <20110822194031.GR17489@deviant.kiev.zoral.com.ua> Message-ID: References: <20110822194031.GR17489@deviant.kiev.zoral.com.ua> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (woozle.rinet.ru [0.0.0.0]); Tue, 23 Aug 2011 00:10:17 +0400 (MSD) Cc: freebsd-scsi@FreeBSD.org, mav@FreeBSD.org, re@FreeBSD.org Subject: Re: Documentating patch for defaults/loader.conf X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2011 20:27:03 -0000 On Mon, 22 Aug 2011, Kostik Belousov wrote: > > any objections for this simple patch? > > > > (we stumped into this yesterday, and no easy founded answers even on Google > > except the single FreeBSD Forums thread was found) > > I do not think that the wording in right, but I am not CAM expert by any > measure. From my reading of the code, it is a hook to delay the root mount, > not to delay CAM bus registration. It would be better if you get the scsi@ > or mav@ (author of the tunable) review. I based the comment on existing comment to the tunable in cam_xpt.c: cam_xpt.c:TUNABLE_INT("kern.cam.boot_delay", &xsoftc.boot_delay); cam_xpt.c:SYSCTL_INT(_kern_cam, OID_AUTO, boot_delay, CTLFLAG_RDTUN, cam_xpt.c: &xsoftc.boot_delay, 0, "Bus registration wait time"); Alexander, colleagues, your thought on the following patch? -- 8< -- Index: boot/forth/loader.conf =================================================================== --- boot/forth/loader.conf (revision 224542) +++ boot/forth/loader.conf (working copy) @@ -109,6 +109,8 @@ #kern.ncallout="" # Set the maximum # of timer events #kern.ngroups="1023" # Set the maximum # of supplemental groups #kern.sgrowsiz="" # Set the amount to grow stack +#kern.cam.boot_delay="10000" # CAM bus registration delay (in ms), + # useful for USB sticks as root #kern.cam.scsi_delay="2000" # Delay (in ms) before probing SCSI #kern.ipc.maxsockets="" # Set the maximum number of sockets avaliable #kern.ipc.nmbclusters="" # Set the number of mbuf clusters -- 8< -- -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] --------------------------------------------------------------------------- *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@FreeBSD.org *** ---------------------------------------------------------------------------