Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3870127pxb; Tue, 7 Sep 2021 09:16:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyGMRn+NZAhqVNuOz0HQE9RPO+4u/PX4pRNqDY7hFzd7KLWyfWu80Zagy5fJ/x3HjprOSu X-Received: by 2002:adf:f403:: with SMTP id g3mr20304021wro.206.1631031398225; Tue, 07 Sep 2021 09:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631031398; cv=none; d=google.com; s=arc-20160816; b=JPnfypRxH6hDfnsMFjk+TFVdFYDm1sMufYVvHKVxag88BF6dBsUKASOuE5awTrhmep JVczHqPrskhAG6mLlaUpifhWqwIpIkuPoKssah65v5qkcCbW+JTQIvkNIDak10HYChO6 Qn786ZvUO5Pn6trSgGPG8hrsHyo1fp5W00otwgfHUY9oUvBH+vY07qaD6RtMolAIJ0gK 14kkB4DXXqjx5VS5ahXKyvoCdJuzVYhn4itrf4FvoljxLJrU7yFnn31h2XodZ5P2VAyC lzFfHJW+V91/4pkVNh981/Gx7dtdWltCkuCk35j4fWSR9jDev/EkSW8UUVlUXujCwpdI qA7w== 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=iIiYxupSjlJVesLQ5Se7T4ey4EA4tPfggiDuRfDLa94=; b=L2X0tZu09dON8l3ZwrTBtEeby4azzxll5BKHqa35FohCfRpNHd21FD1q0BqAj6Ffjt YVLoKxQQOJYRNcStgp1r0VePHBlPwOLP24TEPzLpgEgVS8dJfF1PqvJmGwOy66sMDkWX X3hcePwrNFluiFWDTwGsqkyHLi+b+nj7bIMcjPKezrXiSJhbw0vgXknoyJxtCi0t5Mvg bbGNBRuwmxvCz6Zznr+ee+He/3/ZCucohBpHsdAjn5tiJmgbJmSX8Q78n+jsu5TtXj7C bGlbTsd4ygLjAgYfeoXkpEWbW37M8Vj8Vj/d5lHVB0Wr8OLuJmMs6iY8tY31g6PmRMsH GDFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bLJF2jmd; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 11si12049678eje.729.2021.09.07.09.16.14; Tue, 07 Sep 2021 09:16:38 -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=@google.com header.s=20210112 header.b=bLJF2jmd; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233589AbhIGP7D (ORCPT + 99 others); Tue, 7 Sep 2021 11:59:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbhIGP7B (ORCPT ); Tue, 7 Sep 2021 11:59:01 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25BB7C061575 for ; Tue, 7 Sep 2021 08:57:55 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id h1so17327279ljl.9 for ; Tue, 07 Sep 2021 08:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iIiYxupSjlJVesLQ5Se7T4ey4EA4tPfggiDuRfDLa94=; b=bLJF2jmdHWvYCvTIC4Pc+0cskBDRlG7IJ03PR4oYQFgBAVzC/q95gOcy1Cu//xQR+g hDnjrI6ZKVr3aa5ahEfW0dZ3BtR7xNLXa44fUnYW4O9OyHL+Ksji/i8ScsEy0AqzmUal PpC50txOWBXFXRk8OPuCPrw4AjitR7Q4vQfUizkXrWbbEXL1S0GlUDosx2bLyO6Sw3A8 FOezSNU4sgr5m9haJ3j1fr9Uow3wM/lKgpStw4cYfbHOgbjeSikN98R7yjLPYEpu4p1S usCph7YQVxgVTcdCZ2j9bQyCx6hP1aW+ARSDNUn4D+pf02WGOLlxVDMaIUJ95CpWkYHo KcBQ== 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=iIiYxupSjlJVesLQ5Se7T4ey4EA4tPfggiDuRfDLa94=; b=ZfGzv2TWo9N3WBtcPFgeB2IXgN2iJcei0HwT357kD0VVUHfq9ClPr6u344VE/15Etc yiqgIOHDCUz8TXM08cNhUnquFH7HvDL4G29ag0uzGJcNQgaD6nuCciboLdOMucl99sBM uES6sejlyhYEmeuSDz2juyEHzHr9Ud0irfQufLrVIGcxmx5/q9xD7YfRdi4bcOF43mdh ZytjJ+EbjtZpWX8lNLMYhyBGMIQVOv1x4XyP/OJZUiJfBMrDgwq2jO7W2jK+XNAZNqWp MsJawwpA548CyaTdalyKl+QMS+jcUNWfm+ngoMFT6Ky5WgN9Ac4EymQNCCxl8PBXeDVR yYDg== X-Gm-Message-State: AOAM533xF/U/p79idBArtNcVLcW8jMpfaTMfOUb97sd6C9sfqA8w3KWU WLRgdAb3UUbAKr4CY142xVw/XltZ2sONvTLVljc3uw== X-Received: by 2002:a05:651c:1029:: with SMTP id w9mr15100528ljm.202.1631030273217; Tue, 07 Sep 2021 08:57:53 -0700 (PDT) MIME-Version: 1.0 References: <20210907150757.GE17617@xsang-OptiPlex-9020> In-Reply-To: From: Shakeel Butt Date: Tue, 7 Sep 2021 08:57:42 -0700 Message-ID: Subject: Re: [memcg] 0f12156dff: will-it-scale.per_process_ops -33.6% regression To: Jens Axboe Cc: kernel test robot , Vasily Averin , Linus Torvalds , 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 , Xing Zhengjun 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 8:46 AM Jens Axboe wrote: > > On 9/7/21 9:07 AM, kernel test robot wrote: > > > > > > Greeting, > > > > FYI, we noticed a -33.6% regression of will-it-scale.per_process_ops due to commit: > > > > > > commit: 0f12156dff2862ac54235fc72703f18770769042 ("memcg: enable accounting for file lock caches") > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > Are we at all worried about these? There's been a number of them > reported, basically for all the accounting enablements that have been > done in this merge window. > > When io_uring was switched to use accounted memory, we did a bunch of > work to ameliorate the inevitable slowdowns that happen if you do > repeated allocs and/or frees and have memcg accounting enabled. > I think these are important and we should aim to continuously improve performance with memcg accounting. I would like to know more about the io_uring work done to improve memcg accounting. Maybe we can generalize it to others as well.