- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Swap Memory Usage for HDFS, Yarn and Impala
- Labels:
-
Apache Impala
-
Apache YARN
-
Cloudera Manager
-
HDFS
Created on ‎09-28-2017 03:16 AM - edited ‎09-16-2022 05:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We have been getting regular warning messages of Swap Memory being utilized more than the threshold limit.
Currently, we have set swap memory threshold as below:
For,
HDFS = 100 MB
Impala = 30 MB
Yarn = 500 MB (Could be +-20%, I dont remember the exact number).
Swap Memory usage for each of the component is crossing the threshold and reaches upto 720 MB (in case of Yarn). Because of this, we usually see warnings on our CM dashboard.
I know increasing the Swap Memory Threshold could remove these warnings, however, we would prefer rather reducing the usage.
Would be great if anyone could suggestion any Memory Tuning options which would reduce the usage of Swap Memory. Also, if there is a best recommendations of setting memory usage threshold, kindly share that as well.
Thanks
Snm
Created ‎09-28-2017 06:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
did you set the swappiness in the OS?
Best
Andy
Created ‎09-28-2017 10:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply.
Yes, swappiness is set to 1.
Regards,
snm
Created ‎09-28-2017 08:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cloudera recommends the following:
Essentially, we don't want swapping to occur.
Created ‎09-28-2017 10:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the reply.
We have already set the swappiness to 1. Still getting these swappiness warnings.
Regards,
Snm
Created ‎04-10-2018 03:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Disk IO intensive workloads can cause the kernel to swap even if swappiness is set to 1.
Have you tried increasing the vm.vfs_cache_pressure kernel parameter on all worker nodes? Here is a post on how to fine tune the parameter: http://datavelo.com/en/2018/04/10/kernel-swapping-vm-swappiness-1
Best,
z
Created ‎08-30-2018 08:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any working solution for the swap problem?
We have same problem on CentOS 7 with CDH Enterprise 5.14.0
DataNode, NodeManager, YarnChild processes are swapping
Created ‎08-21-2019 10:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As a temporary fix you can use linux command swapoff -a && swapon -a to move swap. Just make sure you have enough free memory to move swap to (top command)
