[PATCH RFC 4/5] vm_cgroup: shared memory accounting

2014-07-03 Thread Vladimir Davydov
Address space that contributes to memory overcommit consists of two parts - private writable mappings and shared memory. This patch adds shared memory accounting. Each shmem inode holds a reference to the vm cgroup it is accounted to. The reference is initialized with the current cgroup on shmem

[PATCH RFC 4/5] vm_cgroup: shared memory accounting

2014-07-03 Thread Vladimir Davydov
Address space that contributes to memory overcommit consists of two parts - private writable mappings and shared memory. This patch adds shared memory accounting. Each shmem inode holds a reference to the vm cgroup it is accounted to. The reference is initialized with the current cgroup on shmem