Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp673299lqp; Sat, 13 Apr 2024 14:15:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxCXxM3lpAYVS5bxUKSaspCbHvJFXMPNUttKizP0ZcmDkvi6tGPDg8tbj+hn+1i+mUTOfFZvO8NblXad75H4E0W9P8WTMGiKXm2PXnSg== X-Google-Smtp-Source: AGHT+IFZtKvYvQJ9nSdYkfo7yijR9OwOuyai6dYZ5wXwTsFVM+hD63yZUY/Omr5kVTqcxT3NOBCU X-Received: by 2002:a05:6a00:986:b0:6ed:1c7:8c61 with SMTP id u6-20020a056a00098600b006ed01c78c61mr8652545pfg.12.1713042912779; Sat, 13 Apr 2024 14:15:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713042912; cv=pass; d=google.com; s=arc-20160816; b=ZqX497oocEWDIEhw6N0A7KZc3+ooRP2xMoD6BE7nYqqN4HAG0/cNsq4J+jevINsc1d h8GfVMjYQribyT50JPBQULTh5sZrZAc/Mw1weWdFrZc8vhKlsWimOKWonzLM1whbvlYc 7ppThVX2q/mC4gAWx4QSGt0Wk03W8CtPnTSe+TiIq9gNz5o5+MvmuZOgwgLDeZmkcWt2 RD2/H1k4rgE9fBAoQN3odJS1V4Aho++spuNZOqbzCRjSNIGkxfimVh4UbOrcD08+oeVt 56GndrOvapPa1VSNSGGcAxqQLYnjml9FlOD7YGDBNDP4WrLbL9DM1yeGZ45QC/HAGDlM Z3NQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:disposition-notification-to :autocrypt:from:references:cc:to:content-language:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id; bh=QkYl8sOuS5TbzoiwFY3N6fRBDOmCwOGgkhqME+3IL9I=; fh=3SBgv9BHcsf+bAvYUYD2bEWzw3fqtbOr+kbT/HS6lLU=; b=FeMR4sDm1FaUp+P8y9LQK6ufj37a8TlaO9lveaZOip7ruqsvHCaNSanOUBegX/jxKh e/oSzcv+qgntS353UiZGt5U96sQra8vLxryEXRz6m7tg3SO+EaRuihpNEmeRtzM0w+OW ZvJu7FJQGVGWdEQt5XbagMJR0dSLgYmCU24s1YX9NdD645YhWocv09RjiADp5IautczQ i95a+8nt30/nUrL2LHoRh91MJBI+0p6ZNcoro1dONzXnD/PKlti24z7be5b26FRA/qNo h2RpJvPbo91ldquGsnWNxBbTHEPp/6FlrdEG0pLlw4naSxEis+ft3VFs56zWzSM7hYMZ 0B0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=maciej.szmigiero.name); spf=pass (google.com: domain of linux-kernel+bounces-143879-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143879-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h29-20020a63531d000000b005dc8a59e303si5219069pgb.111.2024.04.13.14.15.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 14:15:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143879-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=maciej.szmigiero.name); spf=pass (google.com: domain of linux-kernel+bounces-143879-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143879-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9536AB2161B for ; Sat, 13 Apr 2024 21:14:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8ED5455C33; Sat, 13 Apr 2024 21:14:43 +0000 (UTC) Received: from vps-vb.mhejs.net (vps-vb.mhejs.net [37.28.154.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D19081758B for ; Sat, 13 Apr 2024 21:14:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.28.154.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713042883; cv=none; b=lbI6a/WIPQHe1ULEDUMnoZmwD5NR2ijEToq5lp2igclObib1Yt1CLbGh1FURF1WjK3A4fNoSKnWNxSKOCd+X09az0YI+lhPUsaleQCUlqK3rT5RFC6JG4hfnapZVeHnR5CiWUuSPsuERnGNNiFSjTfgvVVbng5TuqoanllQhMGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713042883; c=relaxed/simple; bh=WI1D0EgfT/Dryby2arnjT2NXIwRrj9j7zAbRNmmROKU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FZjlE56vhri0TWxheixkd/XAa8ViS6R1MmKcQJjKOBJFHlwrc5W5+R2eFHLoBQ144rOmzFYaDmq8Y7BiQmwsaI7j9oXdLxyHvZNwuN+WmdrEgHpZMSY5i9kYgszvc3DUVObQRkMvcK6WVGOJgK9kbk98UZotiJm4vXykIpenQa8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name; spf=pass smtp.mailfrom=maciej.szmigiero.name; arc=none smtp.client-ip=37.28.154.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=maciej.szmigiero.name Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rvkQf-0007CL-KT; Sat, 13 Apr 2024 22:56:53 +0200 Message-ID: Date: Sat, 13 Apr 2024 22:56:47 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 4/4] mm: zswap: remove same_filled module params Content-Language: en-US, pl-PL To: Yosry Ahmed Cc: Johannes Weiner , Andrew Morton , Nhat Pham , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20240413022407.785696-1-yosryahmed@google.com> <20240413022407.785696-5-yosryahmed@google.com> From: "Maciej S. Szmigiero" Autocrypt: addr=mail@maciej.szmigiero.name; keydata= xsFNBFpGusUBEADXUMM2t7y9sHhI79+2QUnDdpauIBjZDukPZArwD+sDlx5P+jxaZ13XjUQc 6oJdk+jpvKiyzlbKqlDtw/Y2Ob24tg1g/zvkHn8AVUwX+ZWWewSZ0vcwp7u/LvA+w2nJbIL1 N0/QUUdmxfkWTHhNqgkNX5hEmYqhwUPozFR0zblfD/6+XFR7VM9yT0fZPLqYLNOmGfqAXlxY m8nWmi+lxkd/PYqQQwOq6GQwxjRFEvSc09m/YPYo9hxh7a6s8hAP88YOf2PD8oBB1r5E7KGb Fv10Qss4CU/3zaiyRTExWwOJnTQdzSbtnM3S8/ZO/sL0FY/b4VLtlZzERAraxHdnPn8GgxYk oPtAqoyf52RkCabL9dsXPWYQjkwG8WEUPScHDy8Uoo6imQujshG23A99iPuXcWc/5ld9mIo/ Ee7kN50MOXwS4vCJSv0cMkVhh77CmGUv5++E/rPcbXPLT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urU86/4sxjIbyhqL6ZiTzuZAmB0RICOIGilm5x03ESkDztiuCtQL2u xNT833IQSNqyuEnxG9/M82yYa+9ClBiRKM2JyvgnBEbiWA15rAQkOqZGJfFJ3bmTFePx4R/I ZVehUxCRY5IS1FLe16tymf9lCASrPXnkO2+hkHpBCwt75wnccS3DwtIGqwagVVmciCxAFg9E WZ4dI5B0IUziKtBxgwJG4xY5rp7WbzywjCeaaKubtcLQ9bSBkkK4U8Fu58g6Hg== Disposition-Notification-To: "Maciej S. Szmigiero" In-Reply-To: <20240413022407.785696-5-yosryahmed@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 13.04.2024 04:24, Yosry Ahmed wrote: > These knobs offer more fine-grained control to userspace than needed and > directly expose/influence kernel implementation; remove them. > > For disabling same_filled handling, there is no logical reason to refuse > storing same-filled pages more efficiently and opt for compression. > Scanning pages for patterns may be an argument, but the page contents > will be read into the CPU cache anyway during compression. Also, > removing the same_filled handling code does not move the needle > significantly in terms of performance anyway [1]. > > For disabling non_same_filled handling, it was added when the compressed > pages in zswap were not being properly charged to memcgs, as workloads > could escape the accounting with compression [2]. This is no longer the > case after commit f4840ccfca25 ("zswap: memcg accounting"), and using > zswap without compression does not make much sense. > > [1]https://lore.kernel.org/lkml/CAJD7tkaySFP2hBQw4pnZHJJwe3bMdjJ1t9VC2VJd=khn1_TXvA@mail.gmail.com/ > [2]https://lore.kernel.org/lkml/19d5cdee-2868-41bd-83d5-6da75d72e940@maciej.szmigiero.name/ > > Cc: "Maciej S. Szmigiero" > Signed-off-by: Yosry Ahmed > Acked-by: Johannes Weiner > Reviewed-by: Nhat Pham > Reviewed-by: Chengming Zhou > --- I think you need to update zswap kernel docs, too. Thanks, Maciej