Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4609157imw; Tue, 12 Jul 2022 10:54:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ssV/HKRJHVhkoGREPJeJN2sknxM1pI3YKJKgTXNUY3ac5ALOqrIZZTpfRQu+Cjrk6akVsD X-Received: by 2002:a63:d84c:0:b0:412:6729:fb1d with SMTP id k12-20020a63d84c000000b004126729fb1dmr22162230pgj.135.1657648480200; Tue, 12 Jul 2022 10:54:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657648480; cv=none; d=google.com; s=arc-20160816; b=I6JcGDHU2R/9JDFnu034lHAuR8/tDO2Y3TmtrZFo1616FozawW634KDlPL0FniLnXl q40ROePQjNYeqFCMAv00DBu5476zYmcokGgtexcN28bl7mP3jDlSx5UqTS+hhGUrfehx yE4CXIVk2UKqsuIucntYlrYUal5K7i/lZ3lG0c/za+QmpsbKQjO3J1Rzok8G5TP/uISD b6i5zbqmz0AzJHajQDZgwj8pZd24fKfOVf674opzsjEmA5tmLffpY2bMnCAjvqAcgTvD O6rIaNvCE0sHsc5g3W2f6eNcwhjBrMITnE1NcDxJ9l/1zoDE67BWdQXgSKHVvGLqovq7 V2Yg== 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; bh=trgaBQFgKXHdg8AwQxaQxPegBzGL0Rl8nGKUvZ24yZ8=; b=LtsVUvLVrXioPtoRCwmC7NySjSkIiQD7i+D2Bwr07dW9xJzDCjl3X3+QdbZxs7NB2f KyaHdyER5TYwKgsUMKt9POuJbkDMXuA8Ig6mp74cqk/6rn7/XGr19gpIPEYjVupM7pW8 PdwyYlATvmEPzGF/VbgtqU7J6OseC+59cEXqHtdV3XG7di8bfZ9f8XI20yxwQaNU/6Kp yNc7ReB4TUKKjzDCRciZmeOQxhNu0nDNf3yoqy8pONM7O0hAkxwwlohfl4qdvugoAE5e wxFYr/k05W2OYVbMJ1gyHPjZ9QvsqriQ/mAIYUx0BU0iVJVRgGkq2SzXfjJzYoIXwiq4 mTuQ== ARC-Authentication-Results: i=1; mx.google.com; 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 g22-20020a056a0023d600b005107cf64e1dsi14294333pfc.212.2022.07.12.10.54.26; Tue, 12 Jul 2022 10:54:40 -0700 (PDT) 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; 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 S232706AbiGLRce (ORCPT + 99 others); Tue, 12 Jul 2022 13:32:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbiGLRcd (ORCPT ); Tue, 12 Jul 2022 13:32:33 -0400 Received: from 6.mo575.mail-out.ovh.net (6.mo575.mail-out.ovh.net [46.105.63.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82746C4460 for ; Tue, 12 Jul 2022 10:32:31 -0700 (PDT) Received: from player770.ha.ovh.net (unknown [10.108.1.170]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id D262923E9E for ; Tue, 12 Jul 2022 17:27:11 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player770.ha.ovh.net (Postfix) with ESMTPSA id CF11E2C9AB1AD; Tue, 12 Jul 2022 17:27:07 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-110S004f189b0e1-8866-46bc-95be-58f3392da2e9, 95116E16C79F3EB4FFDADE9184C2BF5B79F623F3) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH 1/5] docs: sysctl: remove references to inode-max Date: Tue, 12 Jul 2022 19:26:15 +0200 Message-Id: <20220712172619.359052-1-steve@sk2.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 12605293884737488518 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrudejhedguddugecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeelgeetueejffejfeejvefhtddufeejgfetleegtddukeelieelvddvteduveejtdenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejjedtrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdpoffvtefjohhsthepmhhoheejhe X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 inode-max was removed in 2.3.20pre1, remove references to it in the sysctl documentation. Signed-off-by: Stephen Kitt --- Documentation/admin-guide/sysctl/fs.rst | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Documentation/admin-guide/sysctl/fs.rst b/Documentation/admin-guide/sysctl/fs.rst index 2a501c9ddc55..54130ae33df8 100644 --- a/Documentation/admin-guide/sysctl/fs.rst +++ b/Documentation/admin-guide/sysctl/fs.rst @@ -33,7 +33,6 @@ Currently, these files are in /proc/sys/fs: - dquot-nr - file-max - file-nr -- inode-max - inode-nr - inode-state - nr_open @@ -136,18 +135,12 @@ enough for most machines. Actual limit depends on RLIMIT_NOFILE resource limit. -inode-max, inode-nr & inode-state ---------------------------------- +inode-nr & inode-state +---------------------- As with file handles, the kernel allocates the inode structures dynamically, but can't free them yet. -The value in inode-max denotes the maximum number of inode -handlers. This value should be 3-4 times larger than the value -in file-max, since stdin, stdout and network sockets also -need an inode struct to handle them. When you regularly run -out of inodes, you need to increase this value. - The file inode-nr contains the first two items from inode-state, so we'll skip to that file... @@ -156,11 +149,10 @@ The actual numbers are, in order of appearance, nr_inodes, nr_free_inodes and preshrink. Nr_inodes stands for the number of inodes the system has -allocated, this can be slightly more than inode-max because -Linux allocates them one pageful at a time. +allocated. Nr_free_inodes represents the number of free inodes (?) and -preshrink is nonzero when the nr_inodes > inode-max and the +preshrink is nonzero when the system needs to prune the inode list instead of allocating more. base-commit: 50fd82b3a9a9335df5d50c7ddcb81c81d358c4fc -- 2.31.1