User`s guide
Managing Resources 117
During its life cycle, any process running inside the Container is checked against the available
rules in the /etc/vzslm.d/default.conf file from top to bottom and the first matching
rule is applied to it. So, if the following 2 rules are present in the default.conf file
"httpd" 0000001c -1 2
"httpd" 00000016 -1 1
the first rule ("httpd" 0000001c -1 2) will be applied to all httpd processes inside
all Containers on the server.
You can create your own SLM pattern configuration files with your own rules and apply them to
particular Containers on the server. For example, if you want Container 101 to start using a
configuration file different from /etc/vzslm.d/default.conf, you can proceed as
follows:
1 Create a new file with an arbitrary name and the .conf extension (e.g. by means of vi)
and place it to the /etc/vzslm.d directory on the server.
2 Make Container 101 use the newly created configuration file. Assuming that the
configuration file name is light.conf, you can do it by issuing the following command
on the server:
# pctl set 101 --slmpattern light --save
Saved parameters for Container 101
Note: If you want to make all Containers on the server use another SLM pattern
configuration file, you should specify the name of this file without the .conf extension
(e.g. light) as the value of the SLMPATTERN parameter in the /etc/vz/vz.conf
configuration file.










