• Comments
  • Required configurations to use swap space

    Posted on

    Hi,

    In our environment we have a application deployed in VMWare vCenter as RHEL 7.8 virtual machine; hardware configuration can be seen in VMHardware printscreen

    Our RHEL virtual machine have following details:
    - version: Red Hat Enterprise Linux Server release 7.8 (Maipo) 3.10.0--1127.8.2.el7.x86_64
    - swap space 8GB
    - /proc/sys/vm/swappiness
    30
    - /etc/sysctl.conf
    kernel.randomize_va_space = 2
    net.ipv4.conf.default.send_redirects = 0
    net.ipv4.conf.all.send_redirects = 0
    net.ipv4.ip_forward = 0
    net.ipv4.conf.all.accept_source_route = 0
    net.ipv4.conf.all.accept_redirects = 0
    net.ipv4.conf.all.secure_redirects = 0
    net.ipv4.conf.default.accept_source_route = 0
    net.ipv4.conf.default.secure_redirects = 0
    net.ipv4.conf.default.accept_redirects = 0
    net.ipv6.conf.default.accept_redirects = 0
    net.ipv4.conf.default.proxy_arp = 0
    net.ipv4.tcp_timestamps = 0
    net.ipv6.conf.all.accept_source_route = 0
    net.ipv4.conf.all.log_martians = 1
    net.ipv4.conf.default.log_martians = 1
    net.ipv4.icmp_echo_ignore_broadcasts = 1
    net.ipv4.icmp_ignore_bogus_error_responses = 1
    net.ipv4.tcp_syncookies = 1
    net.ipv4.conf.all.rp_filter = 1
    net.ipv4.conf.default.rp_filter = 1

    This configuration does not use the available swap space, so VM memory usage is almost full
    What configurations are required in RHEL to use the available swap space?

    by

    points

    Responses

    Red Hat
    © 2025 Red Hat, Inc.