-2

@ mr.spuratic,

Can you please explain how to reduce swap_usage memory in the system considering active and inactive memory.

Will the command free && sync && echo 3 > /proc/sys/vm/drop_caches && echo "" && free helps in reducing the swap usage?

Thanks JS

3
  • 2
    Why do you want to "reduce swap usage", what do you think you'll achieve with that? The only sensible thing to do for reducing swap usage is to either buy more memory or start fewer programs.
    – ckujau
    May 25, 2017 at 4:43
  • Who is mr.spuratic?
    – schaiba
    May 25, 2017 at 11:24
  • Maybe this guy? - unix.stackexchange.com/users/31352/mr-spuratic
    – user34720
    May 25, 2017 at 11:29

1 Answer 1

0

Red Hat recommand to avoid 0. Choose 10 or 5 in value not least for swapiness.

Extract of tuning docs RHEL7 : Warning Setting swappiness==0 will very aggressively avoids swapping out, which increase the risk of OOM killing under strong memory and I/O pressure. *

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .