Why is my system ignoring vm.swappiness?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have previously set vm.swappiness to 0, which should mean my system only swaps when RAM is totally full.
$ cat /etc/sysctl.d/99-sysctl.conf
kernel.sysrq = 1
vm.swappiness=0
$ sysctl vm.swappiness
vm.swappiness = 0
However, recently it's started swapping aggressively, even seconds after clearing swap with sudo swapoff -a; sudo swapon -a. For example, after a few hours,
$ free -m
total used free shared buff/cache available
Mem: 32047 7914 325 1509 23807 22177
Swap: 1974 1974 0
Hence, I have 22177 MiB available. From man free:
available
Estimation of how much memory is available for starting new applications, without swapping.
However, my system is still swapping heavily, using 1974 MiB of swap space and slowing everything down.
I've also tried setting vm.swappiness to 1, with similar results. I've also tried different kernels, including the recent 4.18.16.arch1-1, the LTS 4.14.78-1, and the previous few LTS versions. How can I prevent my system swapping unnecessarily?
swap sysctl
add a comment |
up vote
0
down vote
favorite
I have previously set vm.swappiness to 0, which should mean my system only swaps when RAM is totally full.
$ cat /etc/sysctl.d/99-sysctl.conf
kernel.sysrq = 1
vm.swappiness=0
$ sysctl vm.swappiness
vm.swappiness = 0
However, recently it's started swapping aggressively, even seconds after clearing swap with sudo swapoff -a; sudo swapon -a. For example, after a few hours,
$ free -m
total used free shared buff/cache available
Mem: 32047 7914 325 1509 23807 22177
Swap: 1974 1974 0
Hence, I have 22177 MiB available. From man free:
available
Estimation of how much memory is available for starting new applications, without swapping.
However, my system is still swapping heavily, using 1974 MiB of swap space and slowing everything down.
I've also tried setting vm.swappiness to 1, with similar results. I've also tried different kernels, including the recent 4.18.16.arch1-1, the LTS 4.14.78-1, and the previous few LTS versions. How can I prevent my system swapping unnecessarily?
swap sysctl
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have previously set vm.swappiness to 0, which should mean my system only swaps when RAM is totally full.
$ cat /etc/sysctl.d/99-sysctl.conf
kernel.sysrq = 1
vm.swappiness=0
$ sysctl vm.swappiness
vm.swappiness = 0
However, recently it's started swapping aggressively, even seconds after clearing swap with sudo swapoff -a; sudo swapon -a. For example, after a few hours,
$ free -m
total used free shared buff/cache available
Mem: 32047 7914 325 1509 23807 22177
Swap: 1974 1974 0
Hence, I have 22177 MiB available. From man free:
available
Estimation of how much memory is available for starting new applications, without swapping.
However, my system is still swapping heavily, using 1974 MiB of swap space and slowing everything down.
I've also tried setting vm.swappiness to 1, with similar results. I've also tried different kernels, including the recent 4.18.16.arch1-1, the LTS 4.14.78-1, and the previous few LTS versions. How can I prevent my system swapping unnecessarily?
swap sysctl
I have previously set vm.swappiness to 0, which should mean my system only swaps when RAM is totally full.
$ cat /etc/sysctl.d/99-sysctl.conf
kernel.sysrq = 1
vm.swappiness=0
$ sysctl vm.swappiness
vm.swappiness = 0
However, recently it's started swapping aggressively, even seconds after clearing swap with sudo swapoff -a; sudo swapon -a. For example, after a few hours,
$ free -m
total used free shared buff/cache available
Mem: 32047 7914 325 1509 23807 22177
Swap: 1974 1974 0
Hence, I have 22177 MiB available. From man free:
available
Estimation of how much memory is available for starting new applications, without swapping.
However, my system is still swapping heavily, using 1974 MiB of swap space and slowing everything down.
I've also tried setting vm.swappiness to 1, with similar results. I've also tried different kernels, including the recent 4.18.16.arch1-1, the LTS 4.14.78-1, and the previous few LTS versions. How can I prevent my system swapping unnecessarily?
swap sysctl
swap sysctl
edited yesterday
asked yesterday
Sparhawk
8,81863789
8,81863789
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481822%2fwhy-is-my-system-ignoring-vm-swappiness%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown