[pve-devel] [PATCH 1/2] add hugepages option

Alexandre DERUMIER aderumier at odiso.com
Fri May 13 08:32:50 CEST 2016


>>Yes, that sounds reasonable to me. It would be great if we can get that working
>>without the need to configure something (grub.conf, fstab, ...)

Ok, I'll try to improve my patch in this direction .


----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Vendredi 13 Mai 2016 07:29:39
Objet: Re: [pve-devel] [PATCH 1/2] add hugepages option

> a simple 
> 
> echo x > 
> /sys/devices/system/node/nodeX/hugepages/hugepages-1048576kB/nr_hugepages 
> echo x > 
> /sys/devices/system/node/nodeX/hugepages/hugepages-2048kB/nr_hugepages 
> 
> is enough (need to be done for each numa node) 
> 
> freehuges can be checked 
> 
> cat 
> /sys/devices/system/node/node0/hugepages/hugepages-1048576kB/free_hugepages 
> cat /sys/devices/system/node/node0/hugepages/hugepages-2048kB/free_hugepages 
> 
> 
> Like this, user can if he want reserved hugepages at boot (sysctl or kernel 
> options in grub). 
> And if he don't define hugepages or define not enough hugepages 
> (free_hugepages counter), 
> we can try to allocate them for him. 

Yes, that sounds reasonable to me. It would be great if we can get that working 
without the need to configure something (grub.conf, fstab, ...) 



More information about the pve-devel mailing list