Hierarchical Resource Limits - уже в CURRENT

Обсуждение всяких разных новостей.
терминус_
проходил мимо

Hierarchical Resource Limits - уже в CURRENT

Непрочитанное сообщение терминус_ » 2011-06-10 15:27:31

http://wiki.freebsd.org/Hierarchical_Resource_Limits
Edward Tomasz Napierala допилил HRL (RCTL). Судя по вики - выглядит это очень вкусно!
Как-то пропустили эту новость. Решил запостить сюда.
This is what RCTL provides:

1. Resource limits apply to what the system administrator wants them to apply. What the resource limit applies to is determined by the "subject" field of RCTL rule. For example, subject may be "process:1234" or "user:trasz" or "jail:42".

2. Resource limits do what the administrator wants them to do. Action to be taken when the limit gets exceeded is determined by the "action" field of RCTL rule. Example actions are "deny" (which means denying the allocation), "sighup" (which means sending SIGHUP to the offending process) and "log" (which means logging message to the syslog). There may be several rules with the same subject and resource, differing by action - for example, one may set rule so that when the offending process exceeds 500MB of memory, a warning gets logged to the syslog; when it exceeds 1GB of memory, the SIGHUP is sent to the process, and when it exceeds 2GB of memory, it gets killed with SIGKILL.

3. Resource limits are stored as RCTL rules, kind of similar to firewall rules. Rules look like this: "process:613:stacksize:deny=536870912", and may be added and removed by the system administrator at any time. When a rule is added, it is enforced immediately, without the need to restart any process.
Most of the code was merged into FreeBSD 9-CURRENT. To use it, add

Код: Выделить всё

options RACCT
options RCTL
to the kernel config file and rebuild your kernel.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35454
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: Hierarchical Resource Limits - уже в CURRENT

Непрочитанное сообщение Alex Keda » 2011-06-10 22:56:51

зер гуд
но с переводом было бы лучше
Убей их всех! Бог потом рассортирует...