Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4643407pxv; Tue, 29 Jun 2021 11:54:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPaf+PS9H5f4XuEnSyk+u1Lb4JIfckcmCuFRtdu0YQdstgx1512ehI9ZafnRKxQJlgu3zu X-Received: by 2002:a05:6402:748:: with SMTP id p8mr42303037edy.91.1624992894870; Tue, 29 Jun 2021 11:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624992894; cv=none; d=google.com; s=arc-20160816; b=SPIh9s5KjlDFZmU/vO03tVN184X1jg+tiwV54O4StlzZtPsgKI9lLYUZkEMBtXH+nm GWEVEuP9f8VQj/ARqWebwDhlBGe/2he/2DF1tOrlW9Vsf1d0IOFlIcd6sHdfUd6pN4wL rW7Z/QUQU59JSBqSY9oZjFrgdivGH0gtH/HiCpalmZgiedYqYlAKEmRKGFRlMXhzzEnh y7u+OZ3PNKBPijaBDpiyY3FUSIZtSJ05gc+tt3MtjhW1/iwjYHyQSor3iO99nlWKvZxN ULx3nJSWU5lDMHX5fKSX6BWRdF5QIQD4VAaXldckZLAbgO4ugdc/Lc9UVc+Pgpo3DWDd j8Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=bsoBCoBbWm9paaTgsCw2KJ7dRNoIiIvzwvpYNO6VbeE=; b=Qtc0LdjZUpTXm1L3jGr1vVYpJSqQ+lraeiLLVi1APJvYV1c84ZEtQIozC+i3Ec6tHX nzrbu+ipmmQjPD2zRMNTqa+m4ZuUzincr816avJyX/+EscCFoEqow2ZaJSJxTJCWVsaT J81YbBxtH7GonuneNZWz2Ivvq59uqUpq2ctzhTPbMp8WZRTo38zAGDVfC/hsKj/+/Bta nc2gB8MJDdSf+bg2TlRYjGAFX1B/jWDZXiddOm73Pm8t/H4EniAH3+hGlDCeOMUWRVN9 r5KluGFkR5BbMET/pHFm1khnj2T/eW7xY2PkUKgCrX/rSUr5Bz59OPQLuqs9kr7NwMwI G5sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=VUAQZxJ6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si16620408ejo.509.2021.06.29.11.54.30; Tue, 29 Jun 2021 11:54:54 -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=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=VUAQZxJ6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233976AbhF2R1A (ORCPT + 99 others); Tue, 29 Jun 2021 13:27:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232362AbhF2R05 (ORCPT ); Tue, 29 Jun 2021 13:26:57 -0400 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADC03C061766 for ; Tue, 29 Jun 2021 10:24:29 -0700 (PDT) Received: by mail-qv1-xf31.google.com with SMTP id m15so11453744qvc.9 for ; Tue, 29 Jun 2021 10:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=bsoBCoBbWm9paaTgsCw2KJ7dRNoIiIvzwvpYNO6VbeE=; b=VUAQZxJ6J2VkeoSockQ8YMVsOM/sTeZFrW+uWBlwlYejBKktw6pbRPzCgJhmV6dP9M 8uixZFw6+1DvaZfAM38IDqFRWVzAGDXbcVT5V8cUeXHiYh9dvZduGc5DilcYOKY0Aa/n CGZdutDcPz8eA9coPZQvoQNzRCxw+nP3YnQ5eR/WESQormYQfgkFSFpqlDA/XS3hOBce GpSc9Q1sY7sr11aTyCl1Z9Myhe6WszS9426tJgs4/SK2p7z/JfxtK5EtWpQ33PciGWEd D4XdhiipK4OqAtsCdQqppZY765ihVzImMbmfoH4bFoibkGnJgX52sCbdEWjVAgxlDDcr 3DTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bsoBCoBbWm9paaTgsCw2KJ7dRNoIiIvzwvpYNO6VbeE=; b=l4a5XEMRM9DHcvMSKhl9TcsSCgQh94UIeHNk6FhfUkU/DLpDi2SBExq9/ynweKOdFq WnVxw+KncoSZCbEfeu7Wmnwkv9bMgJsXkGaTY/MdnJJ0d1E7o5VkG3tREOn9QUnzwWyU gaNjFu2qHqJuZQuOE8bcfetrcAJ7s80rCaJVMNqm2+RmD+kFc6rfmYviONIXRI3W6T+O 8vDqOcLNjq5xHdwlcnzq/cYKNAohdAZOIx2DqSkqSQtMLVqTwWoWIUX9wfWIGep3JPVK c00rcJUR8MqA3bezRii/PTpouMtkhyCuPvuDPt34m8I7p0pchSDzew46qfzeXbkaxKj3 wCKg== X-Gm-Message-State: AOAM532+yiDu7opOnKoB9IrCbTNzRkuiTXZIFScOwZzTkC+vD8ARt6eE UPhZuRhMouY5VZas4q4EkBxXWg== X-Received: by 2002:ad4:4ea7:: with SMTP id ed7mr29830995qvb.1.1624987468822; Tue, 29 Jun 2021 10:24:28 -0700 (PDT) Received: from [192.168.1.45] (cpe-174-109-172-136.nc.res.rr.com. [174.109.172.136]) by smtp.gmail.com with ESMTPSA id k19sm7930456qta.90.2021.06.29.10.24.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jun 2021 10:24:28 -0700 (PDT) Subject: Re: [BUG] btrfs potential failure on 32 core LTP test (fallocate05) To: Krzysztof Kozlowski , Chris Mason , David Sterba , linux-btrfs@vger.kernel.org, Linux Kernel Mailing List , "kernel-team@lists.ubuntu.com" , "ltp@lists.linux.it" , Qu Wenruo , Filipe Manana References: From: Josef Bacik Message-ID: <124d7ead-6600-f369-7af1-a1bc27df135c@toxicpanda.com> Date: Tue, 29 Jun 2021 13:24:26 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/29/21 1:00 PM, Krzysztof Kozlowski wrote: > Dear BTRFS folks, > > I am hitting a potential regression of btrfs, visible only with > fallocate05 test from LTP (Linux Test Project) only on 32+ core Azure > instances (x86_64). > > Tested: > v5.8 (Ubuntu with our stable patches): PASS > v5.11 (Ubuntu with our stable patches): FAIL > v5.13 mainline: FAIL > > PASS means test passes on all instances > FAIL means test passes on other instance types (e.g. 4 or 16 core) but > fails on 32 and 64 core instances (did not test higher), > e.g.: Standard_F32s_v2, Standard_F64s_v2, Standard_D32s_v3, > Standard_E32s_v3 > > Reproduction steps: > git clone https://github.com/linux-test-project/ltp.git > cd ltp > ./build.sh && make install -j8 > cd ../ltp-install > sudo ./runltp -f syscalls -s fallocate05 > > Failure output: > tst_test.c:1379: TINFO: Testing on btrfs > tst_test.c:888: TINFO: Formatting /dev/loop4 with btrfs opts='' extra opts='' > tst_test.c:1311: TINFO: Timeout per run is 0h 05m 00s > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file0 size 21710183 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file1 size 8070086 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file2 size 3971177 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file3 size 36915315 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file4 size 70310993 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file5 size 4807935 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file6 size 90739786 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file7 size 76896492 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file8 size 72228649 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file9 size 36207821 > tst_fill_fs.c:32: TINFO: Creating file mntpoint/file10 size 81483962 > tst_fill_fs.c:59: TINFO: write(): ENOSPC (28) > fallocate05.c:81: TPASS: write() wrote 65536 bytes > fallocate05.c:102: TINFO: fallocate()d 0 extra blocks on full FS > fallocate05.c:114: TPASS: fallocate() on full FS > fallocate05.c:130: TPASS: fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE) > fallocate05.c:134: TFAIL: write(): ENOSPC (28) > > Test code: > https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/fallocate/fallocate05.c#L134 > > See also: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1933112 > > Other FS tests succeed on that machines/kernels. Other file systems > also pass - only btrfs fails. The issue was not bisected. Full test > log attached. > Also it looks like you're using a loop device, the instructions you gave me aren't complete enough for me to reproduce. What is the actual setup you are using? How big is your loop device? Is it a backing device? I had to do -b to get the test to even start to run, but I've got a 2tib ssd, am I supposed to be using something else? Thanks, Josef