[Bug 257314] FBSD 13 crash after some KDE parts crash supposing out of swap space

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 23 Jul 2021 22:14:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257314

--- Comment #25 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #16)

I guessed wrong, in swap_pager_getpages_locked there is:

        while ((ma[0]->oflags & VPO_SWAPINPROG) != 0) {
                ma[0]->oflags |= VPO_SWAPSLEEP;
                VM_CNT_INC(v_intrans);
                if (VM_OBJECT_SLEEP(object, &object->handle, PSWP,
                    "swread", hz * 20)) {
                        printf(
"swap_pager: indefinite wait buffer: bufobj: %p, blkno: %jd, size: %ld\n",
                            bp->b_bufobj, (intmax_t)bp->b_blkno, bp->b_bcount);
                }
        }

So the "swap_pager: indefinite wait buffer:" are only for
reads and not for writes.

It also looks like the time is 20 seconds before such a
message is reported, not the 30 sec that I'd been told.

Part of the issue might be if write activity delays
pending read activity in the queue.

-- 
You are receiving this mail because:
You are the assignee for the bug.