From owner-svn-src-head@FreeBSD.ORG Tue Aug 6 14:22:11 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DE35D88F; Tue, 6 Aug 2013 14:22:10 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C7F06210A; Tue, 6 Aug 2013 14:22:09 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id el20so343724lab.26 for ; Tue, 06 Aug 2013 07:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=KfaY5L1tQSOlpXE+OE7hncHGDSg4juHOZ95nKj8GM30=; b=G8XvLWovXMGl1FMlb/4px6PtCOZjVP9LXTF8/rqSbkuEmAw1PBfjQ7fOU8LGEwVIka 6TxgMtaanLd4dsjDgU/lhKB4+513E6VTD1QfScNbR1D7VWNfSG6LlkZt1Y2Fjlzmev8x 81tyNQ4off8RAiaaLeCoNwTMn0YiZ3X306EN27otVGpTJ7DmQRiOWC9stTxZb7PNVmQ2 CUxHPJEC4JDOkkV+gI2CG+X/+bE3jkC8l0L21UukAJv0W5QfdBhTSp0dZhVt1ffH1zH/ 2fx0nSP5+ix5b7ZlEwt11bL4w3azzQwIMxm1ikDWRSc+43Z7xBHswj1FBXCEBUK1mlbR kzug== X-Received: by 10.112.6.98 with SMTP id z2mr1406132lbz.2.1375798927624; Tue, 06 Aug 2013 07:22:07 -0700 (PDT) Received: from ?IPv6:2a02:6b8::408:c4c2:39d2:43ae:7c3e? ([2a02:6b8:0:408:c4c2:39d2:43ae:7c3e]) by mx.google.com with ESMTPSA id 8sm1395798lbq.4.2013.08.06.07.22.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Aug 2013 07:22:05 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: svn commit: r253974 - head/sys/ufs/ffs From: Mitya In-Reply-To: <201308052202.r75M2jtk048345@svn.freebsd.org> Date: Tue, 6 Aug 2013 18:22:04 +0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201308052202.r75M2jtk048345@svn.freebsd.org> To: Kirk McKusick X-Mailer: Apple Mail (2.1508) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Aug 2013 14:22:11 -0000 Does it fix a problem on recent 9-STABLE that process writing to = almost-full partition eats 100% CPU and writes 1MB/sec? It has SU enabled but no SU+J. I observed that today after upgrading to 9.2-BETA2 from ~1 year old = 9-STABLE. Thanks. On 06.08.2013, at 2:02, Kirk McKusick wrote: > Author: mckusick > Date: Mon Aug 5 22:02:45 2013 > New Revision: 253974 > URL: http://svnweb.freebsd.org/changeset/base/253974 >=20 > Log: > With the addition of journalled soft updates, the "newblk" structures > persist much longer than previously. Historically we had at most 100 > entries; now the count may reach a million. With the increased count > we spent far too much time looking them up in the grossly undersized > newblk hash table. Configure the newblk hash table to accurately = reflect > the number of entries that it must index. >=20 > Reviewed by: kib > Tested by: Peter Holm > MFC after: 2 weeks >=20 > Modified: > head/sys/ufs/ffs/ffs_softdep.c >=20 > Modified: head/sys/ufs/ffs/ffs_softdep.c > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/sys/ufs/ffs/ffs_softdep.c Mon Aug 5 22:01:16 2013 = (r253973) > +++ head/sys/ufs/ffs/ffs_softdep.c Mon Aug 5 22:02:45 2013 = (r253974) > @@ -2393,7 +2393,7 @@ softdep_initialize() > max_softdeps =3D desiredvnodes * 4; > pagedep_hashtbl =3D hashinit(desiredvnodes / 5, M_PAGEDEP, = &pagedep_hash); > inodedep_hashtbl =3D hashinit(desiredvnodes, M_INODEDEP, = &inodedep_hash); > - newblk_hashtbl =3D hashinit(desiredvnodes / 5, M_NEWBLK, = &newblk_hash); > + newblk_hashtbl =3D hashinit(max_softdeps / 2, M_NEWBLK, = &newblk_hash); > bmsafemap_hashtbl =3D hashinit(1024, M_BMSAFEMAP, = &bmsafemap_hash); > i =3D 1 << (ffs(desiredvnodes / 10) - 1); > indir_hashtbl =3D malloc(i * sizeof(indir_hashtbl[0]), = M_FREEWORK, > _______________________________________________ > svn-src-all@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-all > To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"