Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1874265rwe; Fri, 2 Sep 2022 05:22:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR68bndZg0YC5/4IKhi94TeEinMyTY26S4XFzQrL1KPeryKBiZidEevATTZMGpLUk0imvC0o X-Received: by 2002:a17:90b:380e:b0:1fe:8e4:96be with SMTP id mq14-20020a17090b380e00b001fe08e496bemr4589951pjb.18.1662121328188; Fri, 02 Sep 2022 05:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662121328; cv=none; d=google.com; s=arc-20160816; b=r2NL6NQn1Ssz0thXaKgIEYjJNYLgC+oK8F/eoGb4MyENrly4FnAa4Y7Jes1/zbYKZg aqmWCzLBluMtggJH4S3/REDOhDJlARbNjTb7eRIP9MWejffyGYkJDiwnklrZlRZ3b+Ll 82iaRYgHx7sHZV/VMF2U+9SBZvb2WtQ92FS2hq7UPoIkG7Ab1iEriuDm24FvMji4T3Ih SjHzYQCNtulhV4eOenL6fhODia/7zazoMcOgffIAnYntXa/J2A9d1vVIPKcM6JuYOci1 xSYuGSrwUt1ksJPOgyFjPcD7TrjOMb1wFD8dN7inlbcWZojhAJBc2YRZxIq2f6B1yVDi YGow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=W8RjYI+n37ofAo9LBQEiCCEo6ndS1LkvyfXGybqsT9Q=; b=p8IX9LcKiUzz0HmDdbzTIkI4hZFvqeax6ojuxuRgP8uLSaGBLGvtqx/1TcnGEEVtRU abCjT0/NiDzs9q22XRvsw063dTHF8N/kYvV5r40FsDCfkwNniGs6AU8UbRjNze5Icbou 1yF5pFkA3NbjW9BsA8qsdYlOvaZDVr5waBFgOfuLequZV1qbS1UQfxaUGlCykT1p1nEB 1UK7MFXLdyFEroAk2jun5LNk6Lq9RISDEXaWpafcyu2B/Wceo2GwNcrEPWR5B2FcZUBU NSbNZMoFktNVEJJJwUYoIvy5WxKPy/62jtCixlWvRhQVECwWXmALE0da00fGpY0jsjRY J4qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=KJAXAw3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020a170902f64800b00172a117cbcfsi1985365plg.324.2022.09.02.05.21.55; Fri, 02 Sep 2022 05:22:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=KJAXAw3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235715AbiIBMCX (ORCPT + 99 others); Fri, 2 Sep 2022 08:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235679AbiIBMCU (ORCPT ); Fri, 2 Sep 2022 08:02:20 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98634C0B4D for ; Fri, 2 Sep 2022 05:02:18 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id c66so1649648pfc.10 for ; Fri, 02 Sep 2022 05:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=W8RjYI+n37ofAo9LBQEiCCEo6ndS1LkvyfXGybqsT9Q=; b=KJAXAw3+eV100jVcXnx/LqY4g085qYcLfMEFb+CqK4NNPBI9F8q01WkRiTpC9xcqhF /4FkKnilu36QUVvPSMq5xoJPqh+oM/ajx5O1Ooz3frF0it9D7UMt8os//kh3KVKuZVb/ DPPYiXpugkbyENhGTY+/WPxqKyt1jcv2zujzHIJxdB0ew1X0zrJZfMTGT15i+87M0po6 0/QMZTGU+ePDJ2R+Ec9/I+/IE6Qsct4tdfUfCSODRxCfpDSAWo9ais93dWCx9G+uqlln 0sE9qiRD9Lz9bZ0YZbv1M1UDvvLW735W+u2JopGKR2Y65g0jVSPYyBMRqlC2d3FYstWU 49Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=W8RjYI+n37ofAo9LBQEiCCEo6ndS1LkvyfXGybqsT9Q=; b=GFH05FlccnKen59bGxBUh3Kg2iCvEBacKg7VP9MgeSLBYon9PoYNSaUz9BHHKFw4Bk khWGoc7+pEaT+RXEGVIx9IStYY3cxodIW8EptKDLGU40/RWHdtFPQYlUMQAUy46SAXef NbNGJ1nrZJWWw64h4Jsbe11u2KhuL/OgFqzAgJJiBg01iFi8ygEOc+MNw7ckCpHpYzo7 KTZaVxkuYNgeNdaqAmXAZamAlViD3V5MDADYPzm6bLBT9vZYinXiHDnlLuWY3CVQCGMt op2Q4T1SUMty2fQ/WTtwJcVWaTlY3q/39O6lAAj9Ce9tznjZO0Y8v6phk9we5c//WUrI Nv/Q== X-Gm-Message-State: ACgBeo0fdSkQkTk78Aeiz3PJ8UQxta2E3MzaCuhGOOTh5wYbgngYwDPz OkC1un0f/LHPdU1WyZcSizIZ1Q== X-Received: by 2002:aa7:92d8:0:b0:537:acbf:5e85 with SMTP id k24-20020aa792d8000000b00537acbf5e85mr35570681pfa.61.1662120138036; Fri, 02 Sep 2022 05:02:18 -0700 (PDT) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id v65-20020a622f44000000b00539aa7f0b53sm1557339pfv.104.2022.09.02.05.02.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Sep 2022 05:02:17 -0700 (PDT) Message-ID: <3a41b9fc-05f1-3f56-ecd0-70b9a2912a31@kernel.dk> Date: Fri, 2 Sep 2022 06:02:12 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [RFC PATCH 00/30] Code tagging framework and applications Content-Language: en-US To: Roman Gushchin , Kent Overstreet Cc: Yosry Ahmed , Michal Hocko , Mel Gorman , Peter Zijlstra , Suren Baghdasaryan , Andrew Morton , Vlastimil Babka , Johannes Weiner , dave@stgolabs.net, Matthew Wilcox , liam.howlett@oracle.com, void@manifault.com, juri.lelli@redhat.com, ldufour@linux.ibm.com, Peter Xu , David Hildenbrand , mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, changbin.du@intel.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, Steven Rostedt , bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, Christoph Lameter , Pekka Enberg , Joonsoo Kim , 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, Shakeel Butt , Muchun Song , arnd@arndb.de, jbaron@akamai.com, David Rientjes , minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, Linux-MM , iommu@lists.linux.dev, kasan-dev@googlegroups.com, io-uring@vger.kernel.org, linux-arch@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-modules@vger.kernel.org, Linux Kernel Mailing List References: <20220831084230.3ti3vitrzhzsu3fs@moria.home.lan> <20220831101948.f3etturccmp5ovkl@suse.de> <20220831190154.qdlsxfamans3ya5j@moria.home.lan> <20220901223720.e4gudprscjtwltif@moria.home.lan> <20220902001747.qqsv2lzkuycffuqe@moria.home.lan> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/1/22 7:04 PM, Roman Gushchin wrote: > On Thu, Sep 01, 2022 at 08:17:47PM -0400, Kent Overstreet wrote: >> On Thu, Sep 01, 2022 at 03:53:57PM -0700, Roman Gushchin wrote: >>> I'd suggest to run something like iperf on a fast hardware. And maybe some >>> io_uring stuff too. These are two places which were historically most sensitive >>> to the (kernel) memory accounting speed. >> >> I'm getting wildly inconsistent results with iperf. >> >> io_uring-echo-server and rust_echo_bench gets me: >> Benchmarking: 127.0.0.1:12345 >> 50 clients, running 512 bytes, 60 sec. >> >> Without alloc tagging: 120547 request/sec >> With: 116748 request/sec >> >> https://github.com/frevib/io_uring-echo-server >> https://github.com/haraldh/rust_echo_bench >> >> How's that look to you? Close enough? :) > > Yes, this looks good (a bit too good). > > I'm not that familiar with io_uring, Jens and Pavel should have a better idea > what and how to run (I know they've workarounded the kernel memory accounting > because of the performance in the past, this is why I suspect it might be an > issue here as well). io_uring isn't alloc+free intensive on a per request basis anymore, it would not be a good benchmark if the goal is to check for regressions in that area. -- Jens Axboe