From owner-freebsd-current Sun Nov 8 10:52:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA07461 for freebsd-current-outgoing; Sun, 8 Nov 1998 10:52:29 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from helios.dnttm.ru (dnttm-gw.rssi.ru [193.232.0.205]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA07097 for ; Sun, 8 Nov 1998 10:47:08 -0800 (PST) (envelope-from dima@tejblum.dnttm.rssi.ru) Received: (from uucp@localhost) by helios.dnttm.ru (8.9.1/8.9.1/IP-3) with UUCP id VAA25379; Sun, 8 Nov 1998 21:06:36 +0300 Received: from tejblum.dnttm.rssi.ru (localhost [127.0.0.1]) by tejblum.dnttm.rssi.ru (8.9.1/8.9.1) with ESMTP id VAA00888; Sun, 8 Nov 1998 21:06:30 +0300 (MSK) (envelope-from dima@tejblum.dnttm.rssi.ru) Message-Id: <199811081806.VAA00888@tejblum.dnttm.rssi.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: Eivind Eklund cc: dg@root.com, John Fieber , current@FreeBSD.ORG Subject: Re: The infamous dying daemons bug In-reply-to: Your message of "Sun, 08 Nov 1998 17:13:19 +0100." <19981108171319.19261@follo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 08 Nov 1998 21:06:29 +0300 From: Dmitrij Tejblum Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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