Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5689480rwb; Tue, 9 Aug 2022 02:21:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ywyXhyL1Rs+OSvtz6S/YbcnhANTxeXi/gb+lsQ4m1liGd12N82eXN1l1JpyCM2T65kyQH X-Received: by 2002:a17:906:93f7:b0:730:da74:3454 with SMTP id yl23-20020a17090693f700b00730da743454mr15488503ejb.331.1660036901595; Tue, 09 Aug 2022 02:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660036901; cv=none; d=google.com; s=arc-20160816; b=Bm+0shJMO9hFORyX79sF/yDKToTwp7xt6jlJbw2NT03O0tOhoOJDRa7P0ja2pr0fAF Z/Snpc40MnSadFhmXjnPgcM/+BdtJ9gUgD1mGzSTZ7557P/IM1dceB/1/KElaEmn5RmY lM0QrKGPqB4m+4HFN/KDxuFZaw95ms5byxsV990nuUjUMI6udMyu4S8ySjXBc+s1Jujl pbjOMiguVPXfUjiiLZK0jjjyz5O6EWWrvCUER4jWtdeaCNs1a2+0EFXOFuiBuHr/qnTz SHsIA29UQcFhwfrHOUrRHvGEgVOECLR5IMMyp6FNqLipsjbf/U4WTenh0/C0it/d+WTB 0XHg== 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=TM3rKrhS4LLyfHFxti8/DhHThj14otn1DdV5zS7QdXY=; b=x9RuS++ACyl1Ky3UR1B0euRLpRV4Z/F8ZUMYKv5cD3M+POyS1Ucm7XXRSmfTdQq95X GR7rgel4DBg3wd8ZPbiiRDK1omwIP1gMrQP+TQKm2Nb164uKJnLfgUxjxlEj3TyPXsTr ff/UteyI2BtS6aRH17y6LiMBqwS5FCU3c8B1iqxiUSKbUS4NkqGS68wymMQOlhjqS5ne uEafoeyLBwqvBLx+nRvcRm01aDXAZzp8qBj1VRNmzkXcjEBGWHEmTEFwiZY5NiIwnM5I 1ElBXd/893/RV1uMIGN7vkMhwkXUuBByiDx6waaZxH89CZbEgHa8mOzMCYbQBhobkh+D IE3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="LMf9U/a9"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 qf36-20020a1709077f2400b0072b0303a11asi1569688ejc.955.2022.08.09.02.21.15; Tue, 09 Aug 2022 02:21:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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="LMf9U/a9"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S239078AbiHIJUQ (ORCPT + 99 others); Tue, 9 Aug 2022 05:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238154AbiHIJUM (ORCPT ); Tue, 9 Aug 2022 05:20:12 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17999B6 for ; Tue, 9 Aug 2022 02:20:11 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id f192so10258929pfa.9 for ; Tue, 09 Aug 2022 02:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TM3rKrhS4LLyfHFxti8/DhHThj14otn1DdV5zS7QdXY=; b=LMf9U/a9ziNb7cbG6L1+g7+mtSBdhW9E2JV7/hKmNuCCe+Ot1DG6AGZtI3QWQcapRv 0LcWeIq0Mnspqh9Pip0mgmOm88hYPc/IUnBxXGqM1+shEHn8hjQK48LMoXiwewIIAKLs kT9OxstiYAo2cVUNygqvmr4fRrZBT5YQxlqbw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TM3rKrhS4LLyfHFxti8/DhHThj14otn1DdV5zS7QdXY=; b=7rNFU7+aBpoIZ8BB90Zt9Th3ZiMr1exx9grxkggB6DfSIUSzP/VyRlM1ZkPgjwxd3e s2nSVwOE2GMmv87m+B2ZfYZ56c+qsgdSw2dtmgz3tsMyeAy7V9/RjzxWsahTDSWaFGJT TA6RzsF4978LFl/Sa5jy960DrrFgY9rH1+1k56qWgx8THQw+edX4QzUneO8i090V8Lv/ IVtutNSxjp74WUf4wXzDz5yL4hWr+hfbrTEOV1RHLb8YWNiACfNkbTZg4QB5mSiaOh9o pT6YLK1eGQRmSLUS12NvQqsthHM15RJSxkDdP5oSkJ5qeU6Hi2cNMbEedzkHIdzhyG9x YpWg== X-Gm-Message-State: ACgBeo1dDiXYpvQqsaziXMEJ/MGOknMrxSsNXpJZcvHo+Ez6XbFS3rpV xMNjZKkIzFKS5mGJByy2hvK5uBbw2k/5gA== X-Received: by 2002:a05:6a00:e85:b0:52b:5db8:f3df with SMTP id bo5-20020a056a000e8500b0052b5db8f3dfmr22266819pfb.14.1660036810624; Tue, 09 Aug 2022 02:20:10 -0700 (PDT) Received: from google.com ([240f:75:7537:3187:8d43:c739:457a:5504]) by smtp.gmail.com with ESMTPSA id w18-20020a170902e89200b0016dcbdf9492sm10364619plg.92.2022.08.09.02.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 02:20:10 -0700 (PDT) Date: Tue, 9 Aug 2022 18:20:04 +0900 From: Sergey Senozhatsky To: Jiri Slaby Cc: Linus Torvalds , Linux Kernel Mailing List , minchan@kernel.org, ngupta@vflare.org, Jan Kara , Ted Ts'o , Andreas Dilger , Ext4 Developers List , avromanov@sberdevices.ru, ddrokosov@sberdevices.ru, Sergey Senozhatsky Subject: Re: ext2/zram issue [was: Linux 5.19] Message-ID: References: <702b3187-14bf-b733-263b-20272f53105d@kernel.org> <8710b302-9415-458d-f8a2-b78cc3a96e49@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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-ext4@vger.kernel.org On (22/08/09 18:11), Sergey Senozhatsky wrote: > > > > /me needs to confirm. > > > > > > With that commit reverted, I see no more I/O errors, only oom-killer > > > messages (which is OK IMO, provided I write 1G of urandom on a machine w/ > > > 800M of RAM): > > > > Hmm... So handle allocation always succeeds in the slow path? (when we > > try to allocate it second time) > > Yeah I can see how handle re-allocation with direct reclaim can make it more > successful, but in exchange it oom-kills some user-space process, I suppose. > Is oom-kill really a good alternative though? We likely will need to revert e7be8d1dd983 given that it has some user visible changes. But, honestly, failing zram write vs oom-kill a user-space is a tough choice.