Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3207446pxk; Tue, 15 Sep 2020 12:58:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/QiRkTfhNlkcOlEe8YuI+5kZclCoElfwniplvAWDavSyo3J9jr7huvFtB4cmeOTe0PZd7 X-Received: by 2002:a17:906:8399:: with SMTP id p25mr21561584ejx.243.1600199907578; Tue, 15 Sep 2020 12:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600199907; cv=none; d=google.com; s=arc-20160816; b=g0fe2XR6RA6OF+WDDouTdBP8+Vc/hanXco9EwV3y0rdOe6UTquoli1uJqG0DJy5NIv 6wTeT2whvu4NHIgIT/JUp+jCq9MZKtpF6+jhl99I5eSCgT1mQBw9BG1ETNzcsR/dAQtt c+V1caiyAVE6WlnQOff+e/GKQHQQ0FaGREHMpqAdnz5IcJUve2xdkk2zYwUVLGQ8/0Cp x/5CgKpgXpeOukFXkF9xnGDeJE4luEUW1yKvpG2h/ZfonhdbB1tbstMaSfbnAFGaU/00 l/aZirKR3WVbz38FD4lJLQdIAOCUATGhbX+QGAA75otkiV9Nsd+4OkSrAKSyIVfnfFrH 9IRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=GpAjogX5KHpPYudErdDqBFNqQR1HiYdRO79ByOxK/1M=; b=HIDs9+nrkIAca08Ir4E+vDx+g5GSbeRwN1pSXeTMUog0O7QIMI0dAf9ho6ou+MmZvK AGTdyc6wnBBDmfxlPsgpBQCf0zn+lkNPAEnL5CQiixx+CpYPkv0Zz/RrIWTLFQn+gjJw s4/1xNnhuhGCjUrCae+cvObIOKKS5YnZfo2iH/WxnRxbRzjHdL27uB+AWxEVJD61jXgK PuWR93hLRGALXZ8JMkYjiv5fBNmiYuYiYIQrjRZo0a1TixGwO+e+1NNQ017amoQA09vO 4VpIb/WgelPir8LgI5JkTYdAxpw9DHbTYRc2UE2c3/qTJ7AVvgnqgNxefOxSt6g8/A0Y e7vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares-net.20150623.gappssmtp.com header.s=20150623 header.b=YZ1qJeWD; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 x23si11267305edi.291.2020.09.15.12.57.59; Tue, 15 Sep 2020 12:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@tessares-net.20150623.gappssmtp.com header.s=20150623 header.b=YZ1qJeWD; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727737AbgIOT5Q (ORCPT + 99 others); Tue, 15 Sep 2020 15:57:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727825AbgIOT4q (ORCPT ); Tue, 15 Sep 2020 15:56:46 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16C79C061788 for ; Tue, 15 Sep 2020 12:56:46 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id e23so6822802eja.3 for ; Tue, 15 Sep 2020 12:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GpAjogX5KHpPYudErdDqBFNqQR1HiYdRO79ByOxK/1M=; b=YZ1qJeWD42At/4TPPtDp1NiAXhBuWITqr/9SfJi5gJ/aGGCrzamXIsOlxmqXCL7m5+ IMDBGZeXSOP3Zr+fc0Eqa5VYV460KI/Lrt5BcRkCtkLLY1iugXf/E4yk85Gr649FVuyW BHSQ8ENiyk9US/p7BCZTf27LmX9B7Ed4hbnoZVBrWCfYVNbvF7nDO9Xx3cK5Eg2zuffg p7IHCOzxxGtocsXOX84JU7k5w1p9UrqH9F/1FjbHuYaTlLqW8HJ94zrw6FL9FIhTE6u7 jZ22SQZpEPLKVHx8ZHwryuZxQB1NTc4s5+2Q0ZT7W/4bsGFDUJmNaIMaqcKHwXm3WaKU k0ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GpAjogX5KHpPYudErdDqBFNqQR1HiYdRO79ByOxK/1M=; b=oaBnWptgXOmleXFP/xY2ep1fQeMyw2zfeIE1PUwVYmRij4wUHKW6iK6pdqZFDwuVHP 7ImCPouBcqczcHIn8aH0+CPX+VUdPzsSvqnKTsmHfYUFHPOBuzLCCczXbLRvHALhc/Xs QuZU6T57i3LIInrQ7X29oyGF+eQz+kGAgrFYcBC/4/wQpBNAnPuyfmvRcpPXmVqLDVWx FVZJe52ShhpKBLZZscE5mU79KCcjue/u+5JVBHK0PFXQHVZiS2u7Cx3eias0uDSFsX0A 7EawuOZzGyQpr4BEPDHKcX092z6FfY9b3cf0u5X2/i1QGGBHLnWSWIZ8JR8kYEbQ3Uza TEPQ== X-Gm-Message-State: AOAM533ZDqPO0zS/QWtl5awm7+67Y45tG0JlH5iQq3ys/EvyOmZVXynQ tydpAcO86l6T/grK0JfA49FdTA== X-Received: by 2002:a17:907:2115:: with SMTP id qn21mr21463544ejb.278.1600199803404; Tue, 15 Sep 2020 12:56:43 -0700 (PDT) Received: from tsr-lap-08.nix.tessares.net ([2a02:578:85b0:e00:ec32:668e:7a20:c1cd]) by smtp.gmail.com with ESMTPSA id by24sm11059782ejc.100.2020.09.15.12.56.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Sep 2020 12:56:42 -0700 (PDT) Subject: Re: Kernel Benchmarking To: Linus Torvalds Cc: Michael Larabel , Matthew Wilcox , Amir Goldstein , Ted Ts'o , Andreas Dilger , Ext4 Developers List , Jan Kara , linux-fsdevel References: <0daf6ae6-422c-dd46-f85a-e83f6e1d1113@MichaelLarabel.com> <20200912143704.GB6583@casper.infradead.org> <658ae026-32d9-0a25-5a59-9c510d6898d5@MichaelLarabel.com> <9550725a-2d3f-fa35-1410-cae912e128b9@tessares.net> From: Matthieu Baerts Message-ID: <37989469-f88c-199b-d779-ed41bc65fe56@tessares.net> Date: Tue, 15 Sep 2020 21:56:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 15/09/2020 21:32, Linus Torvalds wrote:> > Was that an actual UP kernel? It might be good to try that too, just > to see if it could be an SMP race in the page locking code. I am sorry, I am not sure how to verify this. I guess it was one processor because I removed "-smp 2" option from qemu. So I guess it switched to a uniprocessor mode. Also, when I did the test and to make sure I was using only one CPU, I also printed the output of /proc/cpuinfo: + cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 23 model : 1 model name : AMD EPYC 7401P 24-Core Processor stepping : 2 microcode : 0x1000065 cpu MHz : 2000.000 cache size : 512 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ssbd ibpb vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 virt_ssbd arat npt nrip_save arch_capabilities bugs : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass bogomips : 4000.00 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: Do you want me to try another qemu config? Sorry, it is getting late for me but I also forgot to mention earlier that with 1 CPU and your new sysctl set to 1, it didn't reproduce my issue for 6 executions. > After all, one such theoretical race was one reason I started the rewrite. And that's a good thing, thank you! :) Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net