* [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION
@ 2023-12-05 6:30 Yang Xu
2023-12-05 6:30 ` [PATCH v2 2/2] swapon.2: Adjust decreased value under CONFIG_PTE_MARKER Yang Xu
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Yang Xu @ 2023-12-05 6:30 UTC (permalink / raw)
To: linux-man; +Cc: Yang Xu
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/man2/swapon.2 b/man2/swapon.2
index c0e61cbc6..2bc477d18 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
--
2.27.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH v2 2/2] swapon.2: Adjust decreased value under CONFIG_PTE_MARKER
2023-12-05 6:30 [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION Yang Xu
@ 2023-12-05 6:30 ` Yang Xu
2023-12-15 11:11 ` Alejandro Colomar
[not found] ` <03fc8738-f3b3-4caa-ab76-49883814ac3c@fujitsu.com>
2023-12-15 11:13 ` Alejandro Colomar
2 siblings, 1 reply; 7+ messages in thread
From: Yang Xu @ 2023-12-05 6:30 UTC (permalink / raw)
To: linux-man; +Cc: Yang Xu
Since linux 5.19[1], MAX_SWAPFILES will be futher decreased
1 if kernel built with CONFIG_PTE_MARKER.
[1]https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/swap.h?id=679d10331
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
man2/swapon.2 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/man2/swapon.2 b/man2/swapon.2
index 2bc477d18..13282ff96 100644
--- a/man2/swapon.2
+++ b/man2/swapon.2
@@ -181,6 +181,10 @@ Since Linux 5.14, the limit is further decreased by 4
if the kernel is built with the
.B CONFIG_DEVICE_PRIVATE
option.
+Since Linux 5.19, the limit is further decreased by 1
+if the kernel is built with the
+.B CONFIG_PTE_MARKER
+option.
.P
Discard of swap pages was introduced in Linux 2.6.29,
then made conditional
--
2.27.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v2 2/2] swapon.2: Adjust decreased value under CONFIG_PTE_MARKER
2023-12-05 6:30 ` [PATCH v2 2/2] swapon.2: Adjust decreased value under CONFIG_PTE_MARKER Yang Xu
@ 2023-12-15 11:11 ` Alejandro Colomar
0 siblings, 0 replies; 7+ messages in thread
From: Alejandro Colomar @ 2023-12-15 11:11 UTC (permalink / raw)
To: Yang Xu; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]
Hi Yang,
On Tue, Dec 05, 2023 at 01:30:17AM -0500, Yang Xu wrote:
> Since linux 5.19[1], MAX_SWAPFILES will be futher decreased
> 1 if kernel built with CONFIG_PTE_MARKER.
>
> [1]https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/swap.h?id=679d10331
>
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
> ---
Patch applied.
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=0a5a5dee8927c9e21f13c250a752f3c6ba9d1a09>
Have a lovely day,
Alex
> man2/swapon.2 | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/man2/swapon.2 b/man2/swapon.2
> index 2bc477d18..13282ff96 100644
> --- a/man2/swapon.2
> +++ b/man2/swapon.2
> @@ -181,6 +181,10 @@ Since Linux 5.14, the limit is further decreased by 4
> if the kernel is built with the
> .B CONFIG_DEVICE_PRIVATE
> option.
> +Since Linux 5.19, the limit is further decreased by 1
> +if the kernel is built with the
> +.B CONFIG_PTE_MARKER
> +option.
> .P
> Discard of swap pages was introduced in Linux 2.6.29,
> then made conditional
> --
> 2.27.0
>
>
--
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <03fc8738-f3b3-4caa-ab76-49883814ac3c@fujitsu.com>]
* Re: [LTP] [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION
[not found] ` <03fc8738-f3b3-4caa-ab76-49883814ac3c@fujitsu.com>
@ 2023-12-15 7:49 ` Yang Xu (Fujitsu)
0 siblings, 0 replies; 7+ messages in thread
From: Yang Xu (Fujitsu) @ 2023-12-15 7:49 UTC (permalink / raw)
To: linux-man@vger.kernel.org; +Cc: ltp@lists.linux.it
Hi all,
Sorry, I forgot to send this "ping mail" to man-pages.
PING
Best Regards
Yang Xu
> Hi all,
>
> Ping
>
> Best Regards
> Yang Xu
>
>> 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 | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/man2/swapon.2 b/man2/swapon.2
>> index c0e61cbc6..2bc477d18 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
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION
2023-12-05 6:30 [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION Yang Xu
2023-12-05 6:30 ` [PATCH v2 2/2] swapon.2: Adjust decreased value under CONFIG_PTE_MARKER Yang Xu
[not found] ` <03fc8738-f3b3-4caa-ab76-49883814ac3c@fujitsu.com>
@ 2023-12-15 11:13 ` Alejandro Colomar
2023-12-15 11:27 ` Alejandro Colomar
2 siblings, 1 reply; 7+ messages in thread
From: Alejandro Colomar @ 2023-12-15 11:13 UTC (permalink / raw)
To: Yang Xu; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
Hi Yang,
On Tue, Dec 05, 2023 at 01:30:16AM -0500, Yang Xu wrote:
> 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>
I've applied the patch, with some modifications:
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=5da8280ed6eefb3d70f86281579c4afae89230b1>
Cheers,
Alex
> ---
> man2/swapon.2 | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/man2/swapon.2 b/man2/swapon.2
> index c0e61cbc6..2bc477d18 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
> --
> 2.27.0
>
>
--
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION
2023-12-15 11:13 ` Alejandro Colomar
@ 2023-12-15 11:27 ` Alejandro Colomar
2023-12-19 2:14 ` Yang Xu (Fujitsu)
0 siblings, 1 reply; 7+ messages in thread
From: Alejandro Colomar @ 2023-12-15 11:27 UTC (permalink / raw)
To: Yang Xu; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 1836 bytes --]
On Fri, Dec 15, 2023 at 12:13:30PM +0100, Alejandro Colomar wrote:
> Hi Yang,
>
> On Tue, Dec 05, 2023 at 01:30:16AM -0500, Yang Xu wrote:
> > 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>
>
> I've applied the patch, with some modifications:
> <https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=5da8280ed6eefb3d70f86281579c4afae89230b1>
Oops, my modification was wrong. I've amended that. Here are the two
patches now:
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=90ba8cf3ab2536bdc138986c4581c62a3c0b60d4>
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=9e160cf3fd27181a72ec2fb628f64e971510f9f3>
>
> Cheers,
> Alex
>
> > ---
> > man2/swapon.2 | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/man2/swapon.2 b/man2/swapon.2
> > index c0e61cbc6..2bc477d18 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
> > --
> > 2.27.0
> >
> >
>
> --
> <https://www.alejandro-colomar.es/>
> Looking for a remote C programming job at the moment.
--
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION
2023-12-15 11:27 ` Alejandro Colomar
@ 2023-12-19 2:14 ` Yang Xu (Fujitsu)
0 siblings, 0 replies; 7+ messages in thread
From: Yang Xu (Fujitsu) @ 2023-12-19 2:14 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-man@vger.kernel.org
Hi Alex,
> On Fri, Dec 15, 2023 at 12:13:30PM +0100, Alejandro Colomar wrote:
>> Hi Yang,
>>
>> On Tue, Dec 05, 2023 at 01:30:16AM -0500, Yang Xu wrote:
>>> 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>
>>
>> I've applied the patch, with some modifications:
>> <https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=5da8280ed6eefb3d70f86281579c4afae89230b1>
>
> Oops, my modification was wrong. I've amended that. Here are the two
> patches now:
>
> <https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=90ba8cf3ab2536bdc138986c4581c62a3c0b60d4>
> <https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=9e160cf3fd27181a72ec2fb628f64e971510f9f3>
>
Thanks for your work.
Best Regards
Yang Xu
>>
>> Cheers,
>> Alex
>>
>>> ---
>>> man2/swapon.2 | 3 ++-
>>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/man2/swapon.2 b/man2/swapon.2
>>> index c0e61cbc6..2bc477d18 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
>>> --
>>> 2.27.0
>>>
>>>
>>
>> --
>> <https://www.alejandro-colomar.es/>
>> Looking for a remote C programming job at the moment.
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-12-19 2:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05 6:30 [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION Yang Xu
2023-12-05 6:30 ` [PATCH v2 2/2] swapon.2: Adjust decreased value under CONFIG_PTE_MARKER Yang Xu
2023-12-15 11:11 ` Alejandro Colomar
[not found] ` <03fc8738-f3b3-4caa-ab76-49883814ac3c@fujitsu.com>
2023-12-15 7:49 ` [LTP] [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION Yang Xu (Fujitsu)
2023-12-15 11:13 ` Alejandro Colomar
2023-12-15 11:27 ` Alejandro Colomar
2023-12-19 2:14 ` Yang Xu (Fujitsu)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox