Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5953221rwb; Tue, 22 Nov 2022 07:04:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zcLCNPU9OUQG9Gwa6RWL1YLzORbOmzKBOMjVIf5sIGlw7iNMGzE/yj2hi4GFkw0uwwRj4 X-Received: by 2002:a17:906:4dc7:b0:76c:42b4:dea4 with SMTP id f7-20020a1709064dc700b0076c42b4dea4mr19666037ejw.515.1669129439699; Tue, 22 Nov 2022 07:03:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669129439; cv=none; d=google.com; s=arc-20160816; b=0+N1BLIC8wKVyG3BznmuLxXJlIVsgIDRF15ShdMzQ6veGex90NFdtafmyo1fowk7If e1s33t4ejzj8tXv9tqKJVgF8huKyAa6sWcNRgSoY8L7zNRH7LZVeME8sW30ptEBFHgWo 8TCyNnNJy73x4ICW9wOi6Rd+QdEfvQ9cqk3L4+QYz60Hu9N6AmN+SxdYKfpW6dj2lMs0 y5OflZZcN1zCsOTw11oryE6lc69lbao1oVcVyWuHtrhVBm5XWZeDiWK/7FfmZt0eFAcb 0/IFwUbySSWrJymAwxhR9RSQXrGSwz3r9DvZdMk8JMEYyHK4lQvTX3YI5Acz4hRYb+WY K1Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:content-language:references:cc:to:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature; bh=+loFO6tN5YXsk0bWjK2r+zKhS9ssoaTjODd0fLpHxXw=; b=b41rsbKy2YYhQKPLeq12m6kyXx1/auxzkBqDFB3380HFCKKFXufdkQ82FYP2JV/ssF jyp7ZxplvYLqyTPq/VgOnueQtVio/MoDXQ9tU7gO6Z8jZw2ls2NEZqKItW4/sChl0uXY dzgfgediPThS1/nkMQYVyRWwV0/J3nIddkSf1+1wpAFbLakP6qqZ6Ore5umferq7xDH3 DeKUxqzXbnd7huTJrOebrd07TIMzLM5LJd7G9IsvqUA16tyXwJpV+Sqyl4rDMmC3pySw MbMR1XqhIiMaUyV8Brw/hZqaGb6bRNlvqUXn5wNzC9j2f14QE3se/IzoPWO9lovWr4VD vbXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=sfmdqwbL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=y42N2ZaN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a0564020e8d00b0046751bddcf0si5677397eda.425.2022.11.22.07.03.29; Tue, 22 Nov 2022 07:03:59 -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=@suse.cz header.s=susede2_rsa header.b=sfmdqwbL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=y42N2ZaN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234181AbiKVO7L (ORCPT + 90 others); Tue, 22 Nov 2022 09:59:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234144AbiKVO6v (ORCPT ); Tue, 22 Nov 2022 09:58:51 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0BFF6EB6C; Tue, 22 Nov 2022 06:56:26 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 8ACF91F85D; Tue, 22 Nov 2022 14:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1669128985; h=from:from:reply-to: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=+loFO6tN5YXsk0bWjK2r+zKhS9ssoaTjODd0fLpHxXw=; b=sfmdqwbLKiTiB7Qi4AyDhjDIvCEMbXR1ZfivjEs/BqcOHbuhw+kprIf2xHCaCTwObQH8a5 CKtGZ10w9JYjpD8IToot/jXIPHYlpgW+5ZS0wbEgEuQpU+1AM+/uz+jrOhnvYaznSjFawR lulkdeUJ9jy+oIMCVvY3OEkd0qOvieo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1669128985; h=from:from:reply-to: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=+loFO6tN5YXsk0bWjK2r+zKhS9ssoaTjODd0fLpHxXw=; b=y42N2ZaNchVaRcELYmUf0n2LuOWXFda2EadO5JNkazxeFEBiX8E/BXEGx+KtlEgs/tzmrX 8ds0XUjamiBkMUDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5594413B01; Tue, 22 Nov 2022 14:56:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id e3sDFBnjfGMdBAAAMHmgww (envelope-from ); Tue, 22 Nov 2022 14:56:25 +0000 Message-ID: <9489dd1c-012c-8b5d-b670-a27213da287a@suse.cz> Date: Tue, 22 Nov 2022 15:56:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 To: Sergey Senozhatsky 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 , Jens Axboe , OGAWA Hirofumi , Yang Xu References: <20221107191136.18048-1-pvorel@suse.cz> <3ac740c0-954b-5e68-b413-0adc7bc5a2b5@suse.cz> Content-Language: en-US From: Martin Doucha Subject: Re: [PATCH 0/1] Possible bug in zram on ppc64le on vfat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL 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 11. 11. 22 1:48, Sergey Senozhatsky wrote: > On (22/11/10 15:29), Martin Doucha wrote: >> 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? After 50 test runs on a kernel where the issue is confirmed, I could not reproduce the failure while filling the device from /dev/urandom instead of /dev/zero. The test reported compression ratio around 1.8-2.5 which means the memory usage reported by mm_stat was 10-13MB. Note that I had to disable the other filesystems in the test because some of them kept failing with compression ratio <1. -- Martin Doucha mdoucha@suse.cz QA Engineer for Software Maintenance SUSE LINUX, s.r.o. CORSO IIa Krizikova 148/34 186 00 Prague 8 Czech Republic