Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 1998 16:05:11 -0500 (EST)
From:      "John S. Dyson" <toor@dyson.iquest.net>
To:        jonc@pinnacle.co.nz
Cc:        grog@lemis.com, mmead@calvin.math.vt.edu, questions@FreeBSD.ORG
Subject:   Re: new 2.2.5 installation randomly (and constantly) panics
Message-ID:  <199802222105.QAA02841@dyson.iquest.net>
In-Reply-To: <Pine.SGI.3.96.980223090431.10096D-100000@tui.pinnacle.co.nz> from Jonathan Chen at "Feb 23, 98 09:07:30 am"

next in thread | previous in thread | raw e-mail | index | archive | help
I am chimeing in on Jonathan's info:

The below patch is mandatory, and your 2.2.5 system will most likely have
problems if you don't apply it!!!! :-(.  2.2.6 should be already fixed.


Jonathan Chen said:
> On Sun, 22 Feb 1998, Greg Lehey wrote:
> 
> [snip]
> > 
> > Ugh.  A VM problem.  Does this always look the same?  The important
> > part of this dump are the frames 11 (i586_copyin) to 5
> > (vm_pager_has_page).  Possibly frames 14 to 12 are also of importance.
> > 
> > >>> Additionally, is there something I might not know about with 2.2.5
> > >>> that could be causing this?  Help!  Thanks!
> 
> There's a patch for the vm which John Dyson posted here some time ago,
> try applying that as well...
> --
> Jonathan Chen <jonc@pinnacle.co.nz>
> ---------------------------------------------------------------------
>                 When all other forms of communication fail, use words
> 
> -----------------------------------------------------------------------
> 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
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


-- 
John                  | Never try to teach a pig to sing,
dyson@freebsd.org     | it just makes you look stupid,
jdyson@nc.com         | and it irritates the pig.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802222105.QAA02841>