From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F8D9C19F2D for ; Tue, 9 Aug 2022 12:58:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243361AbiHIM6K (ORCPT ); Tue, 9 Aug 2022 08:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243360AbiHIM6A (ORCPT ); Tue, 9 Aug 2022 08:58:00 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B21F0186D2 for ; Tue, 9 Aug 2022 05:57:57 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id p125so7172304pfp.2 for ; Tue, 09 Aug 2022 05:57:57 -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=vV1xIkSqBLddF4U1Z3CCLD1KI2sW2FNsic63GPL2qM8=; b=nIH2rm+xA7k+7yyhm7J2VmFUTLSu6W8yIKZm4yGDdD4BAAJbdxO1WStETNXRxxRQjJ enwTn+rs1U3XsHxkUop3wvIawBfy+ojrlGXHQmHRW1MoNOj9sOpCTo9nKa3HhiDvMBQo jIVpL/bB8AJ8+zpaRxOyirSOrRLvVSRGjIrW0= 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=vV1xIkSqBLddF4U1Z3CCLD1KI2sW2FNsic63GPL2qM8=; b=SNLFuvHDwymkzhX1dssJRjcnwNRYVpIYcyq4EdK86Ek+q1CjzjXclsewU6TCBQL/T0 yP1QQB6efn+/dE6ON0XcTfOITUxpl6QpBJhWr4RKWfuB8uxDY3FBQDfll4rYGSVLKlvH mHNfcHYonZasXnC85iyggbHJVr7uU1L4S4ihx4VsuV0prVkxEp0Qxo1zDDWNDx8qQIwq B4U4dPuPQLJSW0Tpqnm8lQttuc+ssWb6CVunh8Bk6s0DIztm85E97yI+tBfNT8h3CFtb 8mGzujNyziHV065c6ltMlveL1aHJcLzCKwVoqQ3RKkcUU4I7fypt/IyoZU90LnQOjEQP Nklw== X-Gm-Message-State: ACgBeo226T7A11T38JM5ZWzukZRgFZx7C58b7yesYvNPL9DtDjG7DJ+V GZWb/3GGhJT7YDeZa6xqyoPbYw== X-Google-Smtp-Source: AA6agR5y3RFyCKJ7eiYL9wD61o8yuQ9RUH1xHtmsNBDdA0c2FunF9qhwCnW98afY/pZkxRuijkPPQA== X-Received: by 2002:a05:6a00:408e:b0:52e:7ae5:af62 with SMTP id bw14-20020a056a00408e00b0052e7ae5af62mr22972900pfb.20.1660049877273; Tue, 09 Aug 2022 05:57:57 -0700 (PDT) Received: from google.com ([240f:75:7537:3187:8d43:c739:457a:5504]) by smtp.gmail.com with ESMTPSA id u8-20020a170903124800b0016f15140e55sm10666117plh.189.2022.08.09.05.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 05:57:56 -0700 (PDT) Date: Tue, 9 Aug 2022 21:57:50 +0900 From: Sergey Senozhatsky To: Jiri Slaby Cc: Sergey Senozhatsky , 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 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> <9fd860a8-4e4f-6a95-5c3f-1b3c4a76cf51@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (22/08/09 14:45), Jiri Slaby wrote: > On 09. 08. 22, 14:35, Jiri Slaby wrote: > > But the installer is different. It just creates memory pressure, yet, > > reclaim works well and is able to find memory and go on. I would say > > atomic vs non-atomic retry in the original (pre-5.19) approach makes the > > difference. > > Sorry, I meant no-direct-reclaim (5.19) vs direct-reclaim (pre-5.19). Sure, I understood. This somehow makes me scratch my head and ask if we really want to continue using per-CPU steams. We previously (many years ago) had a list of idle compression streams, which would do compression in preemptible context and we would have only one zs_malloc handle allocation path, which would do direct reclaim (when needed)