[lxc-users] Does memory limit affects file system cache?

Eax Melanhovich afiskon at devzen.ru
Tue Jan 26 13:21:24 UTC 2016


Hello.

Lets say I would like to test how PostgreSQL behaves under some
circumstances in particular when some table does not fit into memory.
The problem is I have 16 Gb of RAM so to test this I have to create
quite a large table. Can I just set:

lxc.cgroup.memory.limit_in_bytes = 1024M

... instead? Will it guarantee that database will not be cached by
host's file system?

-- 
Best regards,
Eax Melanhovich
http://eax.me/


More information about the lxc-users mailing list