[Users] About CT Preset debian package and service

Paulo Coghi - Coghi IT paulocoghi at gmail.com
Wed Jul 12 21:31:43 MSK 2023


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20230712/88abd8c7/attachment.html>


More information about the Users mailing list