Resolved How to interpret Cgroups limits

klowet

Basic Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
18.0.68 Update #2
Hi

I have a question about Cgroups. See eg. the settings below.
When the 'period to check' is set to '1 hour', what exactly does that mean?
  • May the CPU/RAM usage never exceed its limit?
  • Or not more then x-minutes?
  • Or not more than 1 full hour?
For example the RAM limit of 2 GB: is this subscription able to use 3 GB for 1 hour and does Cgroups kicks in after that hour?

1745580044523.png
 
"Period to check" is only related to the "Notify when exceeded" option. Cgroups Manager counts the average consumption for each 5-minute interval. So, if you set it to an hour that will make a total of 12 intervals. If the threshold is exceeded in all 12 intervals Cgroups Manager will send a notification. Here's the documentation for further reference:

 
Okay, so:
  • 'Period to check CPU/RAM usage' is only related to the 'Notify when exceeded' threshold is exceeded for that period of time.
  • The 'Limit' is checked for the consumption for the last 5 minutes and kills the processes consuming more CPU / RAM?
Correct?
 
'Period to check CPU/RAM usage' is only related to the 'Notify when exceeded' threshold is exceeded for that period of time.

Correct

The 'Limit' is checked for the consumption for the last 5 minutes and kills the processes consuming more CPU / RAM?

The 5 minute interval is applied for the monitoring/notification purposes. As far as I am aware, the limit enforcement is in real time.
 
Back
Top