From owner-svn-src-head@freebsd.org Wed Nov 4 20:43:25 2015 Return-Path: Delivered-To: svn-src-head@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 2C804A26546; Wed, 4 Nov 2015 20:43:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (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 ED0DF1173; Wed, 4 Nov 2015 20:43:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igvi2 with SMTP id i2so98273731igv.0; Wed, 04 Nov 2015 12:43:24 -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=H+zE/J03I9rn8Tndr+PLpWiuIXomxMA+FlYUjXvhvqI=; b=A8EfUSL8mLJjj+GCegUOwlOj7GPpEL7gXe6lt8tE0PV03DysabwhdpD0UeMNJ9cK6s C3DMOOEOrLtowMcEvm0mfbLO6baTXgKC052UhUOUrjoB36lP5/v/d+1KHTbkJIAukIE9 90h0j0X69PjpTXL71IFqI0S7PVILdOaFM5n8mLs1vLttDoAxax+HYgWbhFaoJLdS/c53 nve+OIiPnUH1mPlaoSZ8I78KsdhVHvcABZnGYvE1DICbzecU3lmukR4OojiWE23bE3KV 94S67UNP8XrICFXrcmsMwV8KMeXHo1DSet85kc+JpZF1AsL2ir6KTa2/Jg/yxA/6zWIi KCuA== MIME-Version: 1.0 X-Received: by 10.50.6.36 with SMTP id x4mr14897976igx.61.1446669804470; Wed, 04 Nov 2015 12:43:24 -0800 (PST) Received: by 10.36.46.66 with HTTP; Wed, 4 Nov 2015 12:43:24 -0800 (PST) In-Reply-To: References: <201510140210.t9E2A79H056595@repo.freebsd.org> <20151029212554.799f76eb@kalimero.tijl.coosemans.org> Date: Wed, 4 Nov 2015 12:43:24 -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-head@freebsd.org X-Mailman-Version: 2.1.20 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: Wed, 04 Nov 2015 20:43:25 -0000 HI, FYI - this patch did fix my initial issue, but further work in multi-user mode caused it to still hang. I haven't diagnosed it yet; I just put back the yield call so bufdaemon could run. So yeah, we still have some work to do. It hit the same problem; stuck in a loop calling the path to wakeup bufdaemon, but then not sleeping on anything. -adrian On 2 November 2015 at 14:13, Adrian Chadd wrote: > 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