Re: [Devel] [PATCH] ve: Kill tcp_v4_kill_ve_sockets()

2015-06-01 Thread Kirill Tkhai
В Пт, 29/05/2015 в 17:20 +0300, Andrew Vagin пишет: Acked-by: Andrew Vagin ava...@odin.com I'm agree that we need to remove this function, but I don't know how it fixes the bug. tcp_v4_kill_ve_sockets() is called when all processes are killed, and their sockets have been already replaced

Re: [Devel] [PATCH] ve: Kill tcp_v4_kill_ve_sockets()

2015-06-01 Thread Kirill Tkhai
В Пн, 01/06/2015 в 15:16 +0300, Vasily Averin пишет: On 01.06.2015 14:31, Kirill Tkhai wrote: В Пт, 29/05/2015 в 17:20 +0300, Andrew Vagin пишет: Acked-by: Andrew Vagin ava...@odin.com I'm agree that we need to remove this function, but I don't know how it fixes the bug.

Re: [Devel] [PATCH] ve: Kill tcp_v4_kill_ve_sockets()

2015-06-01 Thread Vasily Averin
On 01.06.2015 14:31, Kirill Tkhai wrote: В Пт, 29/05/2015 в 17:20 +0300, Andrew Vagin пишет: Acked-by: Andrew Vagin ava...@odin.com I'm agree that we need to remove this function, but I don't know how it fixes the bug. tcp_v4_kill_ve_sockets() is called when all processes are killed, and

Re: [Devel] [PATCH] ve: Kill tcp_v4_kill_ve_sockets()

2015-06-01 Thread Kirill Tkhai
В Пн, 01/06/2015 в 17:25 +0300, Vasily Averin пишет: On 01.06.2015 15:46, Kirill Tkhai wrote: В Пн, 01/06/2015 в 15:16 +0300, Vasily Averin пишет: On 01.06.2015 14:31, Kirill Tkhai wrote: В Пт, 29/05/2015 в 17:20 +0300, Andrew Vagin пишет: Acked-by: Andrew Vagin ava...@odin.com I'm

Re: [Devel] [PATCH rh7 0/7] Rework containers' network memory management

2015-06-01 Thread Vladimir Davydov
Any plans to sync these limits/counters with user beancounters? ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

Re: [Devel] [PATCH 7/7] packet: Pre-account maximum socket buffer into cg memory

2015-06-01 Thread Pavel Emelyanov
On 06/01/2015 07:01 PM, Vladimir Davydov wrote: On Fri, May 29, 2015 at 05:19:15PM +0300, Pavel Emelyanov wrote: Packet sockets have incoming queue of packets that is only limited with per-socket wmem buffer. Strictly speaking we should sum up all the queues and charge them into kmem once new

Re: [Devel] [PATCH rh7 0/7] Rework containers' network memory management

2015-06-01 Thread Vladimir Davydov
On Mon, Jun 01, 2015 at 07:11:51PM +0300, Pavel Emelyanov wrote: On 06/01/2015 07:02 PM, Vladimir Davydov wrote: Any plans to sync these limits/counters with user beancounters? For TCP it would be too hard. Current tcp mm doesn't distinguish in mem from out mem, so we have no easy way to

Re: [Devel] [PATCH 7/7] packet: Pre-account maximum socket buffer into cg memory

2015-06-01 Thread Vladimir Davydov
On Mon, Jun 01, 2015 at 07:14:24PM +0300, Pavel Emelyanov wrote: On 06/01/2015 07:01 PM, Vladimir Davydov wrote: On Fri, May 29, 2015 at 05:19:15PM +0300, Pavel Emelyanov wrote: Packet sockets have incoming queue of packets that is only limited with per-socket wmem buffer. Strictly speaking

[Devel] [PATCH rh7] Port diff-sched-make-nr_cpus-limit-support-hierarchies

2015-06-01 Thread Vladimir Davydov
Author: Vladimir Davydov Email: vdavy...@parallels.com Subject: sched: make nr_cpus limit support hierarchies Date: Wed, 26 Nov 2014 17:29:31 +0300 Before the patch nr_cpus limiter was completely unaware of hierarchies, i.e. creation of a cpu sub-cgroup in a container would result in its tasks

Re: [Devel] [PATCH 7/7] packet: Pre-account maximum socket buffer into cg memory

2015-06-01 Thread Vladimir Davydov
On Fri, May 29, 2015 at 05:19:15PM +0300, Pavel Emelyanov wrote: Packet sockets have incoming queue of packets that is only limited with per-socket wmem buffer. Strictly speaking we should sum up all the queues and charge them into kmem once new packet arrives, but this will result in huge

Re: [Devel] [PATCH rh7 0/7] Rework containers' network memory management

2015-06-01 Thread Pavel Emelyanov
On 06/01/2015 07:02 PM, Vladimir Davydov wrote: Any plans to sync these limits/counters with user beancounters? For TCP it would be too hard. Current tcp mm doesn't distinguish in mem from out mem, so we have no easy way to show them separately. For the rest... Well, have you changed your mind

Re: [Devel] vzctl PRE_CREATE hook

2015-06-01 Thread Kir Kolyshkin
Thank you, this approach looks way better and in-line with current vzctl ideas! Can you please: 1. Use git format-patch 2. Provide some description (in the patch commit message) about why you need it etc. An example of such is https://src.openvz.org/projects/OVZL/repos/vzctl/commits/4772f7e

Re: [Devel] [PATCH] ve: Kill tcp_v4_kill_ve_sockets()

2015-06-01 Thread Vasily Averin
On 01.06.2015 15:46, Kirill Tkhai wrote: В Пн, 01/06/2015 в 15:16 +0300, Vasily Averin пишет: On 01.06.2015 14:31, Kirill Tkhai wrote: В Пт, 29/05/2015 в 17:20 +0300, Andrew Vagin пишет: Acked-by: Andrew Vagin ava...@odin.com I'm agree that we need to remove this function, but I don't know

Re: [Devel] [PATCH rh7 0/7] Rework containers' network memory management

2015-06-01 Thread Pavel Emelyanov
On 06/01/2015 07:23 PM, Vladimir Davydov wrote: On Mon, Jun 01, 2015 at 07:11:51PM +0300, Pavel Emelyanov wrote: On 06/01/2015 07:02 PM, Vladimir Davydov wrote: Any plans to sync these limits/counters with user beancounters? For TCP it would be too hard. Current tcp mm doesn't distinguish in