:: Re: [DNG] udev rule to create mount…
Kezdőlap
Delete this message
Reply to this message
Szerző: aitor
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] udev rule to create mount point /dev/hugepages
Hi Adrian,

On 12/7/22 11:04, Adrian Zaugg wrote:
> Hi Aitor
>
> In der Nachricht vom Tuesday, 12 July 2022 01:20:10 CEST steht:
>> You can find these files in the subdirectories:
>>
>> /sys/devices/system/node/node0/hugepages/hugepages-*/
> The path you gave is per numa node. It is possible to set different numbers of
> hugepages on each numa node. The per system information is here:
>
> /sys/kernel/mm/hugepages/hugepages-*/nr_hugepages
>
> (or in /proc/meminfo)


Read the paragraph "Per Node Huge Pages Attributes" in the link:

https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/mm/hugetlbpage.rst <https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/mm/hugetlbpage.rst>

saying:

[...]

 A subset of the contents of the root huge page control directory in sysfs,
described above, will be *replicated* under each the system device of each
NUMA node with memory in:

      /sys/devices/system/node/node[0-9]*/hugepages/


[...]

The root huge page control directory in `sysfs` is:

/sys/kernel/mm/hugepages

For each huge page size supported by the running kernel, a subdirectory
will exist, of the form:

hugepages-${size}kB

And you'll find the same subdirectories replicated among the numa nodes with memory in:

/sys/devices/system/node/node[0-9]*/hugepages/


Cheers,

Aitor.