Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1473680rwb; Thu, 10 Nov 2022 17:09:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf4rqUj8b2407mMFAaJWcMix9n+JEyPGoj0RoZHI3rf7ZfkzNIN29WVsRG0Cd8wdvh7mLxhV X-Received: by 2002:a17:906:4dcd:b0:7ae:4f8f:36c with SMTP id f13-20020a1709064dcd00b007ae4f8f036cmr169900ejw.137.1668128970502; Thu, 10 Nov 2022 17:09:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668128970; cv=none; d=google.com; s=arc-20160816; b=x/dPF8lKGrG2BieprwV///3YSGSbUNduHb2Pf/wSOBKq1cblHA8l1TFmaJ0Y53UebP CYnRH3lejCypE+DlPIN1WRF+6v14TYSiexFHHz/clyXAHe/qoLiiqsS3VSiUYp40m/00 X92kFIkM4xsLqEVoObChiR/XSJ9UUz1DTWmk4NxPqA+4dx9LJC/cX/+ehrRfJI216GYA H0m+FRpgmrvrjZ+/vLTYJKhxUv1+CRC9Ftxxb7htqoyct1gRgsmxXTgMGBp57BYOD3bu XCl7VzlNNC+QQD3Umco4qXTg7C0qAqXcJoLbBRkhWVQfAdaoN4TSKMLJYwDINVQMGvCO SQdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/gUNRy1qZIXrqUZUL7883/f/GJegibYfXZQZVngW38U=; b=EftuPOujOoNOnv+IskWqpJyph8sCeUrkedgncWhLLQ3QDBeg+Oo6WeU/Fz/bMuSRjE waxgi6V2mZw602GlttToV6T25dgRo7CRH7XlwJJPSGiWXbxpxcOrSDl4NOel/fGvJT15 9spp9gLeruIxFV9wsIl/oqh2JBn0THydPF9f93+FnDC0Gud6RFX4n8EZUvGnbOoxY5Ab RiFE06IdtkbeeYA9HduaHBNStIs5noe1TyR/jxYShxRN6HxVCrOpOOFpYEeksKj2CMQ1 7ho9NbpUT/RPZ9sQ+DmbqX2o1Vxw1pLdIOyIpv2hh3bb1AvC0305E0NqMmQ6jSna7pzp yQzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VWZwrH2W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji18-20020a170907981200b007adcc8fb7a0si747011ejc.399.2022.11.10.17.09.07; Thu, 10 Nov 2022 17:09:30 -0800 (PST) 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=@chromium.org header.s=google header.b=VWZwrH2W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231753AbiKKAsm (ORCPT + 92 others); Thu, 10 Nov 2022 19:48:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230208AbiKKAsi (ORCPT ); Thu, 10 Nov 2022 19:48:38 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8E0B1E725 for ; Thu, 10 Nov 2022 16:48:37 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id i3so3531013pfc.11 for ; Thu, 10 Nov 2022 16:48:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/gUNRy1qZIXrqUZUL7883/f/GJegibYfXZQZVngW38U=; b=VWZwrH2WTLZH7q/x1ZgpdvYSrGqwsN5f7i9ypcQ7UreI7sa/e03yNK6qv9VxqDlXP8 i04ZhlEljAEqFDY6vjaYs/QXE3J3167rQ2D69YQqoO8AcyVoep415lPw40kShPC8NBdV 9bzPkkL603xzDjwINJOebgWujA4I8bQIIWYOA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/gUNRy1qZIXrqUZUL7883/f/GJegibYfXZQZVngW38U=; b=qCPwe1hT3uzgFutGN+IwljCbKlb4Cf790Z+XKmRuqLzIwHtfQBGC2TuBz3Se6dTRYw sUeWYfgztIvRLaEjVwaU2k+nHDsJLQYOOKeqCSuv5/CaLQFTkeosOpYS5S+3OUpgVqRh zuz6DXBaFuQ1H89hHrPJ+0+tW3rejNzZbSzwf+VqHW8JCZVu8p8vwkyV5hKNy+GBCH+y 9EAHkNpXPccbdIYkY+zq/Z23lGVc3KNa+JwDwbHqF95wgMz7Nj+busw/gp/KNxeVmLae 4pLPgIUmMh1ujK0brNArO1jTqSo+FuJ5o/sQcTNRVofh7sj89rQksoXtWLDmflCJk6tb fvdA== X-Gm-Message-State: ACrzQf0WzEFepZqxoItlawlHdDKXcf0q6TYXoLb4Bb99cMHXIX/+IZqX xQ2Mpt9szfUBzCGs/IzhzyVR9Q== X-Received: by 2002:a63:fc14:0:b0:43c:2e57:97df with SMTP id j20-20020a63fc14000000b0043c2e5797dfmr3852168pgi.189.1668127717205; Thu, 10 Nov 2022 16:48:37 -0800 (PST) Received: from google.com ([240f:75:7537:3187:8d55:c60d:579d:741c]) by smtp.gmail.com with ESMTPSA id g6-20020a632006000000b004388ba7e5a9sm221005pgg.49.2022.11.10.16.48.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 16:48:36 -0800 (PST) Date: Fri, 11 Nov 2022 09:48:31 +0900 From: Sergey Senozhatsky To: Martin Doucha Cc: Minchan Kim , Petr Vorel , ltp@lists.linux.it, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Nitin Gupta , Sergey Senozhatsky , Jens Axboe , OGAWA Hirofumi , Yang Xu Subject: Re: [PATCH 0/1] Possible bug in zram on ppc64le on vfat Message-ID: References: <20221107191136.18048-1-pvorel@suse.cz> <3ac740c0-954b-5e68-b413-0adc7bc5a2b5@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ac740c0-954b-5e68-b413-0adc7bc5a2b5@suse.cz> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 (22/11/10 15:29), Martin Doucha wrote: > New version of LTP test zram01 found a sysfile issue with zram devices > mounted using VFAT filesystem. When when all available space is filled, e.g. > by `dd if=/dev/zero of=/mnt/zram0/file`, the corresponding sysfile > /sys/block/zram0/mm_stat will report that the compressed data size on the > device is 0 and total memory usage is also 0. LTP test zram01 uses these > values to calculate compression ratio, which results in division by zero. > > The issue is specific to PPC64LE architecture and the VFAT filesystem. No > other tested filesystem has this issue and I could not reproduce it on other > archs (s390 not tested). The issue appears randomly about every 3 test runs > on SLE-15SP2 and 15SP3 (kernel 5.3). It appears less frequently on SLE-12SP5 > (kernel 4.12). Other SLE version were not tested with the new test version > yet. The previous version of the test did not check the VFAT filesystem on > zram devices. Whoooaa... > I've tried to debug the issue and collected some interesting data (all > values come from zram device with 25M size limit and zstd compression > algorithm): > - mm_stat values are correct after mkfs.vfat: > 65536 220 65536 26214400 65536 0 0 0 > > - mm_stat values stay correct after mount: > 65536 220 65536 26214400 65536 0 0 0 > > - the bug is triggered by filling the filesystem to capacity (using dd): > 4194304 0 0 26214400 327680 64 0 0 Can you try using /dev/urandom for dd, not /dev/zero? Do you still see zeroes in sysfs output or some random values?