I've been using LXC containers for a few years and have recently expanded the types of applications that run inside of container environments.
I'm starting to limit resources at the container level now with configuration parameters like:
lxc.cgroup.cpuset.cpus = 16-23
lxc.cgroup.memory.limit_in_bytes = 30720M
lxc.cgroup.memory.memsw.limit_in_bytes = 32768M
I'm working with a developer who's using a "tuning" tool (pgtune) to generate a configuration for a Postgres database that will run inside of the LXC environment. This tool is older and is not quite VM or container-aware. It makes sizing recommendations based on the RAM visible to the system.
That's when I realized that seeing all of the host system's RAM (96GB) is visible to the container instance could be harmful in some cases.
Is there any workaround for this, or is it just a given when using LXC?