Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp952808pxb; Thu, 15 Apr 2021 10:12:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL30K92dOO86iihJ4Tg+8Wrje8G5HiC1yrOmpccgvXLZi0IVrO98I+HfXDLhaABclC+GKt X-Received: by 2002:a17:902:a70f:b029:ea:d4a8:6a84 with SMTP id w15-20020a170902a70fb02900ead4a86a84mr4908437plq.42.1618506771167; Thu, 15 Apr 2021 10:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618506771; cv=none; d=google.com; s=arc-20160816; b=0nM0VxHfqXOgWuAxZr89GTl+2kqKFnZWMmBvpdznxJ/F4izVe3ckl24fdH0ll13xhO 6bZxyUnPMCM/779HDwJ1xMR2Qd1/X72g/rVQPGyUinTe7JzLb2Q/eI+3CTr4PutN6x0O HT6qaTxMcfXezUkZ+95shxJmiVNqKYd3kbA1ZvVzHBvIUcjuQ97Dz2+xYlJMXs5dqsip oxJapaDCkvuUVNDU52r8TmSJViVXC3qCmtjtTwkXD8ZDXGHhwrHAtoSxUDSrksYXs1ys qRjqFlOjzZr64CJbfhGMro92B/9RjE1e8MV1WpsOc2W0fYabak+GSNzs66oHbTQFPByP 69sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YwgbDheT+MJJ4trDHQZMYorZHJyXvzB0bzY8L8H53Zg=; b=K5k+D5KVyz58EuqWyDGNbCZkuxU0o7eNFR1HoNK/1VGILn7tANNschQ6gsmD7E0l5N VHW66oKiIZLhzvZTRM4Fh2AcIsist3P4RxEBY/LS30T1ewcDnNt5F1MlnLBCClRO2uCd SvGIU+yKNzk3JyP7or3EEXSb6Sym1uW5MCHMYgzgsFtqiOEYbyF4VirfErXN4a8UPa+T cvz4t9Kky0MwOdvS6mzqoj0aiyl4y9vU6Su9nU1Hla+uOxH1ebA/vPbLslJulZnnEci7 dl0xW2NxU3paGwMrkueVD0kNdr+ZOX0pylG3kiPKRgRaQ9VD00+AjD1EQMhPWCkJ+y5w lzeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=pqDZ5QWh; 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 s2si4354990pgo.186.2021.04.15.10.12.38; Thu, 15 Apr 2021 10:12:51 -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=@infradead.org header.s=casper.20170209 header.b=pqDZ5QWh; 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 S233609AbhDORMA (ORCPT + 99 others); Thu, 15 Apr 2021 13:12:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbhDORL7 (ORCPT ); Thu, 15 Apr 2021 13:11:59 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14A41C061574; Thu, 15 Apr 2021 10:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=YwgbDheT+MJJ4trDHQZMYorZHJyXvzB0bzY8L8H53Zg=; b=pqDZ5QWhUwnCMzzTpH+57MdG8e g0vSEvFaeMGsKZ8bh0uo5UlIzHiiUgtJXiYwSvzacGqhh6T6NUMa7H0FmZtHyRyC3p6SM9J82c7nt wJ42qJWzFe26oOKJIu3NFrFYbbArdbYa6HooTaeAKc+NP3I6rczNl963yeZNi4aDr08izYDfRM3GD lb8BDY8K66PWBgEDvI5KTaFM7dI7gmB3dxzh0jphKMJR33jYTh5zvGwlqJWJriDwVOvk8EUzYHs4K WlLbiUz0IBvw1/FZNpfVY943UN1CCV+CB9CaByZSj9Jt8m13uHY+rBW34SoQuSqLRa7q6/dbT68+r T9a1b7tg==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lX5Vj-008r8z-8x; Thu, 15 Apr 2021 17:10:41 +0000 Date: Thu, 15 Apr 2021 18:10:35 +0100 From: Matthew Wilcox To: Waiman Long Cc: Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Tejun Heo , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Vlastimil Babka , Roman Gushchin , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Shakeel Butt , Muchun Song , Alex Shi , Chris Down , Yafang Shao , Wei Yang , Masayoshi Mizuma , Xing Zhengjun Subject: Re: [PATCH v3 0/5] mm/memcg: Reduce kmemcache memory accounting overhead Message-ID: <20210415171035.GB2531743@casper.infradead.org> References: <20210414012027.5352-1-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210414012027.5352-1-longman@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 13, 2021 at 09:20:22PM -0400, Waiman Long wrote: > With memory accounting disable, the run time was 2.848s. With memory > accounting enabled, the run times with the application of various > patches in the patchset were: > > Applied patches Run time Accounting overhead Overhead %age > --------------- -------- ------------------- ------------- > None 10.800s 7.952s 100.0% > 1-2 9.140s 6.292s 79.1% > 1-3 7.641s 4.793s 60.3% > 1-5 6.801s 3.953s 49.7% I think this is a misleading way to report the overhead. I would have said: 10.800s 7.952s 279.2% 9.140s 6.292s 220.9% 7.641s 4.793s 168.3% 6.801s 3.953s 138.8%