Re: [Devel] [PATCH RH9 0/6] part 18: port release agent virtualization

2021-10-19 Thread Kirill Tkhai
On 18.10.2021 15:50, Pavel Tikhomirov wrote: > Patches are massively reworked, see inpatch comments. > > https://jira.sw.ru/browse/PSBM-134002 > > Pavel Tikhomirov (1): > ve/cgroup: fix cgroup_mark_ve_roots naming > > Valeriy Vdovin (5): > cgroup/cfs: added 'activate' option to cgroup_add_fi

[Devel] [PATCH RH9 v2 5/6] ve/cgroup: Private per-cgroup-root data container

2021-10-19 Thread Pavel Tikhomirov
From: Valeriy Vdovin To save release agent binary path per-ve we need to have some place to store it, ve root cgroups are already linked to ve via cgroup->ve_owner and ve->ve_ns->cgroup_ns->root_cset, so we can put release agent data to ve. Also we need to have one path per cgroup_root as it prev

[Devel] [PATCH RHEL9 COMMIT] mm/memcg: limit page cache in memcg hack

2021-10-19 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.10 --> commit 9b2548830f1532b53eb7fa9e6794e882cc69b184 Author: Andrey Ryabinin Date: Tue Oct 19 13:15:55 2021 +0300 mm/memcg: limit page cache

[Devel] [PATCH RH9 0/3] memcg page cache limit

2021-10-19 Thread Alexander Mikhalitsyn
https://jira.sw.ru/browse/PSBM-134013 Alexander Mikhalitsyn (2): mm: introduce page vz extension (using page_ext) configs: Enable CONFIG_PAGE_EXTENSION Andrey Ryabinin (1): mm/memcg: limit page cache in memcg hack include/linux/memcontrol.h| 9 + include/linux/page_e

[Devel] [PATCH RH9 2/3] configs: Enable CONFIG_PAGE_EXTENSION

2021-10-19 Thread Alexander Mikhalitsyn
CONFIG_PAGE_EXTENSION option required for "mm: per-memcg pagecache limitation" feature https://jira.sw.ru/browse/PSBM-134013 Signed-off-by: Alexander Mikhalitsyn --- redhat/configs/custom-overrides/generic/CONFIG_PAGE_EXTENSION | 1 + 1 file changed, 1 insertion(+) create mode 100644 redhat/c

[Devel] [PATCH RH9 1/3] mm: introduce page vz extension (using page_ext)

2021-10-19 Thread Alexander Mikhalitsyn
This module allows to manage per-page data. We will use it in memcg page cache limiting feature to store additional flag on page. We may also use this in the future in many other circumstances (for debugging and so on). See also mm/page_owner.c https://jira.sw.ru/browse/PSBM-131957 Signed-off-b

[Devel] [PATCH RH9 3/3] mm/memcg: limit page cache in memcg hack

2021-10-19 Thread Alexander Mikhalitsyn
From: Andrey Ryabinin Add new memcg file - memory.cache.limit_in_bytes. Used to limit page cache usage in cgroup. https://jira.sw.ru/browse/PSBM-77547 Signed-off-by: Andrey Ryabinin khorenko@: usecase: imagine a system service which anon memory you don't want to limit (in our case it's a vSto

Re: [Devel] [PATCH] binfmt_misc: fix mount after umount in CT

2021-10-19 Thread Alexander Mikhalitsyn
On Mon, 18 Oct 2021 19:51:49 +0300 Nikita Yushchenko wrote: > The assumption that bm_fill_super() is not called for the second time > for CT is wrong: umount operation clears sb->s_root, which causes > vfs_get_super() to call fill_super again on the next mount. > > Make bm_fill_super() handle mu

[Devel] [PATCH RHEL9 COMMIT] mm: introduce page vz extension (using page_ext)

2021-10-19 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.11 --> commit 14a325dbe6d95501bb4b0514c69b1294bb9a9cdb Author: Alexander Mikhalitsyn Date: Tue Oct 19 14:00:34 2021 +0300 mm: introduce page vz

[Devel] [PATCH RHEL9 COMMIT] configs: Enable CONFIG_PAGE_EXTENSION

2021-10-19 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.11 --> commit f2db16107a4e3da567fafc69a39b3c3354b65d60 Author: Alexander Mikhalitsyn Date: Tue Oct 19 14:00:35 2021 +0300 configs: Enable CONFI

Re: [Devel] [PATCH] binfmt_misc: fix mount after umount in CT

2021-10-19 Thread Alexander Mikhalitsyn
On Tue, 19 Oct 2021 13:59:34 +0300 Alexander Mikhalitsyn wrote: > On Mon, 18 Oct 2021 19:51:49 +0300 > Nikita Yushchenko wrote: > > > The assumption that bm_fill_super() is not called for the second time > > for CT is wrong: umount operation clears sb->s_root, which causes > > vfs_get_super() t

Re: [Devel] [PATCH RH9 0/6] part 18: port release agent virtualization

2021-10-19 Thread Alexander Mikhalitsyn
On Mon, 18 Oct 2021 15:50:04 +0300 Pavel Tikhomirov wrote: > Patches are massively reworked, see inpatch comments. > > https://jira.sw.ru/browse/PSBM-134002 > > Pavel Tikhomirov (1): > ve/cgroup: fix cgroup_mark_ve_roots naming > > Valeriy Vdovin (5): > cgroup/cfs: added 'activate' option

Re: [Devel] [PATCH] binfmt_misc: fix mount after umount in CT

2021-10-19 Thread Nikita Yushchenko
- bm_data = kzalloc(sizeof(struct binfmt_misc), GFP_KERNEL); - if (!bm_data) - return -ENOMEM; + INIT_LIST_HEAD(&bm_data->entries); + rwlock_init(&bm_data->entries_lock); - INIT_LIST_HEAD(&bm_data->entries); - rwlock_init(&bm_data->en

Re: [Devel] [PATCH] binfmt_misc: fix mount after umount in CT

2021-10-19 Thread Alexander Mikhalitsyn
On Tue, 19 Oct 2021 16:44:20 +0300 Nikita Yushchenko wrote: > >> - bm_data = kzalloc(sizeof(struct binfmt_misc), GFP_KERNEL); > >> - if (!bm_data) > >> - return -ENOMEM; > >> + INIT_LIST_HEAD(&bm_data->entries); > >> + rwlock_init(&bm_data->entries_lock); > >> > >>

[Devel] [PATCH vz8 v2] binfmt_misc: fix mount after umount in CT

2021-10-19 Thread Nikita Yushchenko
The assumption that bm_fill_super() is not called for the second time for CT is wrong: umount operation clears sb->s_root, which causes vfs_get_super() to call fill_super again on the next mount. Make bm_fill_super() handle multiple-calls corrently: - initialize bm_data and set ve->binfmt_misc onl

[Devel] [PATCH vz8] ve: fixes for !CONFIG_VE case

2021-10-19 Thread Nikita Yushchenko
Avoid several compile errors if CONFIG_VE is not defined. Signed-off-by: Nikita Yushchenko --- include/linux/sched.h| 2 +- include/linux/ve.h | 7 --- include/linux/ve_proto.h | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/sched.h b/include/lin

[Devel] [PATCH RHEL9 COMMIT] ploop: Introduce option "off=" to cut beginning of device

2021-10-19 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.12 --> commit 91501875022c2ebc572d48b6b2ea41525000c5ca Author: Kirill Tkhai Date: Tue Oct 19 20:24:45 2021 +0300 ploop: Introduce option "off="

Re: [Devel] [PATCH vz8 v2] binfmt_misc: fix mount after umount in CT

2021-10-19 Thread Vasily Averin
On 19.10.2021 17:40, Nikita Yushchenko wrote: > The assumption that bm_fill_super() is not called for the second time > for CT is wrong: umount operation clears sb->s_root, which causes > vfs_get_super() to call fill_super again on the next mount. > > Make bm_fill_super() handle multiple-calls cor

Re: [Devel] [PATCH vz8 v2] binfmt_misc: fix mount after umount in CT

2021-10-19 Thread Nikita Yushchenko
>> +#ifdef CONFIG_VE >> + ve->binfmt_misc = bm_data; >> + /* this will be cleared by ve_destroy() */ >> +#endif >> + } >> >>err = simple_fill_super(sb, BINFMTFS_MAGIC, bm_files); >> - if (err) { >> - kfree(bm_data); >> + if (err) >>