Docsity

oracle linux min free bytes configuration, Study notes of Computer science

Toggle sidebar
bg1
vm.min_free_kbytes Configuration Guide
Purpose
To ensure the Linux kernel parameter vm.min_free_kbytes is configured within Oracle’s
recommended range.
This prevents memory pressure, node eviction, and performance degradation in Oracle RAC
environments.
Background
The vm.min_free_kbytes parameter defines the minimum amount of free memory that the
kernel reserves for critical operations.
If this value is too low, the system may struggle to reclaim memory, leading to performance
instability or cluster node eviction.
Oracle Recommendation (Simplified):
System Memory
(RAM) Recommended Setting
< 40 GB 0.5% of total RAM
40–60 GB 1 GB
≥ 60 GB MAX(1 GB × NUMA nodes, 0.5% of
total RAM)
For a system with 10 GB RAM,
0.5% × 10 GB = ≈ 50 MB (51200 KB)
Oracle recommends rounding up to at least 512 MB (524288 KB) for stability in RAC
environments.
Verification Steps
1. Check current value:
cat /proc/sys/vm/min_free_kbytes
2. Check total system memory:
grep MemTotal /proc/meminfo
Remediation Steps
Option A – Temporary Change (Runtime Only)
To test the setting without reboot:
sysctl -w vm.min_free_kbytes=524288
Takes effect immediately, but resets after reboot.
Option B – Permanent Configuration (Recommended)
1. Add or update the value in a system control file.
echo "vm.min_free_kbytes = 524288" > /etc/sysctl.conf
2. Apply the change without reboot:
sysctl -p /etc/sysctl.conf
3. Verify new value:
cat /proc/sys/vm/min_free_kbytes
pf2

Partial preview of the text

Download oracle linux min free bytes configuration and more Study notes Computer science in PDF only on Docsity!

vm.min_free_kbytes Configuration Guide

Purpose To ensure the Linux kernel parameter vm.min_free_kbytes is configured within Oracle’s recommended range. This prevents memory pressure, node eviction, and performance degradation in Oracle RAC environments. Background The vm.min_free_kbytes parameter defines the minimum amount of free memory that the kernel reserves for critical operations. If this value is too low, the system may struggle to reclaim memory, leading to performance instability or cluster node eviction. Oracle Recommendation (Simplified): System Memory (RAM) Recommended Setting < 40 GB 0.5% of total RAM 40–60 GB 1 GB ≥ 60 GB MAX(1 GB × NUMA nodes, 0.5% of total RAM) For a system with 10 GB RAM , 0.5% × 10 GB = ≈ 50 MB (51200 KB) Oracle recommends rounding up to at least 512 MB (524288 KB) for stability in RAC environments. Verification Steps

  1. Check current value: cat /proc/sys/vm/min_free_kbytes
  2. Check total system memory: grep MemTotal /proc/meminfo Remediation Steps Option A – Temporary Change (Runtime Only) To test the setting without reboot: sysctl -w vm.min_free_kbytes= Takes effect immediately, but resets after reboot. Option B – Permanent Configuration (Recommended)
  3. Add or update the value in a system control file. echo "vm.min_free_kbytes = 524288" > /etc/sysctl.conf
  4. Apply the change without reboot: sysctl -p /etc/sysctl.conf
  5. Verify new value: cat /proc/sys/vm/min_free_kbytes
  1. Reboot to confirm persistence: reboot now