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 141E1C433FE for ; Mon, 21 Nov 2022 08:01:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4AC156B0072; Mon, 21 Nov 2022 03:01:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 45B7C6B0073; Mon, 21 Nov 2022 03:01:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3225E6B0074; Mon, 21 Nov 2022 03:01:07 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 2494F6B0072 for ; Mon, 21 Nov 2022 03:01:07 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EACE480206 for ; Mon, 21 Nov 2022 08:01:06 +0000 (UTC) X-FDA: 80156703732.01.13BBF66 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf09.hostedemail.com (Postfix) with ESMTP id CEFF6140011 for ; Mon, 21 Nov 2022 08:01:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669017665; 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=0AQyYFfo+9gxGliawJp4LGdOeDV+4qepnwYb6KBjwmI=; b=OIJKTikzlC7Jh0SFK50q+prNKV8ajOtQkNvL+62QBxZj1PoYytVACuGQFqxbMuGGgIWh7x 3M3Mjap/KIjz4oiuTDQepMndYWSpbim20ZpsH/Wt972iRDHMOt1j+vfkv7hSAlU9ll9pLW T7R/sip4FLgXv1euoW96c2LBwiOCGhg= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-349-4yIQQU8HPMGELGBw_FPtgQ-1; Mon, 21 Nov 2022 03:01:03 -0500 X-MC-Unique: 4yIQQU8HPMGELGBw_FPtgQ-1 Received: by mail-wr1-f70.google.com with SMTP id g14-20020adfa48e000000b00241bfca9693so1923367wrb.8 for ; Mon, 21 Nov 2022 00:01:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:organization:from :content-language:references:cc:to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0AQyYFfo+9gxGliawJp4LGdOeDV+4qepnwYb6KBjwmI=; b=YmA2hGOxB6R9xoZZmQSYChznHBSCof+08f/HMWD6aeimncaxvpd959s2EJAVLtvkVD wLMn5aap4T8uImxDVYdx2TcsHpf3EASN0EGrd4AD0nAEaUCB0Jr9OlRJQy5xm1dtz3F7 YHz6Dbf56rGvz4o9Puv/JIfHaTFspVGvhZbYcF8jML2mh0EqfXJwQEqscel1I6VQXBQ9 +ghzHuK96yXYwYGmluKbHGVyLmVZ2ifTqNp3E2NCX1RxJywRF5gWR/tgRGaMK+8jYC63 fqqwPTu2jbIGL0F+DLV60/VczaWnXUvjtqmIQMnp/2O+syFRxvSXfNzgwKTRd75WuUw0 Nodw== X-Gm-Message-State: ANoB5pmIfU6RPjkUKxFXOjFROxA9OvY1Yl7KOYsfRONcoT/ONEUu1AmA 2Y9o4GobZXmbiT84z5uLMxzw0L1a9V80LkguO8pbklrrJSa3tpwKv2aPlRDswQt9pB8/oaHw1KT L6GYiIswFsGc= X-Received: by 2002:adf:eb0c:0:b0:236:6deb:4498 with SMTP id s12-20020adfeb0c000000b002366deb4498mr10407222wrn.52.1669017661962; Mon, 21 Nov 2022 00:01:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf77j1WiPf/k1EzdHh95eZGoSHc+IIaDgk6glybs/fguxmE2Lp2ljuzCpa/dLBDvV3elHKQL7A== X-Received: by 2002:adf:eb0c:0:b0:236:6deb:4498 with SMTP id s12-20020adfeb0c000000b002366deb4498mr10407175wrn.52.1669017661507; Mon, 21 Nov 2022 00:01:01 -0800 (PST) Received: from ?IPV6:2003:cb:c702:dc00:2571:c3c2:c6ea:84ef? (p200300cbc702dc002571c3c2c6ea84ef.dip0.t-ipconnect.de. [2003:cb:c702:dc00:2571:c3c2:c6ea:84ef]) by smtp.gmail.com with ESMTPSA id l24-20020a05600c1d1800b003cf878c4468sm19240074wms.5.2022.11.21.00.00.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 00:01:01 -0800 (PST) Message-ID: <7b2055f2-f5ce-be01-7c39-edcc4be6a7aa@redhat.com> Date: Mon, 21 Nov 2022 09:00:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 To: kernel test robot Cc: oe-lkp@lists.linux.dev, lkp@intel.com, Andrew Morton , Jason Gunthorpe , John Hubbard , Andrea Arcangeli , Hugh Dickins , Peter Xu , Alistair Popple , Nadav Amit , Yang Shi , Vlastimil Babka , Michal Hocko , Mike Kravetz , Andrea Parri , Will Deacon , Peter Zijlstra , "Paul E. McKenney" , Christoph von Recklinghausen , Don Dutile , linux-kernel@vger.kernel.org, linux-mm@kvack.org, ying.huang@intel.com, feng.tang@intel.com, zhengjun.xing@linux.intel.com, fengwei.yin@intel.com References: <202211211037.2b2e5e1f-yujie.liu@intel.com> From: David Hildenbrand Organization: Red Hat Subject: Re: [linus:master] [mm] 088b8aa537: vm-scalability.throughput -6.5% regression In-Reply-To: <202211211037.2b2e5e1f-yujie.liu@intel.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1669017666; a=rsa-sha256; cv=none; b=YD5EQfAQ49Rgfyyx+PhwzGA5RsAthdRL0LcGEFzOegZf23z1hXztwsbyjtwECE5vd8mLBi o5khRa5xJGLOtSYwHqBLMU/Uj9LYuQb0uy5/K3+ktCx7WRDFsQpHcHSTuV5JTANZH9jA2d Rjtm0HDcVEUdzpADQ5clsULZKG5bFL4= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=OIJKTikz; spf=pass (imf09.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1669017666; 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=0AQyYFfo+9gxGliawJp4LGdOeDV+4qepnwYb6KBjwmI=; b=6udxf7agdmp1KpuOJGa+U+T/uSFGvWQJVw7leXQKN1fwBmzGtxpeXMjDTNfycxCqEE/Hn3 SPXav7NevsHarj7fHsCHClzA9BByaylzKxVBw01MvMmHQarYGxyEtyyJuKWeyAP1/V4VOV NvCb9a0qmAf57ojr+hE753wqLFnTji0= X-Rspam-User: X-Stat-Signature: wewmktz6zdnjwd6x334ax3xq57poj4bt X-Rspamd-Queue-Id: CEFF6140011 Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=OIJKTikz; spf=pass (imf09.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspamd-Server: rspam07 X-HE-Tag: 1669017665-997029 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 21.11.22 04:03, kernel test robot wrote: > Greeting, > > FYI, we noticed a -6.5% regression of vm-scalability.throughput due to commit: > > commit: 088b8aa537c2c767765f1c19b555f21ffe555786 ("mm: fix PageAnonExclusive clearing racing with concurrent RCU GUP-fast") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > in testcase: vm-scalability > on test machine: 88 threads 2 sockets Intel(R) Xeon(R) Gold 6238M CPU @ 2.10GHz (Cascade Lake) with 128G memory > with following parameters: > > thp_enabled: never > thp_defrag: never > nr_task: 1 > nr_pmem: 2 > priority: 1 > test: swap-w-seq > cpufreq_governor: performance > > test-description: The motivation behind this suite is to exercise functions and regions of the mm/ of the Linux kernel which are of interest to us. > test-url: https://git.kernel.org/cgit/linux/kernel/git/wfg/vm-scalability.git/ > Yes, page_try_share_anon_rmap() might now be a bit more expensive now, turning try_to_unmap_one() a bit more expensive. However, that patch also changes the unconditional TLB flush into a conditional TLB flush, so results might vary heavily between machines/architectures. smp_mb__after_atomic() is a NOP on x86, so the smp_mb() before the page_maybe_dma_pinned() check would have to be responsible. While there might certainly be ways for optimizing that further (e.g., if the ptep_get_and_clear() already implies a smp_mb()), the facts that: (1) It's a swap micro-benchmark (2) We have 3% stddev Don't make me get active now ;) -- Thanks, David / dhildenb