Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp547030ybn; Wed, 25 Sep 2019 04:06:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqweAXkG9RMJN262sfsUEEbXZcUgA63rjhzCge4KGo+eXaTeQk7oKML0Uemfiv2ZVESu50PZ X-Received: by 2002:a19:f204:: with SMTP id q4mr5449940lfh.29.1569409566765; Wed, 25 Sep 2019 04:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569409566; cv=none; d=google.com; s=arc-20160816; b=rV/SvMini2mbwAw6bhZTzbZ4DA8KEiEYUBpuzVavhMYUvPj1T4kcczqywIEDy6CzDF MR790F9+uMuf84Y4o1HgGxIzioemHcnN7zEdN2hfd8T3hj93J2VozrcE2IrpoEmAZzGY dTkgeJtjzZOsKBWblZRnwdDPca72u4f/qE/DXMcKP6h47h3MCNfyzRj5Zrjb2zDugOQR /wJf5OzR5Qo8HnoGYDjCVELRtkRfDKpt7Yey064iozFogUMnXKKdhGB+F+uN5WDZhotY 3VhAYNN8YVuukaYCuxpYye4NFqXCVriWA/AOQSTgbZPghgdvrjOv0iNzzKoloQ/u5+VG /uTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dLuDUQ/NDyEM5X4r4w1bfcQ9G8WLEJqV5t9yVHG08lI=; b=j9o+3SjhB9W2FAqowjXoN+6WxrIxVvb1oFPx6eqdmw3YCwbXSS+AtYjgFi6wPpiC73 O8TRbrwnf7GaxFS/zA4VtMhwPyg+aOgap/XQ5HI1pEhCcnYZcZvsgUTyt86tQtkjDkWY RS2DV9iK+8+XXJ2UBoE0Acrli7owu5zjQqwil4Buu5C0SM54u+lRyNfEeIXl8gGFW6fi Lby2kwGCD9RFMlpd0aWIwXO3ao7h7DVHfqBVjH0XTFPNMBzs56Al2OJFG2/LjgFuPzjr 44p+nd5CGGdKRECbRjpMy4/KRIeJrmTX0RsL03/5hEfRHYsW2fXCeupUZ4CKWTveZqBL N0RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eJw0klfM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si2918079edy.320.2019.09.25.04.05.42; Wed, 25 Sep 2019 04:06:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eJw0klfM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436782AbfIWLTF (ORCPT + 99 others); Mon, 23 Sep 2019 07:19:05 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37232 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387657AbfIWLTE (ORCPT ); Mon, 23 Sep 2019 07:19:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dLuDUQ/NDyEM5X4r4w1bfcQ9G8WLEJqV5t9yVHG08lI=; b=eJw0klfM4+vQl5Cr0fR4SPiMB oSMai5fIJYoYQcwD7OyaYpl43j5BsIyKb4pouVSklalGnwt1DM7fa4bN8fZ03aydu4WySTM0JOl+P mrVbEX/SCvhlozvd8e7VzI49v0ZHIT5hEY5zjqQSGfW3I6LepM7n5eSfWtdS2Hr29W+C1cvH5VNWB PDgKg0VxVm1xhGhm0TM4jzwvyZXlnOze3PhQz0ofJXL0vW6+a08GCc42ziINnk35mNyw0epBh98V7 y2/V5vUN9/RA02A5DXN9Jj4NDNU5zIdQB3klxxPxpb0vs9+KTFYDFqdf4jaXjeWytxSwumBLpoPI9 tCL4QvXJw==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1iCMMu-0002R7-Mn; Mon, 23 Sep 2019 11:19:00 +0000 Date: Mon, 23 Sep 2019 04:19:00 -0700 From: Matthew Wilcox To: Lin Feng Cc: Michal Hocko , corbet@lwn.net, mcgrof@kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, keescook@chromium.org, mchehab+samsung@kernel.org, mgorman@techsingularity.net, vbabka@suse.cz, ktkhai@virtuozzo.com, hannes@cmpxchg.org, Jens Axboe , Omar Sandoval , Ming Lei Subject: Is congestion broken? Message-ID: <20190923111900.GH15392@bombadil.infradead.org> References: <20190917115824.16990-1-linf@wangsu.com> <20190917120646.GT29434@bombadil.infradead.org> <20190918123342.GF12770@dhcp22.suse.cz> <6ae57d3e-a3f4-a3db-5654-4ec6001941a9@wangsu.com> <20190919034949.GF9880@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190919034949.GF9880@bombadil.infradead.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ping Jens? On Wed, Sep 18, 2019 at 08:49:49PM -0700, Matthew Wilcox wrote: > On Thu, Sep 19, 2019 at 10:33:10AM +0800, Lin Feng wrote: > > On 9/18/19 20:33, Michal Hocko wrote: > > > I absolutely agree here. From you changelog it is also not clear what is > > > the underlying problem. Both congestion_wait and wait_iff_congested > > > should wake up early if the congestion is handled. Is this not the case? > > > > For now I don't know why, codes seem should work as you said, maybe I need to > > trace more of the internals. > > But weird thing is that once I set the people-disliked-tunable iowait > > drop down instantly, this is contradictory to the code design. > > Yes, this is quite strange. If setting a smaller timeout makes a > difference, that indicates we're not waking up soon enough. I see > two possibilities; one is that a wakeup is missing somewhere -- ie the > conditions under which we call clear_wb_congested() are wrong. Or we > need to wake up sooner. > > Umm. We have clear_wb_congested() called from exactly one spot -- > clear_bdi_congested(). That is only called from: > > drivers/block/pktcdvd.c > fs/ceph/addr.c > fs/fuse/control.c > fs/fuse/dev.c > fs/nfs/write.c > > Jens, is something supposed to be calling clear_bdi_congested() in the > block layer? blk_clear_congested() used to exist until October 29th > last year. Or is something else supposed to be waking up tasks that > are sleeping on congestion? > >