From 170e05a8859a42004ace8b0dcaee25c88ae341ce Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Wed, 23 Jun 2021 15:03:37 +0200 Subject: [PATCH] update kernel settings --- configure-host-oel7/tasks/kernel_configuration.yml | 5 +++-- install-oracle-sw/tasks/main.yml | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure-host-oel7/tasks/kernel_configuration.yml b/configure-host-oel7/tasks/kernel_configuration.yml index b128705..6cc022c 100755 --- a/configure-host-oel7/tasks/kernel_configuration.yml +++ b/configure-host-oel7/tasks/kernel_configuration.yml @@ -6,8 +6,9 @@ sysctl: name={{ item.name }} value="{{ item.value }}" state=present reload=yes ignoreerrors=yes sysctl_file=/etc/sysctl.conf with_items: # 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.8 * ansible_memtotal_mb)*1024*1024)|round|int }}" } + # on suppose que 60% de la RAM sera affectée aux SGA + - { name: kernel.shmall, value: "{{ ((0.7 * ansible_memtotal_mb)*1024*1024/4096)|round|int }}" } +# - { name: kernel.shmmax, value: "{{ ((0.8 * ansible_memtotal_mb)*1024*1024)|round|int }}" } # - { name: kernel.shmmax, value: 4398046511104 } - { name: kernel.shmmni, value: 4096 } - { name: kernel.sem, value: "250 32000 100 128" } diff --git a/install-oracle-sw/tasks/main.yml b/install-oracle-sw/tasks/main.yml index a655fc6..11106c2 100644 --- a/install-oracle-sw/tasks/main.yml +++ b/install-oracle-sw/tasks/main.yml @@ -16,4 +16,3 @@ when: install_database - include: scripts_exploitation.yml -