From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 15 18:52:45 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C18C1065670; Thu, 15 Jul 2010 18:52:45 +0000 (UTC) (envelope-from alan.l.cox@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id A0B6A8FC1E; Thu, 15 Jul 2010 18:52:44 +0000 (UTC) Received: by qwg5 with SMTP id 5so389767qwg.13 for ; Thu, 15 Jul 2010 11:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=atV4FYuegbeDOqI3Kb59oLRCm41d1VIopi/+voKdfp4=; b=GCeMi4iCTtfFNgudQIxz984VtJbz5udEsrppVPdG1aXhL/DQ4Xy+N3LdYXmMH8Qt9M 2VU4JKYqX9GFyS61D33z2SG+fb+DAtwnKCpdtg2iG7cHHAOkSGwB5DuNYRr/uB4MrQCd 4NTIaxq7DzCwfVrwucNVSk/bpvUO8Pnk+YTbU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=oH/lwKcw6b07tOOCXNOJ//qBafpC1rWLJpnGul+4lDOdKR4sspzSSiOmaJghLkpbYc qmRxCVFqtUcF6pdaUqc7e42Hr8KTbySZ9kcIYKXHwVFjy7C6I0Ro2hWck6ufeY+vrmj+ 4iYKUa852MrURVN3tcp+5H0eKNnUD/W5M+mpI= MIME-Version: 1.0 Received: by 10.224.65.138 with SMTP id j10mr7228232qai.147.1279219963551; Thu, 15 Jul 2010 11:52:43 -0700 (PDT) Received: by 10.229.239.5 with HTTP; Thu, 15 Jul 2010 11:52:43 -0700 (PDT) In-Reply-To: References: <20100714090454.1177b96b@ernst.jennejohn.org> Date: Thu, 15 Jul 2010 13:52:43 -0500 Message-ID: From: Alan Cox To: Ivan Voras Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: disk I/O, VFS hirunningspace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: alc@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2010 18:52:45 -0000 On Thu, Jul 15, 2010 at 8:01 AM, Ivan Voras wrote: > On 07/14/10 18:27, Jerry Toung wrote: > > On Wed, Jul 14, 2010 at 12:04 AM, Gary Jennejohn > > wrote: > > > >> > >> > >> Rather than commenting out the code try setting the sysctl > >> vfs.hirunningspace to various powers-of-two. Default seems to be > >> 1MB. I just changed it on the command line as a test to 2MB. > >> > >> You can do this in /etc/sysctl.conf. > >> > >> > > thank you all, that did it. The settings that Matt recommended are giving > > the same numbers > > Any objections to raising the defaults to 8 MB / 1 MB in HEAD? > > > Keep in mind that we still run on some fairly small systems with limited I/O capabilities, e.g., a typical arm platform. More generally, with the range of systems that FreeBSD runs on today, any particular choice of constants is going to perform poorly for someone. If nothing else, making these sysctls a function of the buffer cache size is probably better than any particular constants. Alan