From patchwork Tue Nov 15 02:03:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 20127 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2471946wru; Mon, 14 Nov 2022 18:09:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf6AUUj6eMHOouhtdNCPBKvJHhx8YqjBaFcpe4C/bjB+wqJx1K/wUHUhkRjwVvGGUjgR8KfP X-Received: by 2002:aa7:8c0b:0:b0:56b:f7ca:9cf9 with SMTP id c11-20020aa78c0b000000b0056bf7ca9cf9mr16708144pfd.68.1668478169939; Mon, 14 Nov 2022 18:09:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668478169; cv=none; d=google.com; s=arc-20160816; b=q95DqVfLyv8YFlor8jBnPQtnHXVpjGY5/uIqZDsP3Y0UzQNsBO9JN/Ow42igi2MfJJ KsEv6wU6c7Fa9wvj8VWONM6oZ2YLufy2I3CPNHQdmApsP2TgNpLfPYueSotjKYe7WC/A xBr2pRoUvjww1+hJ/M2kErbAHiUIErliBpT9sU9BS2ZaIMhhps/rqTotuQpJBnYpc+RD fEcIwBygHZROjKF0ornzRt5zBslOlYU3cgXSg9T12v8gBDAjk+aYfSGg6sK1cdcDKVmB qhol0DvtC0OYN8vacbTwXM3ipmKP3dYxp5MnZ/gma/i71YiuSjYso4pAoFO1KPc+YleZ /qJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vdd6wJ5NHUkCTmQNLvOrBAdkgXBRb2Cpd5/hUt+h78A=; b=aZ0k7SKMjZrhK3G4MdFVmVHsRTYTRPxWtm236GxEre1pDN8KOcUYgj9m8LCRhoBsKX HSVIU9+NPAFh3f1Z/71qZMCp0/MUBSH23KDbxHhZshTgD5Rf2pNqio0J+PP8Cw3+eEXy Kh9XisO+e9WBgI+KEfk+tXAN35u2jwFYMYMU81Idvz1bWrYgaWzIQh3EiohpBcavwBah ihqkPXnN7vSFe2jJ3j+OuC5YVYGR2KdFyhoJOrttOUhIARuYk3RG1AxO/BswtmIKWlKE Vu7M81nCzxJPyBPTbaMaCvQ/Sp+JWZpNy85RgItBz4J4mEvQUg1jsLMFEP7mKvtyeuyd /krA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fJEU7irM; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a170902d50400b00172696f35e1si10005602plg.482.2022.11.14.18.09.16; Mon, 14 Nov 2022 18:09:29 -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=fJEU7irM; 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 S232165AbiKOCDt (ORCPT + 99 others); Mon, 14 Nov 2022 21:03:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237069AbiKOCDe (ORCPT ); Mon, 14 Nov 2022 21:03:34 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B4766173 for ; Mon, 14 Nov 2022 18:03:33 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id w23so5387847ply.12 for ; Mon, 14 Nov 2022 18:03:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vdd6wJ5NHUkCTmQNLvOrBAdkgXBRb2Cpd5/hUt+h78A=; b=fJEU7irM0O2nMclKI7/J3Hkzc35+jjb7Q/dkHGzqp2E259Tx5X7e/qQnnTsSBtT9YY HXf5AKiEdiLIodtz3zkJNQPh8OAv5td8PNHwsf90RYl7YdGF6WmYDz6gl162add+miVI POA5H6UT7GlngiuPVa21uJ7Kkl8xdpVv5qhHw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vdd6wJ5NHUkCTmQNLvOrBAdkgXBRb2Cpd5/hUt+h78A=; b=UM1mMGIgk/jGLGlu93XYLRXig+OzlzOb61jOSXqgB29OBqoJhQLoCAP7+VAlG5jA73 BnXRK0GkKfchYthew+pL57HxVJpWRpOslQzvqoaRG4+mGGot96aoeVskZ1t8kRMQzayF hWKv+SDnFUxesVVRYNRM4KDhi2aMa7MvOnXtBPzewnVfJeZdJdd9qgaHUjPlDakcpBPo 4S/gbToi7Iq95bJchydVuq81jyL7aqU6ZU2O+vU7v0KjbQQJHuScEq8BkJIXbgDCy+fI 4BVKXaj6ZMtau+7FSCkgUSS/sIOVQ/e3af7/L+Y/trCE3iNPvBkZJQdNT+zl2k2l+gSF LyxA== X-Gm-Message-State: ANoB5pmrOKkXn7vmZ9ZqAsI5dMsqRCtKTgECAnFgN7/XnJfHNkt3K7xh ttExHkSJTilTDbOEhXRNOB3FvLYWb3vwJA== X-Received: by 2002:a17:903:2152:b0:188:867a:e090 with SMTP id s18-20020a170903215200b00188867ae090mr1906203ple.39.1668477812743; Mon, 14 Nov 2022 18:03:32 -0800 (PST) Received: from tigerii.tok.corp.google.com ([2401:fa00:8f:203:f1c2:342d:ba37:dca0]) by smtp.gmail.com with ESMTPSA id f15-20020a62380f000000b0056c360af4e3sm7393878pfa.9.2022.11.14.18.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 18:03:32 -0800 (PST) From: Sergey Senozhatsky To: Andrew Morton , Minchan Kim Cc: Nitin Gupta , linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: [PATCH] Docs/ABI/zram: document zram recompress sysfs knobs Date: Tue, 15 Nov 2022 11:03:14 +0900 Message-Id: <20221115020314.386235-1-senozhatsky@chromium.org> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749526165178486422?= X-GMAIL-MSGID: =?utf-8?q?1749526165178486422?= Document zram re-compression sysfs knobs. Signed-off-by: Sergey Senozhatsky Acked-by: Minchan Kim --- Documentation/ABI/testing/sysfs-block-zram | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-block-zram b/Documentation/ABI/testing/sysfs-block-zram index 14b2bf2e5105..628a00fb20a9 100644 --- a/Documentation/ABI/testing/sysfs-block-zram +++ b/Documentation/ABI/testing/sysfs-block-zram @@ -137,3 +137,17 @@ Description: The writeback_limit file is read-write and specifies the maximum amount of writeback ZRAM can do. The limit could be changed in run time. + +What: /sys/block/zram/recomp_algorithm +Date: November 2022 +Contact: Sergey Senozhatsky +Description: + The recomp_algorithm file is read-write and allows to set + or show secondary compression algorithms. + +What: /sys/block/zram/recompress +Date: November 2022 +Contact: Sergey Senozhatsky +Description: + The recompress file is write-only and triggers re-compression + with secondary compression algorithms.