From e6a3f88726f1f9af7c28b6324f0cea07134c6f3b Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Tue, 22 Jun 2021 12:27:30 +0200 Subject: [PATCH] Update kernel_configuration.yml --- configure-host-oel7/tasks/kernel_configuration.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure-host-oel7/tasks/kernel_configuration.yml b/configure-host-oel7/tasks/kernel_configuration.yml index 233be1e..f34136b 100755 --- a/configure-host-oel7/tasks/kernel_configuration.yml +++ b/configure-host-oel7/tasks/kernel_configuration.yml @@ -5,7 +5,8 @@ - name: Ajustement des paramètres du Kernel sysctl.conf sysctl: name={{ item.name }} value="{{ item.value }}" state=present reload=yes ignoreerrors=yes sysctl_file=/etc/sysctl.conf with_items: - - { name: kernel.shmall, value: "{{ ((0.4 * ansible_memtotal_mb)*1024*1024)|round|int }}" } + # shmall = 50% de la RAM pour les SGA Oracle, divisé par PAGE_SIZE (getconf PAGE_SIZE = 4096) + - { name: kernel.shmall, value: "{{ ((0.8 * ansible_memtotal_mb)*1024*1024/4096)|round|int }}" } # - { name: kernel.shmmax, value: "{{ ((0.55 * ansible_memtotal_mb)*1024*1024)|round|int }}" } - { name: kernel.shmmax, value: 4398046511104 } - { name: kernel.shmmni, value: 4096 } @@ -37,7 +38,7 @@ - "* hard memlock {{ [((0.9 * ansible_memtotal_mb)*1024)|round|int,134217728] | max }}" - "* soft stack 10240" - "* hard stack 32768" - - "* soft core unlimited" - - "* hard core unlimited" + - "* soft core unlimited" + - "* hard core unlimited" tags: seclimit