Linux-man Archive mirror
 help / color / mirror / Atom feed
From: Yang Xu <xuyang2018.jy@fujitsu.com>
To: linux-man@vger.kernel.org
Cc: Yang Xu <xuyang2018.jy@fujitsu.com>
Subject: [PATCH 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION
Date: Mon,  4 Dec 2023 07:24:30 -0500	[thread overview]
Message-ID: <20231204122431.68106-1-xuyang2018.jy@fujitsu.com> (raw)

After kernel 5.19[1], the limit is decreased by 3.

[1]https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/swap.h?id=6c287605f

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 man2/swapon.2 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man2/swapon.2 b/man2/swapon.2
index c0e61cbc6..ee270cea1 100644
--- a/man2/swapon.2
+++ b/man2/swapon.2
@@ -164,7 +164,8 @@ Before Linux 2.4.10,
 .B MAX_SWAPFILES
 has the value 8;
 since Linux 2.4.10, it has the value 32.
-Since Linux 2.6.18, the limit is decreased by 2 (thus: 30)
+Since Linux 2.6.18, the limit is decreased by 2 (Since Linux 5.19.0,
+the limit is decreased by 3)
 if the kernel is built with the
 .B CONFIG_MIGRATION
 option
@@ -172,6 +173,7 @@ option
 .BR mbind (2)
 and
 .BR migrate_pages (2)).
+
 Since Linux 2.6.32, the limit is further decreased by 1
 if the kernel is built with the
 .B CONFIG_MEMORY_FAILURE
-- 
2.27.0


             reply	other threads:[~2023-12-04 12:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-04 12:24 Yang Xu [this message]
2023-12-04 12:24 ` [PATCH 2/2] swapon.2: Adjust decreased value under CONFIG_PTE_MARKER Yang Xu
2023-12-04 12:29 ` [PATCH 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION Alejandro Colomar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231204122431.68106-1-xuyang2018.jy@fujitsu.com \
    --to=xuyang2018.jy@fujitsu.com \
    --cc=linux-man@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).