Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1385007imm; Tue, 5 Jun 2018 13:47:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJvTz0wGFCUBnDmJty4+G6qpN3hOdUzzwBy2PNXZAqKuT1I9pjDldg2SfPcS8gGLER/DKWe X-Received: by 2002:a17:902:d90f:: with SMTP id c15-v6mr174286plz.65.1528231654407; Tue, 05 Jun 2018 13:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528231654; cv=none; d=google.com; s=arc-20160816; b=yLirRKddU7jdTiFlc2gtc36KcJtKFs5SZCgVUfGszYl9Q+wH6XbucS0hQ7iLfOK5i8 jDzROUlsS9qrXUaBA8V/YcFqMV4kjHy/mI8RDv2iCOtGp1n05QImRC7e1K/jpzAbHP3+ Aal0nENxo6cLw8wKEOtcG2Vm+46cleQUgcwCFit9ksviKbSWsjq0Q472yZVKKk1/59Z+ 0PFWFyU2xCemuB+bWZXi35dksCe0pkeHATJbXdiypzxg1Z55TTNvpPUxC5m6os1hceFc l9GXgc36eOLVnxy+n67uyE1kThr37Dx6c0vixJLEVvhrNSRbXThsOvm6l1Xp+JwN63Jl NfCw== 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=cvlz0CjqV57JKNoZtFXPw/wIraiEvfu8hGWVMpdjfQg=; b=XYCIjwR0hp6AwGLqbL2+viUNrweniiDgNnQHzujgnza7Ch9LFNMtW/FoHT/oEKs88X CK6Sy5cF/wlDQcmbOlUf5HXSN8c4/qUTEzOLoGPxMtn0bGzLGxd654DcdssJnB1p09OU Mtjr6DCokx0+QabTUGLR9zsBz2WTNT9uOHP+1nRXcyS3boD05P7M6wAa282weC1QRb6E 809k9K4k1W74cjDjIRiK4QTiDjPonjPsx8FGIAfFeBthORnS/VHAR76ZqdAGWKTtmTPn WfOmoeOTIip9ingnrgfeGkvyXahLXuiM9dJQaJZD1zADu76WlNxYVt0DEqpc15lqzLS3 FCcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NJ8/ujX5; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l68-v6si9931855pgl.84.2018.06.05.13.47.19; Tue, 05 Jun 2018 13:47:34 -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=@gmail.com header.s=20161025 header.b=NJ8/ujX5; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbeFEUqb (ORCPT + 99 others); Tue, 5 Jun 2018 16:46:31 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:35195 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752217AbeFEUq0 (ORCPT ); Tue, 5 Jun 2018 16:46:26 -0400 Received: by mail-yb0-f193.google.com with SMTP id f79-v6so1254014ybg.2; Tue, 05 Jun 2018 13:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cvlz0CjqV57JKNoZtFXPw/wIraiEvfu8hGWVMpdjfQg=; b=NJ8/ujX56N/9xxDYb4m7pMgJyQAdN2/JF+ykqQZ4owv1N+UiHGvRm6DH5Cqbf8pOlK U2xbhR8JGpvNICbYDHuwO9AVC878aM9/b+CdSGv5p3T2qKzAg1Hd+XipSmnfP0E1JOlE lNnqveimh821x6D2qnIpTCfsjxhDA2UxYrMl2EAPW5omq7AKNdZsEiTwYJ9SRek1aN5A k5uQpegcsdwbkOE+k3PRG8XD88IFWVo6rVWDl618y559b3c+klqKF2e+PCzx4RKMZCY5 uhsP1HNHa8IIQbMpdhHjJFz22Kn3a+q7MyCJZzWjFCLrEZaclrO5jCdaOO7vWz+BGRxP LsJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=cvlz0CjqV57JKNoZtFXPw/wIraiEvfu8hGWVMpdjfQg=; b=qVnaLAxXqFXaHsJqWfT2OQus+fe2Tx4RViC/ZoePG1LJgL6odZIafP9BuqDngXAJgI 2Ryb5APtNxlrBBDPgPoJGB5Ty3YUMJxIrfKvuSsiNLlQ23/lFbRsImiS13IPrdiXatvf 1NrK3lgPVyzPvLu83Ztte+AVcIJrwuhK7Ss+h2cSZc5w2PVSubQ7NoWJOzh9eVxKXsXb oG4VbwCfad1b1sXw3GYdZR1vhoWSDV+ot/XIbXX5EhyJKaTkOuTEC6iCZTptrTXw6f6Z +ppfgqYy8wS9kcl6QwniuJ8nJt4NijcJrjR4yGQ0B3AEehW8fmpAbAmNZBUO3secrVu8 hUug== X-Gm-Message-State: APt69E1WCFYLRHi32CN51Q/Ojg2QZUa6nLeWDOJMP+Rbpvgl2yrJmBE0 Ksp+L49M9E89qtBpgPjSbmU= X-Received: by 2002:a25:4ac6:: with SMTP id x189-v6mr101954yba.103.1528231584958; Tue, 05 Jun 2018 13:46:24 -0700 (PDT) Received: from localhost ([2620:10d:c091:200::4810]) by smtp.gmail.com with ESMTPSA id f125-v6sm5952536ywc.46.2018.06.05.13.46.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jun 2018 13:46:24 -0700 (PDT) Date: Tue, 5 Jun 2018 13:46:22 -0700 From: Tejun Heo To: Josef Bacik Cc: axboe@kernel.dk, kernel-team@fb.com, linux-block@vger.kernel.org, akpm@linux-foundation.org, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 07/13] memcontrol: schedule throttling if we are congested Message-ID: <20180605204622.GK1351649@devbig577.frc2.facebook.com> 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.5.21 (2010-09-15) 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 Acked-by: Tejun Heo Thanks. -- tejun