Re: [Devel] [PATCH rh7] ploop: push_backup: fix ploop_push_backup_io_read()

2016-05-12 Thread Konstantin Khorenko
On 05/12/2016 04:26 AM, Maxim Patlasov wrote: ploop_push_backup_io_read() services ioctl(PLOOP_IOC_PUSH_BACKUP_IO) for direction = PLOOP_READ. If at least one extent is successfully filled, the -ENOENT error from ploop_pb_get_pending() must be interpreted as "OK, no more data present". https://

[Devel] [PATCH rh7 2/3] mm: memcontrol: fix meminfo:SUnreclaim output in containers

2016-05-12 Thread Vladimir Davydov
We calculate SUnreclaim as total kmem usage minus SReclaimable. This is wrong, because kmem also charges non-slab objects, such as page tables and kernel stack pages. Signed-off-by: Vladimir Davydov --- mm/memcontrol.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git

[Devel] [PATCH rh7 3/3] mm: introduce min threshold for dcache

2016-05-12 Thread Vladimir Davydov
This patch adds new sysctl vm.vfs_cache_min_ratio. If the ratio of reclaimable slabs (i.e. dcache and icache) to total memory usage of a cgroup is less than the value of this sysctl (2% by default), slabs won't be reclaimed from this cgroup on memory pressure. https://jira.sw.ru/browse/PSBM-34161

[Devel] [PATCH rh7 1/3] mm: memcontrol: add stats for reclaimable and unreclaimable stats

2016-05-12 Thread Vladimir Davydov
Required by vcmmd for estimating the size of available memory, which in turn is used for calculating the lower boundary for memory limit. Also, these counters will be used by the following patches. Signed-off-by: Vladimir Davydov --- mm/memcontrol.c | 22 -- 1 file changed,

Re: [Devel] [PATCH rh7] ploop: push_backup: fix ploop_push_backup_io_read()

2016-05-12 Thread Maxim Patlasov
Kostya, On 05/12/2016 07:05 AM, Konstantin Khorenko wrote: On 05/12/2016 04:26 AM, Maxim Patlasov wrote: ploop_push_backup_io_read() services ioctl(PLOOP_IOC_PUSH_BACKUP_IO) for direction = PLOOP_READ. If at least one extent is successfully filled, the -ENOENT error from ploop_pb_get_pending()

[Devel] [PATCH rh7] ploop: push_backup: improve auto destroy

2016-05-12 Thread Maxim Patlasov
When more than one user keeps ploop block device opened, dying backup tool doesn't trigger auto destroy. The patch tries to detect dying backup tool by comparing the pid of process starting push_backup with the pid of process closing ploop block device. The patch doesn't ensures auto destroy in 1