Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3983952pxb; Tue, 7 Sep 2021 11:52:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJJfDeXtyUn2btgJwZ20f122ItSr3+AlqZyhprDvCkKwq61Zq0NGmlf0ExVd4gQd2i2GmT X-Received: by 2002:a05:6402:2801:: with SMTP id h1mr951543ede.209.1631040764087; Tue, 07 Sep 2021 11:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631040764; cv=none; d=google.com; s=arc-20160816; b=wSP6VT7BpUjmkVjUk6EhoJYkGCfhpWkD64GVPOzGL+qr1xF8J3OOXBEiw77/3Z4BVN q9WNCcRqtguNpKDbT6KPe+wj6eGnwkwF0wyA1KG5BCJG8Ar3dePSMGdXCVS0tpZHI8N1 t1/EGTTRh+3xUd3zpcQN2PMXIGPYZyylkHcKNl6YPwbwt+psCGhrTwei0M5A8x4vqV4W VZOuOO+2if4iAYs1Uxi9/Y6ZX0sN73mQE8OEynFyJuBdBaarE6i2Ybp62vRMMGrKJ0Zb A1sBZs7jNseRFLPtmEOGxH86c2wUvRjSMNcpod30fyZg7SzVZHeC8cUW0sJGOuooZt/2 h/zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KoHEUb0DCP2OkvPMgQlxjC1z05NpkoQ2FGZEXVyLfxo=; b=t0uwnb6oBc7srWq0lSJ05lreb5i2pkwxeEl5jeD2B6IVmtHHGz8jxOIER4bOOI8r6q Ign/6/PD8JYxLV6CNrBAP3iHmD5qyyMIMVGSuHPuUCtod6hfT+gzf5N9w8i+pd1mwmpe qaQyZDpFzZM7BL5J2wfhhjzYgbRg6ITDTnolc7yRjy34h5LHL2HCXBWEvY1MJm2O3w16 qxdhNy/egXw7Tjtkx+GIQVU4mi1NS/eYCIa0bxR9HQfLPvVapPRwYa/FpbIOLu2x9C2S xng8reLrvB9XvwSwQ+iyVlWg0cs/8eiP0TTEaRcg1BlkXZ5Qp/aX1ycAMP1Vsp3afd9o ncvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KibYMWpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si11816836edc.536.2021.09.07.11.52.21; Tue, 07 Sep 2021 11:52:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KibYMWpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344635AbhIGRx4 (ORCPT + 99 others); Tue, 7 Sep 2021 13:53:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343928AbhIGRxy (ORCPT ); Tue, 7 Sep 2021 13:53:54 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0853BC06175F for ; Tue, 7 Sep 2021 10:52:48 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id r7so15069521edd.6 for ; Tue, 07 Sep 2021 10:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KoHEUb0DCP2OkvPMgQlxjC1z05NpkoQ2FGZEXVyLfxo=; b=KibYMWptm8FxE70xjZLMkks5z4mhxTgXord3n8HVvc8ssE6F8+icP4COZI/erePcgP bJntP5M5tJ/uCnjEH0q16uqCFwfzdL+1EJ+dcLwKxZB+bEFI9CcDlhw+cqs+2p7/M5Q6 weCOiUsN1wEGcjrIOIiorDSVQb9ThEOoSeVn4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KoHEUb0DCP2OkvPMgQlxjC1z05NpkoQ2FGZEXVyLfxo=; b=Iqfs7V2lOHN0OXcaH6EtaLzi047iYOZJ4CnzhYP19mF3IGlBLCwyUkrZpCv8cMhCHs 0TOCL3qOdojIbPW2BF6kGOsOT1ezBZ3z40QptO+HthVqJD92WakSty+nMDHl3VMitVV8 6uP2tztGwGb7ErfthggOnum0PeZv8BKcOgbRL5q9TIXlICQPxG0MlbnYYmT76YkG1Yg4 ki+svYecFx5xJPJ4st+mYIoGy3hynF4kyL5B+IQ4an3GZ21SwbwCJsMXe+hhWDHXB7LJ T5yiBLDKJO4wTzl7YCPaacMGmlbxO408PHlPe6y4WWZDlSxKX0M/WGuWBW2cRlKm2ut8 1DNQ== X-Gm-Message-State: AOAM531f/woLzBzCETUfaTxLMkIxtOnn1GQpx8y30beNuGngIeVu0iAy 9rsl7mabt7yOX2MYJ9GdNIza3D1YCLMsxhgJeCQ= X-Received: by 2002:a05:6402:4314:: with SMTP id m20mr758923edc.6.1631037165953; Tue, 07 Sep 2021 10:52:45 -0700 (PDT) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com. [209.85.218.49]) by smtp.gmail.com with ESMTPSA id v13sm5802890ejx.72.2021.09.07.10.52.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Sep 2021 10:52:45 -0700 (PDT) Received: by mail-ej1-f49.google.com with SMTP id h9so21303879ejs.4 for ; Tue, 07 Sep 2021 10:52:44 -0700 (PDT) X-Received: by 2002:a05:6512:1112:: with SMTP id l18mr13298472lfg.402.1631037153599; Tue, 07 Sep 2021 10:52:33 -0700 (PDT) MIME-Version: 1.0 References: <20210907150757.GE17617@xsang-OptiPlex-9020> In-Reply-To: From: Linus Torvalds Date: Tue, 7 Sep 2021 10:52:17 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [memcg] 0f12156dff: will-it-scale.per_process_ops -33.6% regression To: Shakeel Butt , Minchan Kim Cc: Jens Axboe , kernel test robot , Vasily Averin , Alexander Viro , Alexey Dobriyan , Andrei Vagin , Borislav Petkov , Borislav Petkov , Christian Brauner , Dmitry Safonov <0x7f454c46@gmail.com>, "Eric W. Biederman" , Greg Kroah-Hartman , "H. Peter Anvin" , Ingo Molnar , "J. Bruce Fields" , Jeff Layton , Jiri Slaby , Johannes Weiner , Kirill Tkhai , Michal Hocko , Oleg Nesterov , Roman Gushchin , Serge Hallyn , Tejun Heo , Thomas Gleixner , Vladimir Davydov , Yutian Yang , Zefan Li , Andrew Morton , LKML , lkp@lists.01.org, kernel test robot , "Huang, Ying" , Feng Tang , Zhengjun Xing Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 7, 2021 at 9:49 AM Shakeel Butt wrote: > > On Tue, Sep 7, 2021 at 9:40 AM Linus Torvalds > wrote: > > > > We are worried about them. I'm considering reverting several of them > > because I think the problems are > > > > (a) big > > > > (b) nontrivial > > > > and the patches clearly weren't ready and people weren't aware of this issue. > > Sounds good to me. Please let me know which patches you are planning > to revert. I will work on the followup to make those acceptable. The one that looks clear-cut is the one in this thread: 0f12156dff28 memcg: enable accounting for file lock caches which seems to result in regressions on multiple machines and just be very bad for anything that uses file locking. I'm not entirely sure how much that would show up in real life, but I can most definitely imagine it being a problem on a real load. There's a few other regression reports I've seen, like 5387c90490f7 mm/memcg: improve refill_obj_stock() performance but that one had mixed reports (it improved another benchmark), and it looks like Minchan has a fix for the regression already. And aa48e47e3906 memcg: infrastructure to flush memcg stats b65584344415 memcg: enable accounting for pollfd and select bits arrays were reported as a regression in -mm, but not in mainline yet. I assume (but didn't check) that aa48e47e3906 is a bigger deal to revert. So _right_now_ my plan is to revert the two obvious cases: 0f12156dff28 memcg: enable accounting for file lock caches b65584344415 memcg: enable accounting for pollfd and select bits arrays on the assumption that the memcg accounting code needs some work to make it less of a performance hog. Does anybody have other commits they want to highlight (or other comments) about this? Linus