Score:1

Prevent containers from using hugepages

cn flag

How do I prevent applications in containers from using hugepages? I want to allocate large 1G hugepages for VMs, but these are currently "stolen" by applications that do not need them at all (like phpmyadmin).

I found the capability CAP_IPC_LOCK:

Allocate memory using huge pages (memfd_create(2), mmap(2), shmctl(2)).

but Docker containers already don't have this capability by default.

Is it possible to deny containers access to hugepages?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.