* Re: [PATCH v2] vmalloc: Modify the alloc_vmap_area() error message for better diagnostics
[not found] ` <Zl5TSbHZJbtM4xIX@casper.infradead.org>
@ 2024-06-04 0:16 ` Christoph Lameter (Ampere)
2024-06-04 2:30 ` Anshuman Khandual
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Lameter (Ampere) @ 2024-06-04 0:16 UTC (permalink / raw)
To: Matthew Wilcox
Cc: Shubhang Kaushik OS,
ampere-linux-kernel@lists.amperecomputing.com, Andrew Morton,
Uladzislau Rezki, Christoph Hellwig, Lorenzo Stoakes,
linux-mm@kvack.org, linux-arm-kernel
On Tue, 4 Jun 2024, Matthew Wilcox wrote:
> On Mon, Jun 03, 2024 at 09:30:54PM +0000, Shubhang Kaushik OS wrote:
>> 'vmap allocation for size %lu failed: use vmalloc=<size> to increase size'
>> The above warning is seen in the kernel functionality for allocation of
>> the restricted virtual memory range till exhaustion.
>>
>> This message is misleading because 'vmalloc=' is not a valid kernel
>> parameter on a number of platforms, in particular it is not supported
>> on arm64. With the update, the output gets modified to include the function
>
> Why not fix arm64?
Arm64 does not need vmalloc= tuning and the problem is not related to
being out of vmalloc space in general.
This occurs if the virtual range during a vmalloc was restricted and is
not available (f.e. if one wants a module to be loaded in optimal branch
distance to the kernel text segment and we loaded too many modules). The
error message needs to indicate the virtual memory restriction which helps
the developer/user to debug the situation and not create a wild goose
chase for a kernel parmaeter that does not exist.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] vmalloc: Modify the alloc_vmap_area() error message for better diagnostics
2024-06-04 0:16 ` [PATCH v2] vmalloc: Modify the alloc_vmap_area() error message for better diagnostics Christoph Lameter (Ampere)
@ 2024-06-04 2:30 ` Anshuman Khandual
0 siblings, 0 replies; 2+ messages in thread
From: Anshuman Khandual @ 2024-06-04 2:30 UTC (permalink / raw)
To: Christoph Lameter (Ampere), Matthew Wilcox
Cc: Shubhang Kaushik OS,
ampere-linux-kernel@lists.amperecomputing.com, Andrew Morton,
Uladzislau Rezki, Christoph Hellwig, Lorenzo Stoakes,
linux-mm@kvack.org, linux-arm-kernel
On 6/4/24 05:46, Christoph Lameter (Ampere) wrote:
> On Tue, 4 Jun 2024, Matthew Wilcox wrote:
>
>> On Mon, Jun 03, 2024 at 09:30:54PM +0000, Shubhang Kaushik OS wrote:
>>> 'vmap allocation for size %lu failed: use vmalloc=<size> to increase size'
>>> The above warning is seen in the kernel functionality for allocation of
>>> the restricted virtual memory range till exhaustion.
>>>
>>> This message is misleading because 'vmalloc=' is not a valid kernel
>>> parameter on a number of platforms, in particular it is not supported
>>> on arm64. With the update, the output gets modified to include the function
>>
>> Why not fix arm64?
>
> Arm64 does not need vmalloc= tuning and the problem is not related to being out of vmalloc space in general.
>
> This occurs if the virtual range during a vmalloc was restricted and is not available (f.e. if one wants a module to be loaded in optimal branch distance to the kernel text segment and we loaded too many modules). The error message needs to indicate the virtual memory restriction which helps the developer/user to debug the situation and not create a wild goose chase for a kernel parmaeter that does not exist.
Agreed, current warning message here is misleading pointing to a non-existent
kernel command line parameter on the given platform.
This kernel parameter i.e 'vmalloc=' seems to be supported only on the x86 and
arm (32) platforms. Should not Documentation/admin-guide/kernel-parameters.txt
be updated as well making this bit clear ?
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-04 2:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <MN2PR01MB5902582BA403FB9FA12816A6F5FF2@MN2PR01MB5902.prod.exchangelabs.com>
[not found] ` <Zl5TSbHZJbtM4xIX@casper.infradead.org>
2024-06-04 0:16 ` [PATCH v2] vmalloc: Modify the alloc_vmap_area() error message for better diagnostics Christoph Lameter (Ampere)
2024-06-04 2:30 ` Anshuman Khandual
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 NNTP newsgroup(s).