PROCESS ISOLATION IN THE ALT OPERATING SYSTEM USING CGROUPS V2 MECHANISMS
Abstract
The problem of computational resource management in multitasking operating systems is of particular importance in the context of widespread use of containerization environments and the need to simultaneously execute tasks with different resource requirements. Traditional Linux mechanisms – nice, cpulimit, and ulimit – do not provide comprehensive group isolation: nice sets only a recommended priority, cpulimit uses SIGSTOP/CONT signals, and ulimit restricts only the user session. The workload interference problem, known as the 'noisy neighbor' effect, remains a key challenge in system administration and information security. Purpose: experimental quantitative evaluation of the efficiency of cgroups v2 resource isolation mechanisms in the Alt Linux distribution (kernel 6.1.115). Methods. To verify hypotheses H1a (CPU isolation) and H1b (memory isolation), a series of controlled experiments was conducted using cpuset and memory.max controllers with varying workloads: 1–2 cores, memory limits of 50–500 MB, and a mixed scenario with priority and background processes. Measured metrics: PSR (CPU core affinity), nr_switches (context switches), memory.events (OOM Killer counters). Results. With cpuset, PSR matched the assigned core in 100% of observations; nr_switches was 3–4 without cross-group migration. When the memory.max limit was exceeded, the OOM Killer mechanism (oom_kill=1) was activated without affecting other groups. Conclusions. Hypotheses H1a and H1b are fully confirmed. Cgroups v2 demonstrates significant advantages over traditional isolation mechanisms. The mechanisms may support selected resource-separation and exhaustion-control requirements; however, the experiment alone does not demonstrate full compliance with FSTEC Order No. 118 or PCI DSS 4.0.
Online viewer
References
- Носенко, Д. И. Сетевое и системное администрирование. Подготовка к Демонстрационному экзамену КОД 09.02.06-1-2025 : практикум / Д. И. Носенко, А. П. Золотарёв, А. Г. Уймин [и др.]. – Саратов : Профобразование, 2025. – 216 с. – ISBN 978-5-4488-2908-6. – URL: https://www.iprbookshop.ru/159510.html (дата обращения: 13.05.2025). – Текст : электронный.
- Уймин, А. Г. Моделирование телекоммуникационной сети средствами сетевых инструментов Linux: инструменты создания цифровых двойников / А. Г. Уймин, О. Р. Никитин // I-methods. – 2023. – Т. 15, № 2. – EDN NFJDVH.
- Nice and Renice Command in Linux [Электронный ресурс] // GeeksforGeeks. – 2025. – URL: https://www.geeksforgeeks.org/linux-unix/nice-and-renice-command-in-linux-with-examples/ (дата обращения: 14.05.2025). – Текст : электронный.
- Cpulimit: CPU usage limiter for Linux [Электронный ресурс] // GitHub. – 2025. – URL: https://github.com/opsengine/cpulimit (дата обращения: 14.05.2025). – Текст : электронный.
- Ulimit(3) – Linux manual page [Электронный ресурс] // man7.org. – 2025. – URL: https://man7.org/linux/man-pages/man3/ulimit.3.html (дата обращения: 14.05.2025). – Текст : электронный.
- Control Group v2 – The Linux Kernel documentation [Электронный ресурс] // The Linux Kernel. – 2025. – URL: https://docs.kernel.org/admin-guide/cgroup-v2.html (дата обращения: 14.05.2025). – Текст : электронный.
- Conway, J. Re: Getting out ahead of OOM [Электронный ресурс] / J. Conway // pgsql-admin Mailing List. – 2025. – URL: https://postgrespro.com/list/id/e52f00fc-ffe3-4745-8082-b492f44c6693@joeconway.com (дата обращения: 14.05.2025). – Текст : электронный.
- Namespaces (7) – Linux manual page [Электронный ресурс] // man7.org. – 2024. – URL: https://man7.org/linux/man-pages/man7/namespaces.7.html (дата обращения: 14.05.2025). – Текст : электронный.
- Wiedner, F. Control Groups Added Latency in NFVs: An Update Needed? / F. Wiedner, A. Daichendt, J. Andre, G. Carle // 2023 IEEE Conference on Network Function Virtualization and Software Defined Networks (NFV-SDN). – 2023. – P. 40–45. – DOI: 10.1109/NFV-SDN59219.2023.10329612.
- systemd.resource-control — Resource Control Unit Settings [Электронный ресурс] // freedesktop.org. – 2025. – URL: https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html (дата обращения: 30.09.2025). – Текст : электронный.
- Крайнов, П. А. Мониторинг системы контрольных групп процессов в ОС Альт / П. А. Крайнов, С. А. Пашина // Всероссийский сборник статей и публикаций института развития образования, повышения квалификации и переподготовки. – 2025. – URL: https://ropkip.ru/publication/415456 (дата обращения: 14.05.2025). – Текст : электронный.
- ОС Альт – Документация [Электронный ресурс] // BaseALT. – 2025. – URL: https://docs.altlinux.org/ru-RU/index.html (дата обращения: 14.05.2025). – Текст : электронный.
- Об утверждении Требований по безопасности информации к средствам контейнеризации : приказ ФСТЭК России от 4 июля 2022 г. № 118 [Электронный ресурс] // ГАРАНТ. – 2022. – URL: https://base.garant.ru/405955413/ (дата обращения: 14.05.2025). – Текст : электронный.
- ГОСТ Р 59006-2020. Защита информации. Доверенная загрузка. Термины и определения [Электронный ресурс]. – М. : Стандартинформ, 2020. – URL: https://docs.cntd.ru/document/1200174521 (дата обращения: 13.05.2025). – Текст : электронный.
- PCI Data Security Standard (PCI DSS) version 4.0.1 [Электронный ресурс] // PCI Security Standards Council. – 2024. – URL: https://www.pcisecuritystandards.org/document_library/ (дата обращения: 13.05.2025). – Текст : электронный.
License
Copyright (c) 2025 E. A. Eremina, A. N. Prostova (Author)