[lxc-users] Mounting huge pages on a conatiner

Murthy, Krishna J krishna.j.murthy at intel.com
Tue Sep 23 16:46:42 UTC 2014


> I use Huge Pages inside a container routinely, for Mysql. I had to change
> /etc/sysctl.conf inside the container.
> that lines I included are
> kernel.shmall = 4294967296
> kernel.shmmax = 68719476736
> basically you need to make huge pages available in the host first, and
> they will be available in the container

Ok. In this case we are allocating the shared memory. How do we make this memory 
visible for apps that expect it be mounted as hugetlbfs. 

root at vc0:~# df -lh
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        50G  7.6G   39G  17% /
none             16G     0   16G   0% /dev/shm

root at vc0:~# cat /proc/sys/vm/nr_hugepages
5

>> Hi,
>>
>> Are you trying to run DPDK in a container? You need to tweak a few things. I
>> will try to write up all the changes needed to get DPDK to work inside
>> containers, and send you shortly. In the meantime, it would help if you
>> specified what error you get.
>
>> Anjali
>>
>> From: Swetha Gurudu <swethagurudu at gmail.com>
>> Reply-To: "lxc-users at lists.linuxcontainers.org"
>> <lxc-users at lists.linuxcontainers.org>
>> Date: Tuesday, September 23, 2014 5:22 AM
>> To: "lxc-users at lists.linuxcontainers.org"
>> <lxc-users at lists.linuxcontainers.org>
>> Subject: [lxc-users] Mounting huge pages on a conatiner
>>
>> Hi,
>>
>> I just started to learn and work on containers. I need to mount huge pages
>> in a container and when I try to mount I get permission denied error. Can
>> someone please help in this regard.
>>
>> Thanks,
>> Swetha
--------------------------------------------------------------
Intel Shannon Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
Business address: Dromore House, East Park, Shannon, Co. Clare

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.




More information about the lxc-users mailing list