Send inn-workers mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."
Today's Topics:
1. Re: msync - can someone shed some light please?
(Richard Kettlewell)
2. Re: msync - can someone shed some light please? (Julien ?LIE)
----------------------------------------------------------------------
Message: 1
Date: Thu, 7 Aug 2025 18:42:18 +0100
From: Richard Kettlewell <[email protected]>
To: [email protected]
Subject: Re: msync - can someone shed some light please?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
On 13/06/2025 22:55, Richard Kettlewell wrote:
> Julien ?LIE wrote:
>> Hi Chris,
>>
>>> When adding groups (ctlinnd newgroup?), the following occurs:
>>>
>>> 2025-06-12T14:14:57.572314+02:00 nntpspool innd: SERVER msync
>>> failed / var/lib/news/active 0x0x7f3f46800000 5062656 Cannot allocate
>>> memory
[...]
> Assuming the page size is 4096 bytes:
> * p = 0x7f3f46800000 is already page-aligned so start = p
> * length = 5062656 is a multiple of 4096,
> ? so we will get end = p + length + 4096,
> ? given end-start = length+4096.
>
> The effect is that INN will attempt to msync 4096 bytes beyond the end
> of the mapping.
>
> In https://man7.org/linux/man-pages/man2/msync.2.html doing this is
> documented as being an error. The error code is consistent with the log
> message:
>
> ?????? ENOMEM The indicated memory (or part of it) was not mapped.
>
> If length % 4096 > 0 then the effect would just be to round up to an
> exact number of pages, avoiding the error. So we'd expect to see the
> error in 1/4096 (about 0.025%) of possible active files sizes.
As luck would have it I am now seeing the same error on one of my
servers, and indeed:
-rw-rw-r-- 1 news news 1499136 Aug 7 04:15 /var/lib/news/active
...which is a multiple of 4096.
I have deleted a couple of groups I don't care about l-)
ttfn/rjk
------------------------------
Message: 2
Date: Thu, 7 Aug 2025 22:01:36 +0200
From: Julien ?LIE <[email protected]>
To: [email protected]
Subject: Re: msync - can someone shed some light please?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
Hi Richard,
>> If length % 4096 > 0 then the effect would just be to round up to an
>> exact number of pages, avoiding the error. So we'd expect to see the
>> error in 1/4096 (about 0.025%) of possible active files sizes.
>
> As luck would have it I am now seeing the same error on one of my
> servers, and indeed:
>
> -rw-rw-r-- 1 news news 1499136 Aug? 7 04:15 /var/lib/news/active
>
> ...which is a multiple of 4096.
Oh, what a coincidence!
Thanks for confirming the origin of the bug, and therefore that the fix
is the right one. I committed it in June; it will be shipped with the
next 2.7.4 release:
https://github.com/InterNetNews/inn/commit/a219d093447d20c8c73c2df70d8b27c955bfdf23
--
Julien ?LIE
??I think it's a new feature. Don't tell anyone it was an accident.??
(Larry Wall)
------------------------------
Subject: Digest Footer
_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers
------------------------------
End of inn-workers Digest, Vol 167, Issue 1
*******************************************