You are not logged in.

#1 2021-12-05 14:40:24

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,621
Website

spammed with kernel: get_swap_device: Bad swap file entry [SOLVED]

About 1-1/2 hours into an rsync backup, my workstation became unresponsive.  I had to hard reset.  Upon inspecting journalctl, I found the entire 100 MB of it was spammed with repeating lines like this:

Dec 05 09:27:43 quadruple kernel: get_swap_device: Bad swap file entry 3fffe7fffffff
Dec 05 09:27:43 quadruple kernel: get_swap_device: Bad swap file entry 3fffe7fffffff
...

This machine has 64G of memory and no swap defined.  Kernel is 5.15.6.arch2-1.  Googling this does not give relevant hits.  Any insights are appreciated.

Last edited by graysky (2021-12-06 07:47:01)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2021-12-05 15:02:00

seth
Member
Registered: 2012-09-03
Posts: 54,562

Offline

#3 2021-12-05 16:13:28

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,621
Website

Re: spammed with kernel: get_swap_device: Bad swap file entry [SOLVED]

@seth - ah, yes

% cat /sys/module/zswap/parameters/enabled
Y

Was unaware of zswap, thanks for the pointer.

The patch you called out seems to just suppress the warning.  I am wondering what put the machine in that state in the first place.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2021-12-05 16:54:19

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: spammed with kernel: get_swap_device: Bad swap file entry [SOLVED]

Not sure whether it's strictly zswap related.

swapon

Do you maybe keep a swapfile for hibernation?

Offline

#5 2021-12-05 17:07:33

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,621
Website

Re: spammed with kernel: get_swap_device: Bad swap file entry [SOLVED]

I do not.  I was able to finish the rsync backup with seeing this again.  It is a bit disturbing that it caused a GUI and keyboard freeze.  I could ping the box from another on the LAN.  I do not have ssh enabled on it so I couldn't attempt a graceful reboot.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2021-12-05 20:35:59

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: spammed with kernel: get_swap_device: Bad swap file entry [SOLVED]

I could imagine that the system tries to swap out, but doesn't find valid swap space.
You could try to
a) add (and swapon) a dummy swapfile (doesn't have to be huge, just there)
b) set "sudo sysctl vm.swappiness=0" to lower the chance of a swapout

Offline

#7 2021-12-05 21:03:30

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,894
Website

Re: spammed with kernel: get_swap_device: Bad swap file entry [SOLVED]

Check your memory health.


Juri divino omnia sunt communia

Offline

#8 2021-12-05 22:32:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,621
Website

Re: spammed with kernel: get_swap_device: Bad swap file entry [SOLVED]

Head_on_a_Stick wrote:

Check your memory health.

Good call, wrought with memtest86+ errors unfortunately.  Looks like I am off to the lovely RMA game.  Thanks for the suggestion.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB