Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp976018pxb; Thu, 15 Apr 2021 10:44:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDBPs+fPD2DAV2KdImhJpp0pndYwPvQrThSzD0hxafjRwQUX4ibI3DqB4jaEtoA+n/fLgJ X-Received: by 2002:a17:906:4fcd:: with SMTP id i13mr4606144ejw.341.1618508695763; Thu, 15 Apr 2021 10:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618508695; cv=none; d=google.com; s=arc-20160816; b=SijtGrJOFr4DaSXjwJbct75VXUkQOXQfbjDVlea8cJokjLhflgoGWaig5Z4pg0E2k6 /cW5lapEzw98mgkMIMnmv5IJmRh6qGTT7gp7n6qr1FGp3X6O87I9Z8PhVOhGdRGT9f6w J3sVcm3GNgswvLaDQeCrDntxV0/Cn0vh6XhSh9z338aQQbODBT3EMdOE400B3UK/RNgp OLN8uDCttFiTEB/+/TiDYApJaSPQYfIslCOPCZzOXeBqNQY9WBSoYrWZTILmSS7GWyjA QKAm4WrSjw2p4MQZmB2SUo3nLPBD0ls0ULoSlX2XldbwNSgqI6mnKcnCQ7l/DsIAJeqj iRtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=wTimRIr0YgBuVLpWvKPM6c0MAPH0f+KQspjahIIUAlU=; b=ns1Krm4igZwGd0VLly4rPNMOK+w6gNxhebgiM+BpyLYYnQF5q8EpEK3ln4zwCVZxMD NXEld3/xUWfHigr6E2CRLOZfy76KCYvEBcyOELYdjdbC28cqAlqk4BTaPxWFGt+t0hID UCXQeofjgWWiREXJL+Jlth+Fc3LdIu8NAzuQ4BPBTABerlFMPwiq1oQ6fb3PXhR4iaTi cRpQgcu7AnYIiZ1itAukBNW3YW45E2lKqlDjvE8OBn0Qp3Uoi6zXgHXPrVQhbbViK8Sv VzG26n2dK5GVD12IkWldQN5x0HjEHMtn4o5+lLd09Xam92LISM+WpThb66rpfPlCMSIH mJPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cPDV7WzT; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si2740423edv.176.2021.04.15.10.44.31; Thu, 15 Apr 2021 10:44:55 -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=@redhat.com header.s=mimecast20190719 header.b=cPDV7WzT; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234086AbhDORlg (ORCPT + 99 others); Thu, 15 Apr 2021 13:41:36 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:51503 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233980AbhDORlf (ORCPT ); Thu, 15 Apr 2021 13:41:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618508471; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wTimRIr0YgBuVLpWvKPM6c0MAPH0f+KQspjahIIUAlU=; b=cPDV7WzTQ9rHwfUAQ/ac8bvWdvjyTkXGWriMaF++nEkSbJ+qL0n8Miec9j2pcwCP3jD+sH R6TckrEa6JX8ZyygS7AnxLHcSdnNw7s2A6J/GQ6S4KME/FKCJ9tWSLOBsC0ts8eb/9IbGh oJuCPBuWTEs8RtOWTWoY/1i4yja7kqQ= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-596-pxp1gya3MFWwH2GlIlJCMA-1; Thu, 15 Apr 2021 13:41:10 -0400 X-MC-Unique: pxp1gya3MFWwH2GlIlJCMA-1 Received: by mail-qt1-f199.google.com with SMTP id e6-20020ac85dc60000b029019d9cbbc077so4492900qtx.11 for ; Thu, 15 Apr 2021 10:41:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=wTimRIr0YgBuVLpWvKPM6c0MAPH0f+KQspjahIIUAlU=; b=Ve7bkuUc5dERHWidVXG+3JYCKnFzBVCDj018pj5qXNlC3nlL8dr8thzmq1cQe2HeBm EopzT+s/XNAOfeAzahPlPs9PeM81CfLKWWzUDuMGhBg4GpEsU5Y/zEEgn9LAcKB9WQKI plb1i7slkyf51Rc15ZfV8+SkTGk3ZCjuHtBMIIr/kXoQYy24/Zkhu2a/e6Jdh6mb+w/G +KMw4HITbLfVooZf6eKpPX2n9RVzZryDx8/Evbg83ICkQ3Tcjm2j0k5peb/zjSBdI+Nw G7AZ8mIwgKyT8SeCwQm5Fi/w7q1txzlz02nCe7u40mVq/fqycbP/ZC+8jXL6nQjtLQAu 9bqA== X-Gm-Message-State: AOAM531VeJbEISWjJ6sl4XW7vC9SHDxXfZA0HwT6k03aPlBGkmc1qrOH wl9eti5C1fV59dz0zLgg9mzv/m7LugYUXXcvAHppUcSUUeeRplBvBJ6fRG6y59fTWCFxUGIyUio L4DcYc7V5kLnpsmvnENiLJ1Sy X-Received: by 2002:a37:7c5:: with SMTP id 188mr4791832qkh.348.1618508469965; Thu, 15 Apr 2021 10:41:09 -0700 (PDT) X-Received: by 2002:a37:7c5:: with SMTP id 188mr4791794qkh.348.1618508469626; Thu, 15 Apr 2021 10:41:09 -0700 (PDT) Received: from llong.remote.csb ([2601:191:8500:76c0::cdbc]) by smtp.gmail.com with ESMTPSA id x18sm2247420qtj.58.2021.04.15.10.41.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Apr 2021 10:41:09 -0700 (PDT) From: Waiman Long X-Google-Original-From: Waiman Long Subject: Re: [PATCH v3 0/5] mm/memcg: Reduce kmemcache memory accounting overhead To: Matthew Wilcox 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 References: <20210414012027.5352-1-longman@redhat.com> <20210415171035.GB2531743@casper.infradead.org> Message-ID: <15cf3cfa-c221-9e84-9f5b-80082207efd3@redhat.com> Date: Thu, 15 Apr 2021 13:41:07 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210415171035.GB2531743@casper.infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/15/21 1:10 PM, Matthew Wilcox wrote: > 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% > What I want to emphasize is the reduction in the accounting overhead part of execution time. Your percentage used the accounting disable time as the denominator. I think both are valid, I will be more clear about that in my version of the patch. Thanks, Longman