Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
informatique:nix:linux:tuning [2018/02/09 15:43] – [Sémaphores] ben | informatique:nix:linux:tuning [2018/02/09 15:44] (Version actuelle) – [Calcul des valeurs] ben | ||
---|---|---|---|
Ligne 353: | Ligne 353: | ||
==== Calcul des valeurs ==== | ==== Calcul des valeurs ==== | ||
+ | Source ((https:// | ||
* Calculate the minimum total semaphore requirements using the following formula: | * Calculate the minimum total semaphore requirements using the following formula: | ||
Ligne 363: | Ligne 364: | ||
Set semmsl (semaphores per set) to 256.\\ | Set semmsl (semaphores per set) to 256.\\ | ||
Set semmni (total semaphores sets) to semmns / semmsl rounded up to the nearest multiple of 1024.\\ | Set semmni (total semaphores sets) to semmns / semmsl rounded up to the nearest multiple of 1024.\\ | ||
+ | \\ | ||
The following formula can be used as a guide, although in practice, SEMMNS and SEMMNU can be much less than SEMMNI * SEMMSL because not every program in the system needs semaphores. | The following formula can be used as a guide, although in practice, SEMMNS and SEMMNU can be much less than SEMMNI * SEMMSL because not every program in the system needs semaphores. | ||
SEMMNS = SEMMNU = (SEMMNI * SEMMSL) | SEMMNS = SEMMNU = (SEMMNI * SEMMSL) |