From owner-svn-src-all@freebsd.org Mon Nov 2 22:13:31 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F3ECA25D91; Mon, 2 Nov 2015 22:13:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D3611058; Mon, 2 Nov 2015 22:13:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iody8 with SMTP id y8so1243411iod.1; Mon, 02 Nov 2015 14:13:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qTHLW3hT/l7HD22sacIB1dJtHEbqCRLrfNVmSuhydsw=; b=SYw1qmb0Gov7oFk9snU53ys4kE4Sxw1Oj5Ssp+VSD8ZMT5xfBVzmckabgYcq0pDj/m +G0z5e3PMxPnnLjtRwt8JHC84+1mpuImYrgRKZyigTXRSnZgNdZD0RhRLHqiqql/c233 DtK2DmT9God+SWYftZbNddpgR4V+LDpNlR2LbevcQPXk4iWvwYw2bA50nYj+DfRgAk6g eX4ZJ4HLgfmX7lY4TbHQuHaIh5Jn28TQGwS4CZpfpCkqKKJZViNCB7puoPsDT9zQhmaU avwMkVFId1o/oPhP8VLbKYfmmFeQEDbFwGUxY2tJ+k2zmXOAiMhw/Y3nLM68n35f+QKn y3Ew== MIME-Version: 1.0 X-Received: by 10.107.152.2 with SMTP id a2mr23866680ioe.123.1446502410558; Mon, 02 Nov 2015 14:13:30 -0800 (PST) Received: by 10.36.46.66 with HTTP; Mon, 2 Nov 2015 14:13:30 -0800 (PST) In-Reply-To: <20151029212554.799f76eb@kalimero.tijl.coosemans.org> References: <201510140210.t9E2A79H056595@repo.freebsd.org> <20151029212554.799f76eb@kalimero.tijl.coosemans.org> Date: Mon, 2 Nov 2015 14:13:30 -0800 Message-ID: Subject: Re: svn commit: r289279 - in head/sys: kern vm From: Adrian Chadd To: Tijl Coosemans Cc: Jeff Roberson , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" , Konstantin Belousov Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 22:13:31 -0000 Hi Tijl, and others; Here's something that Jeff came up with that fixes my problem: adrian@victoria:~/work/freebsd/head-embedded/src % svn diff sys/kern/ Index: sys/kern/vfs_bio.c =================================================================== --- sys/kern/vfs_bio.c (revision 290048) +++ sys/kern/vfs_bio.c (working copy) @@ -2910,7 +2910,7 @@ } while(buf_scan(false) == 0); if (reserved) - bufspace_release(maxsize); + atomic_subtract_long(&bufspace, maxsize); if (bp != NULL) { bp->b_flags |= B_INVAL; brelse(bp); Would you/others please try this and see if it improves things? It improves things for me on these memory-starved MIPS boards. -a