From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A743C2BA19 for ; Wed, 15 Apr 2020 10:24:46 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 295C820775 for ; Wed, 15 Apr 2020 10:24:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 295C820775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CD8078E0007; Wed, 15 Apr 2020 06:24:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CB8148E0001; Wed, 15 Apr 2020 06:24:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B9E3E8E0007; Wed, 15 Apr 2020 06:24:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0132.hostedemail.com [216.40.44.132]) by kanga.kvack.org (Postfix) with ESMTP id A02228E0001 for ; Wed, 15 Apr 2020 06:24:45 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 6BDA1181AEF1F for ; Wed, 15 Apr 2020 10:24:45 +0000 (UTC) X-FDA: 76709705730.27.goose45_2980ab63c0d1a X-HE-Tag: goose45_2980ab63c0d1a X-Filterd-Recvd-Size: 4306 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Wed, 15 Apr 2020 10:24:45 +0000 (UTC) Received: by mail-wm1-f42.google.com with SMTP id y24so18317498wma.4 for ; Wed, 15 Apr 2020 03:24:44 -0700 (PDT) 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:content-transfer-encoding :in-reply-to; bh=+kxlvdqj4G7H52Nr6jsXXb07LhAX1fjinkLOiENvF2U=; b=oLDwVXAvjzLEQ+efPGZV72Ql5QU8ii69ID8PeBV+XTG0wXymPxI7QU6DlU0lS++oFN K1qiFkw/RSXzUD5+YCXi6vrEBARr1RNBrvBA7mrlVbQXiVsB8b/+KtrKm7GllKr56Bdx reOJK4Nj2JogDaljdD2tn7dQPy10RXqK8KZF5W8aGO/PwM8vC3HykEAR6zRxu2A+nROT VdXIJzkUH0Z5RsHsWZE476cS32FSMm5cDrG9I4JBgO/w32tKULq8i6pVoZVUxxWx8Son /Bf+Uus8O8gC/x3jw27q2j1ypyT3ZTZ2osBDqGBCaTI7QEf6liAK6sgnFlkS3V3MaTGY jxLg== X-Gm-Message-State: AGi0Pub4Y+H+Nr/6txqtbPple0hA8++INChDHZh1gDP2qVyxvaRalC/G mGdjEups9DwNElYiAaEu1qM= X-Google-Smtp-Source: APiQypLGPG5YhJgQ1ifHp2eWDuhftQlzY+KRQdEbZstp1l7yqAcFYixtIUO3QNbWr27qDNc6DtG8Tw== X-Received: by 2002:a1c:7905:: with SMTP id l5mr4750302wme.5.1586946284117; Wed, 15 Apr 2020 03:24:44 -0700 (PDT) Received: from localhost (ip-37-188-180-223.eurotel.cz. [37.188.180.223]) by smtp.gmail.com with ESMTPSA id i17sm22428733wml.23.2020.04.15.03.24.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 03:24:43 -0700 (PDT) Date: Wed, 15 Apr 2020 12:24:42 +0200 From: Michal Hocko To: Bruno =?iso-8859-1?Q?Pr=E9mont?= Cc: Chris Down , cgroups@vger.kernel.org, linux-mm@kvack.org, Johannes Weiner , Vladimir Davydov Subject: Re: Memory CG and 5.1 to 5.6 uprade slows backup Message-ID: <20200415102442.GE4629@dhcp22.suse.cz> References: <20200409094615.GE18386@dhcp22.suse.cz> <20200409121733.1a5ba17c@hemera.lan.sysophe.eu> <20200409103400.GF18386@dhcp22.suse.cz> <20200409170926.182354c3@hemera.lan.sysophe.eu> <20200409152540.GP18386@dhcp22.suse.cz> <20200410091525.287062fa@hemera.lan.sysophe.eu> <20200410104343.5bcde519@hemera.lan.sysophe.eu> <20200410115010.1d9f6a3f@hemera.lan.sysophe.eu> <20200414163134.GQ4629@dhcp22.suse.cz> <20200415121753.3c8d700b@hemera.lan.sysophe.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20200415121753.3c8d700b@hemera.lan.sysophe.eu> Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed 15-04-20 12:17:53, Bruno Pr=E9mont wrote: [...] > > Anyway the following simply tracing patch should give a better clue. > > The output will appear in the trace buffer (mount tracefs and read > > trace_pipe file). >=20 > This is the output I get on 5.6.4 with simple tar -zc call (max=3Dhigh+= 4096): > tar-16943 [000] .... 1098.796955: mem_cgroup_handle_over_high: memcg= _nr_pages_over_high:1 penalty_jiffies:200 current:262122 high:262144 > tar-16943 [000] .... 1100.876794: mem_cgroup_handle_over_high: memcg= _nr_pages_over_high:1 penalty_jiffies:200 current:262122 high:262144 > tar-16943 [000] .... 1102.956636: mem_cgroup_handle_over_high: memcg= _nr_pages_over_high:1 penalty_jiffies:200 current:262120 high:262144 > tar-16943 [000] .... 1105.037388: mem_cgroup_handle_over_high: memcg= _nr_pages_over_high:1 penalty_jiffies:200 current:262121 high:262144 > tar-16943 [000] .... 1107.117246: mem_cgroup_handle_over_high: memcg= _nr_pages_over_high:1 penalty_jiffies:200 current:262122 high:262144 OK, that points to the underflow fix. >=20 > With 5.7-rc1 it runs just fine, pressure remains zero and no output in = trace_pipe or throttling. >=20 > So the fixes that went in there do fix it. > Now matter of cherry-picking the right ones... e26733e0d0ec and its fix= e's fix, > maybe some others (will start with those tagged for stable). I have seen Greg picking up this for stable trees so it should show up there soon. Thanks! --=20 Michal Hocko SUSE Labs