IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

EDR: Server Is Using Swap, Is That Bad?

EDR: Server Is Using Swap, Is That Bad?

Environment

  • EDR Server: All Versions

Question

The EDR server is using swap, should this be a concern?

Answer

Unless the server is experiencing performance issues, this should not be a concern. 
However, If you are seeing kswap process in contention for using the most CPU, this would indicate the server does not have physical memory to handle what is being performed on the box. 
ps -aef | grep kswap

Additional Notes

  • Linux uses Opportunistic swapping. This is where items in memory that are more idle can be moved to swap and not negatively impact performance. Unless swap is set to 0 (not recommended) it is expected to see some amount of swap. 
  • Linux servers that have a long uptime will see more swap usage in the vmstat output as this is from overall usage during the uptime. The longer the server is up, the more likely to see swap being used. 
  • Swap usage is not always an indication of not enough memory, the Kernel can choose to use swap as it see's fit even when there is plenty of free memory remaining. 
  • If kswap is consistently using high CPU, this is an indication that swap is being relied on too much due to limited physical memory available and eventually will lead to performance issues if none has been experienced so far. 

Related Content


Labels (2)
Tags (3)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎11-02-2022
Views:
357
Contributors