Date: Sun, 08 Nov 1998 21:06:29 +0300 From: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> To: Eivind Eklund <eivind@yes.no> Cc: dg@root.com, John Fieber <jfieber@indiana.edu>, current@FreeBSD.ORG Subject: Re: The infamous dying daemons bug Message-ID: <199811081806.VAA00888@tejblum.dnttm.rssi.ru> In-Reply-To: Your message of "Sun, 08 Nov 1998 17:13:19 %2B0100." <19981108171319.19261@follo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Eivind Eklund wrote:
>
> Oh, and another aspect: This suddenly started happening. It has been
> stable for 3/4 of a year, and then suddenly started happening
> reproducably one day, after a kernel update while John was doing his
> changes.
Please don't tell anyone, but I am almost convinced that the bug is
here:
-----swap_pager.c, line 1132------
/*
* If we're out of swap space, then attempt to free
* some whenever multiple pages are brought in. We
* must set the dirty bits so that the page contents
* will be preserved.
*/
if (SWAPLOW ||
(vm_swap_size < btodb((cnt.v_page_count - cnt.v_wire_count)) * PAGE_SIZE)) {
for (i = 0; i < count; i++) {
m[i]->dirty = VM_PAGE_BITS_ALL;
}
swap_pager_freespace(object,
m[0]->pindex + paging_offset, count);
}
------------------------------------
If I sysctl out the call to swap_pager_freespace, all symptoms
disappear. This code activates at about the time when the "suggest more
swap space" message printed. IIRC, it was introduced by John Dyson this
winter.
(Perhaps, the code just triggers a bug elsewhere... No idea what is
wrong).
Dima
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811081806.VAA00888>
