Hello OpenVZ community,

Recently I identified a package called "ctpreset" on a new container
created, installed from here [1], and after looking into the .deb's
content, I found that it overrides some systemd configs (copied below)
every Monday at 01:00.
The overrides are:

[Manager]
DefaultCPUAccounting=no
DefaultIOAccounting=no
DefaultIPAccounting=no
DefaultBlockIOAccounting=no
DefaultMemoryAccounting=no
DefaultTasksAccounting=no
DefaultTasksMax=infinity

Continuing the research, I found that Systemd started enabling those flags
from kernel 4.15 and newer [2] and it's interesting to see that if we would
like to disable such resource accounting, we would need to regularly
"fight" the systemd config.

>From a performance perspective, I see such measures as positive,
considering that OpenVZ itself already does the resource accounting for the
container.

I would like to know your opinion :)

Paulo Coghi

[1] https://repo.virtuozzo.com/ctpreset/deb/
[2]
https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to