Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3693377ybb; Tue, 31 Mar 2020 10:06:19 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv/lCgmJ7lbIKgDH+YghKRLmB8R/+NgRBHgrocwPn0bzeZNF9C5+ptiuKghOroOjE0v84mX X-Received: by 2002:a9d:220e:: with SMTP id o14mr3769183ota.88.1585674379782; Tue, 31 Mar 2020 10:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585674379; cv=none; d=google.com; s=arc-20160816; b=dt9Tva5qeZ4FOgmkJKZBCOw6E/+drwuKF6TLj2USQ75+4tdOXrr5Na/AMWxpploP4P M2HzclsI6L5fMTe1ZBrA+/YqbZOAW06aEwn7RqbUy4whomK4HYuRIPRR+xQXjRNRbJPD C/qhhYkIiS7q6hFmGf40DR76Wv38W/fralQBAkkaqB763gC107DjoaqaMEMdcjnTSjAo lRLZbPhxSh1w2EnYxlNFp+uHR1M82y7VhqVOCAj5/Ax4iYMC49xpMRZ9nPJwBaN7pXpv 2heSQidxiWJ6BX/6Psw87a08+8Xup3F885Pt4kaZbu8GRgH8X17F1yBsdTHvmCvi4+3b NkZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3MfpJb9zskhXycF6Q+P3UTVTg3zrJvxkcEUgjbQFmfg=; b=ASCcryJlgWSma8R0VU6vu5w6lkEqTIwFQhxK35gOs+N+Snvk/cmGhB/6mAX+LCyOU+ kIVt/qO00z8LRA/H4mcGnaoaRAPU6uMRxoV1OKH+hx2l3hHiqGWQfauQJQDk+2mZ39Go EZ/H1ASrHKeCZifE9lB1Df5eRjry4fvpyJEQyrOUmpTUZxYeNSuTLySEn3DNTuQY8jtt L520O3zoYyvMADeUgrUTPYhas/h6JQN4iuGj25lbrVoQpKAl7vbLzlfo9PeLk0ecj+Ex 9P7wbwjDAPg6FqfqsBU5XGYTKRKwgLYRFx6OslmpktdPU1UfkaEOGwXXoFbvgP0znEkJ /DTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=pZsnQlx7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24si6770715oot.29.2020.03.31.10.06.04; Tue, 31 Mar 2020 10:06:19 -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=pass header.i=@chrisdown.name header.s=google header.b=pZsnQlx7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730770AbgCaRES (ORCPT + 99 others); Tue, 31 Mar 2020 13:04:18 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33042 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgCaRES (ORCPT ); Tue, 31 Mar 2020 13:04:18 -0400 Received: by mail-wr1-f66.google.com with SMTP id a25so27025913wrd.0 for ; Tue, 31 Mar 2020 10:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3MfpJb9zskhXycF6Q+P3UTVTg3zrJvxkcEUgjbQFmfg=; b=pZsnQlx7/55ukASiC3RMQ5r/VpGpt2sx3fZv4j1t5eR0lL10S2G4wpBjHN2OsIgtCn KDGVXMzzasVXuh0uhzi5yOdpNZ+vUfAIwB7wIP+I1kFSUB+EG32TYMcVi5PRnLZKPf4c 0M7AXZdWVpu+HwUc1q3BzVJz1NqBP6gcWGb00= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3MfpJb9zskhXycF6Q+P3UTVTg3zrJvxkcEUgjbQFmfg=; b=sJSARRuo75aDA9fgGmLv9I4lRAa4jcdotGaKHReqFqrxHLV794VxZXE6yIq65VY0/1 6EU/fKSinEzDf5+wEDHE9RK1Q4gtj3wpQJ4r1vm9Voq6dcxFJvaW3SbWiU8LJL5HiECa XMdsL+MLi5z7y23uHZuOcVU+5d5Uh+TM44g+pEkNmRQTL7u/pD774+KFT5UtsotnZprC HX8ZDKoqiRil9ATKWBLJMXnxjjaVxYgb5bho0Uyn5ZFfhdc1klTHU4COXRWo+x/fiAgz Vik8tMa4vT9chRT7v2rCclNuqk8rkCazl8Q85775HcJ1l5op5e81ceF3SVzsrM04/Ta/ IDiQ== X-Gm-Message-State: ANhLgQ3huNNmNskzJn7fiHM36WdYa3LDM0y+wUF/zmxc/W1KvqEmMWpw SJ3MZVnRyv3qFwukOYrtST5KmDCTYq4FPQ== X-Received: by 2002:adf:916f:: with SMTP id j102mr20527218wrj.335.1585674256639; Tue, 31 Mar 2020 10:04:16 -0700 (PDT) Received: from localhost ([2620:10d:c092:180::1:27bd]) by smtp.gmail.com with ESMTPSA id r9sm4700820wma.47.2020.03.31.10.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 10:04:16 -0700 (PDT) Date: Tue, 31 Mar 2020 18:04:10 +0100 From: Chris Down To: Michal Hocko Cc: Andrew Morton , Johannes Weiner , Jakub Kicinski , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] mm, memcg: Do not high throttle allocators based on wraparound Message-ID: <20200331170410.GB972283@chrisdown.name> References: <20200331152424.GA1019937@chrisdown.name> <20200331155752.GN30449@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200331155752.GN30449@dhcp22.suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michal Hocko writes: >I find this paragraph rather confusing. This is essentially an unsigned >underflow when any of the memcg up the hierarchy is below the high >limit, right? There doesn't really seem anything complex in such a >hierarchy. The conditions to trigger the bug itself are easy, but having it obviously visible in tests requires a moderately complex hierarchy, since in the basic case ancestor_usage is "similar enough" to the test leaf cgroup's usage.