From owner-freebsd-questions Mon Dec 15 12:44:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA11750 for questions-outgoing; Mon, 15 Dec 1997 12:44:08 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA11694; Mon, 15 Dec 1997 12:43:58 -0800 (PST) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id PAA01881; Mon, 15 Dec 1997 15:43:55 -0500 (EST) (envelope-from toor) Message-Id: <199712152043.PAA01881@dyson.iquest.net> Subject: Re: 2.2.5 problems with fxp0? In-Reply-To: <199712151727.MAA00765@dyson.iquest.net> from "John S. Dyson" at "Dec 15, 97 12:27:49 pm" To: dyson@FreeBSD.ORG Date: Mon, 15 Dec 1997 15:43:55 -0500 (EST) Cc: henrich@crh.cl.msu.edu, freebsd-questions@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk John S. Dyson said: > Charles Henrich said: > > I keep getting random system reboots on my heavily utilized news server with > > an Intel Etherexpress 10/100B inside. I cant trace the error to any > > particular item, nor do I see any weird log entries :( I didnt have any > > problems with an older de0 card in the system.. Anyone else experience similar > > problems? > > > *please* anyone running with 2.2.5 who is experiencing wierd problems, try > the vm_page.c from -stable. > Anyone with any problems on 2.2.5 should probably apply the patch below (it might be backwards -- otherwise it is correct.) Index: sys/vm/vm_page.c =================================================================== RCS file: /local/home/ncvs/src/sys/vm/vm_page.c,v retrieving revision 1.69.2.3 retrieving revision 1.69.2.5 diff -C4 -r1.69.2.3 -r1.69.2.5 *** vm_page.c 1997/03/25 04:54:35 1.69.2.3 --- vm_page.c 1997/11/06 04:33:01 1.69.2.5 *************** *** 33,41 **** * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91 ! * $Id: vm_page.c,v 1.69.2.3 1997/03/25 04:54:35 dyson Exp $ */ /* * Copyright (c) 1987, 1990 Carnegie-Mellon University. --- 33,41 ---- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91 ! * $Id: vm_page.c,v 1.69.2.5 1997/11/06 04:33:01 dyson Exp $ */ /* * Copyright (c) 1987, 1990 Carnegie-Mellon University. *************** *** 576,584 **** pq = &vm_page_queues[queue]; TAILQ_REMOVE(pq->pl, m, pageq); --(*pq->cnt); --(*pq->lcnt); ! if ((m->queue - m->pc) == PQ_CACHE) { if ((cnt.v_cache_count + cnt.v_free_count) < (cnt.v_free_reserved + cnt.v_cache_min)) pagedaemon_wakeup(); } --- 576,584 ---- pq = &vm_page_queues[queue]; TAILQ_REMOVE(pq->pl, m, pageq); --(*pq->cnt); --(*pq->lcnt); ! if ((queue - m->pc) == PQ_CACHE) { if ((cnt.v_cache_count + cnt.v_free_count) < (cnt.v_free_reserved + cnt.v_cache_min)) pagedaemon_wakeup(); } *************** *** 599,607 **** int hindex; for(j = 0; j < PQ_L1_SIZE; j++) { for(i = (PQ_L2_SIZE/2) - (PQ_L1_SIZE - 1); ! i >= 0; i -= PQ_L1_SIZE) { hindex = (index + (i+j)) & PQ_L2_MASK; m = TAILQ_FIRST(vm_page_queues[basequeue + hindex].pl); if (m) --- 599,607 ---- int hindex; for(j = 0; j < PQ_L1_SIZE; j++) { for(i = (PQ_L2_SIZE/2) - (PQ_L1_SIZE - 1); ! (i+j) >= 0; i -= PQ_L1_SIZE) { hindex = (index + (i+j)) & PQ_L2_MASK; m = TAILQ_FIRST(vm_page_queues[basequeue + hindex].pl); if (m) -- John dyson@freebsd.org jdyson@nc.com