P
P
Pavel Bezrukov2015-12-19 21:21:18
linux
Pavel Bezrukov, 2015-12-19 21:21:18

Why is swap filled if RAM is free?

Good afternoon.
On Ubuntu 14.04 server, KVM
htop showed:
Mem: 1736/3953MB
Swp: 502/510MB
mysql ate 1700mb, after restarting mysql, Mem:1742/3953MB, swap turned out to be 10/510MB.
For what reason can RAM not be used, but go to swap?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Skobkin, 2015-12-19
@bezrukovPS

Because the Swappiness value is set like this .
Is it worth changing is a good question. You can clear it once with swapoff and swapon.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question