MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SYNOPSIS |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame^] | 2 | void quota_demon(void) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
| 4 | DESCRIPTION |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame^] | 5 | Handle quotas in times of memory shortage. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 6 | |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame^] | 7 | This function is called during the final phase of a garbage |
| 8 | collection if the reserved user area couldn't be reallocated. |
| 9 | This function (or a called demon) has now the opportunity to |
| 10 | remove some (still active) objects from the system. If this does |
| 11 | not free enough memory to reallocate the user reserve, |
| 12 | slow_shut_down() will be called to start Armageddon. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 13 | |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame^] | 14 | Up to now, the wizlist lacks various informations needed to |
| 15 | detect the memory-hungriest users. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 16 | |
| 17 | SEE ALSO |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame^] | 18 | slow_shut_down(M) |