From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C483C38145 for ; Fri, 2 Sep 2022 12:02:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 21CD0800D1; Fri, 2 Sep 2022 08:02:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1CB358D001B; Fri, 2 Sep 2022 08:02:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 045D2800D1; Fri, 2 Sep 2022 08:02:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id EA6A28D001B for ; Fri, 2 Sep 2022 08:02:19 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id BCAD2ABCC8 for ; Fri, 2 Sep 2022 12:02:19 +0000 (UTC) X-FDA: 79867007598.20.CC8A019 Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by imf10.hostedemail.com (Postfix) with ESMTP id 3E24DC0052 for ; Fri, 2 Sep 2022 12:02:19 +0000 (UTC) Received: by mail-pg1-f174.google.com with SMTP id s206so1791540pgs.3 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=nx1fos3Bawn/A0PEETS8568/mWpcAKAfHGbYcjfM+THIAm3wWsh0TUbyZPIK4aKEKS km6En5Lr3yEvmUIopFQbJzOd/k7f1SP7Ajep0IZbGTuyjJQwbR2Rzp7fE0k78eqnaiwx iGL9PCGZZNOZ0vd+JtbrSubZOrTRZlwOD4RkxH0IaktD2Oru2VMYhED2ki1c3DhqvTjI ofZLHdwSvOeRMOO9Nz3F9hU9YMdtxWh00mwWG/dcIrLASBeW3t0nDAD8AkJbcevQ+fDD b1xee1GCgfYJ+JiUBJd0ITsPSiIstF5e/b7VgEp0rwy0tVhOuxCRDEcj71rMl/19Ek19 qsJw== X-Gm-Message-State: ACgBeo1AFymFy/0HYNBF0101lfZ05BKrH5hsGcU+6GqBg44XZhHsrw06 kKruzwUNLccESxMPglRlQYIH/A== X-Google-Smtp-Source: AA6agR6oz8BXj0U20tJpMgDuL2EJ/favK/h81yeCR3znK+DwDUa+f211F9QgLE7hKWaq2wOql0pxmg== 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 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662120139; a=rsa-sha256; cv=none; b=lxFiu9WD75UkCmjoKNASPzuHl6pcbBkECUyvJ6UE1MpTulWvxNp//dCV8GQAlyMQchEw0y jF+szS8LMwFWmh5JCu20QKgGs4rYq6IJnddR4/JyFF39+/vpVHXvxb/fWg8TYCcpI0YAhS ls7jSsDwSJRb1eG4lZcrmKIviPNxMN4= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=KJAXAw3+; dmarc=none; spf=pass (imf10.hostedemail.com: domain of axboe@kernel.dk designates 209.85.215.174 as permitted sender) smtp.mailfrom=axboe@kernel.dk ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662120139; h=from:from:sender: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:dkim-signature; bh=W8RjYI+n37ofAo9LBQEiCCEo6ndS1LkvyfXGybqsT9Q=; b=W8konvSDOp+qBBv0v6cwxqvLgTVGwR9bObCbxl9PrXGngSET+ts/Z68xWok3JViysaywol BWdXjWJkrJXQ2BRFTqbMjEpHTRZ3rZTiscpY5Wczc74CH1hEIo7MJTMfqaAI/iezbsv0bA y01k1JNGIGxLOctiq0jQOnCAvOnQtBM= X-Stat-Signature: cyk8bntpfkqb1hmi9gwcdpoboomasmyf X-Rspamd-Queue-Id: 3E24DC0052 X-Rspam-User: Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=KJAXAw3+; dmarc=none; spf=pass (imf10.hostedemail.com: domain of axboe@kernel.dk designates 209.85.215.174 as permitted sender) smtp.mailfrom=axboe@kernel.dk X-Rspamd-Server: rspam08 X-HE-Tag: 1662120139-160868 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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