Bug #3187

Kernel: multiple swap pager messages during hammer cleanup

Added by t_dfbsd 5 months ago. Updated 10 days ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


On master, commit a19800f223, running hammer cleanup causes dozens of messages like this and causes the machine to become inaccessible by network services, SSH in particular, although ping still works:

May 23 19:20:14 <kern.crit> boojum kernel: swap_pager: indefinite wait buffer: bp 0xfffff800735334d8 offset: 5092941824, size: 4096 m=0xfffff8005fee7580 busy=e0000000 flags=00004080

This behavior was also observed at commit d29a2431b3, so whatever is causing it is probably earlier than that. When I ran hammer cleanup today, the last thing I noticed running before my SSH connection died was hammer reblock-btree. This was on a 8TB encrypted volume.


dmesg.boot (88 KB) dmesg.boot t_dfbsd, 08/13/2019 02:00 PM
fstab (976 Bytes) fstab t_dfbsd, 08/13/2019 02:03 PM



Updated by t_dfbsd 5 months ago

hammer cleanup is unusable until this gets fixed. I've disabled the script in periodic daily for now.


Updated by t_dfbsd 2 months ago

Adding some machine info:

Samsung 1TB SSD containing:
- 60GB encrypted swap (via fstab crypt option)
- encrypted root

Data drives:
- 10TB SATA encrypted primary
- 8TB SATA encrypted backup (hammer-mirrored PFSes from primary drive)


Updated by dillon about 2 months ago

  • Assignee set to dillon

I am going to guess that it is an interaction with the encrypted swap that is causing the problem.

Try turning off encryption on your swap partition (in your /etc/fstab), reboot, and see if the problem reoccurs.



Updated by t_dfbsd 10 days ago

This continues to fail on a regular basis and turning off encrypted swap didn't help. Unfortunately, the nature of this failure is such that it won't allow me to get core dump. The only fix is to reboot the machine which is needed several times a week.

Also available in: Atom PDF