Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4134632imm; Mon, 11 Jun 2018 07:32:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLXgu1tWgE7tRS9vpATIG4i66KUzrmlP6FRGkKxQWb0yYnXFamcAP0j6fX1UEsmjnpooztk X-Received: by 2002:a62:9e88:: with SMTP id f8-v6mr17787260pfk.206.1528727557413; Mon, 11 Jun 2018 07:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528727557; cv=none; d=google.com; s=arc-20160816; b=bx6EhRRcz+tdH5o6IyQYtIYrHxGZroMqibuDw33LSHE3V4VuVETgRRLkHAZAgmjEQW YH9hLpOuh4l6Z/KkiUyoUZLgabGLB3ZgNGn8qiiItU8eWVJVwC+YEF8Luxor49OQRGjy XQTB/hA4pXl7z1NTZl7+2+WwTQhHEdkcifT9ncTl7mnpLaUqbh0qreXLcTGkVvhhMY+x x6VJHBXs8ga9t8U/0HsMkWl0GH6HqLKrmsgFslmsgl2vFWeeZlwQnMqU0qmwStVKbObj NIkoyVqo0vE2zoqAY4GpcJqj06cVWIm+1P6K1m2L25jNzXRjfX8uCrJ3fa7t0ho+r3DX CJFQ== 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:arc-authentication-results; bh=waK/pft7dHI/2nWgZj88ujOh6mLBgufYhj2a61nLOAc=; b=Rath7v3ObbcxdQ16Uzpmho5KjUQJ2DX10nRLr3Rur/tvg0nOmpvAMBgTQMJYqhjg7T hy+1ytwP+Ye5zC/ugh5ALyxyaUomlE2JFrxAvO7aSFYcHhRzDDAxcnZGsXiTyRNBqnC6 L/xjSf7+HUR/ijtocoqzehdLcvbraoCWOBKXanbftCccPj7XPUgnVaJdUnTzqWYeAxxi J5SBoAOg97Lq6PNv5MBXmg7e3qqoTqC39bRQLUSXL4/qUWpeSCOQTF9E/Y1tlEM2o9ou 2mfPhAiTwu9t5xBkwunNQy9XIiD+cTZbekdiBEpUHlRWwuUa/YAcnjK+ype1GqzUtVXo 1f8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=yXVuDHnu; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si21645450pgt.106.2018.06.11.07.32.23; Mon, 11 Jun 2018 07:32:37 -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=@cmpxchg.org header.s=x header.b=yXVuDHnu; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933446AbeFKOGl (ORCPT + 99 others); Mon, 11 Jun 2018 10:06:41 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:54120 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933223AbeFKOGj (ORCPT ); Mon, 11 Jun 2018 10:06:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; 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=waK/pft7dHI/2nWgZj88ujOh6mLBgufYhj2a61nLOAc=; b=yXVuDHnu/P3yn1dlGgfa046/wQ I1MsTk1KrVpzy+KwAjJxPJfW0XH+LtudOlyZfLVHblPTUP3x/QwNZglm/ceYqWHrXus3gXWxS9nfy jNxiNc5t49oyeH13JTo29LRFASpoj5CBUSBVSlpjBh+uOSliNi1i2+nGwTogCoTDTShk=; Date: Mon, 11 Jun 2018 10:08:58 -0400 From: Johannes Weiner To: Josef Bacik Cc: axboe@kernel.dk, kernel-team@fb.com, linux-block@vger.kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, tj@kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 07/13] memcontrol: schedule throttling if we are congested Message-ID: <20180611140858.GB1507@cmpxchg.org> References: <20180605132948.1664-1-josef@toxicpanda.com> <20180605132948.1664-8-josef@toxicpanda.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180605132948.1664-8-josef@toxicpanda.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 05, 2018 at 09:29:42AM -0400, Josef Bacik wrote: > From: Tejun Heo > > Memory allocations can induce swapping via kswapd or direct reclaim. If > we are having IO done for us by kswapd and don't actually go into direct > reclaim we may never get scheduled for throttling. So instead check to > see if our cgroup is congested, and if so schedule the throttling. > Before we return to user space the throttling stuff will only throttle > if we actually required it. > > Signed-off-by: Tejun Heo Looks good to me now, thanks. Acked-by: Johannes Weiner