Memory swap occurs while the pagecache is reclaimed
Memory swap occurs while the pagecache is reclaimed
https://access.redhat.com/solutions/2300121
Solution Verified - Updated August 9 2024 at 4:26 AM - English Environment Red Hat Enterprise Linux 7.2 with a large memory size Issue If most or all of the memory is consumed in the pagecache and a very large anonymous memory workload is applied to the system swapping can occur at the same time the pagecache memory is being reclaimed for the anonymous workload. The behaviour may result in the depletion of the swap space and OOM of processes. Resolution Disable transparent huge pages (THP) as follows: Raw echo never > /sys/kernel/mm/transparent_hugepage/enabled Root Cause Transparent huge pages(THP) (2MB) is enabled by default which consumes free memory much faster than small pages(4KB). Allocating and touching 2MB pages happens 512 times faster than allocating and touching 4KB pages. Product(s) Red Hat Enterprise LinuxComponent kernelCategory Hardware CertificationTags kernel memory This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Was this helpful?
People who viewed this solution also viewed Premature swapping while there is still plenty of pagecache to be reclaimed Solution - 23 Jun 2025 Default pagecache reclaim policy on RHEL 5 NUMA systems can cause HPC performance degradation Solution - 7 Aug 2024 Does KSM work with pagecache in RHEL? Solution - 6 Aug 2024 Get notified when this content is updated Comments Newbie Add your comment: Add comment Send notifications to content followers Submit Newbie 7 points Apr 10, 2021 3:02 AM Bernhard says: yes
Reply