Date: Thu, 14 Jun 2001 20:21:22 -0700 (PDT) From: Simon Shapiro <shimon@simon-shapiro.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/28162: RELENG_4 (4.2, 4.3) Panics when system has 2GB of memory (SWAP) Message-ID: <200106150321.f5F3LM079019@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 28162 >Category: kern >Synopsis: RELENG_4 (4.2, 4.3) Panics when system has 2GB of memory (SWAP) >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 14 20:30:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Simon Shapiro >Release: 4.2, 4.3, RELENG_4 (as of today) >Organization: >Environment: FreeBSD nomis.simon-shapiro.org 4.3-20010522-STABLE FreeBSD 4.3-20010522-STABLE #10: Thu Jun 14 22:14:16 EDT 2001 root@:/usr/src/RELENG_4/src/sys/compile/NOMIS-smp i386 >Description: /usr/src/sys/vm/swap_pager.c, line 310 or thereabout calls zinit. zinit returns NULL because it calls zinita with too large a number. I tried to force the value down but that only helps in SMP. A UP kernel still crashes. I forced the value down like this: if ((swap_zone = zinit( "SWAPMETA", sizeof(struct swblock), n, ZONE_INTERRUPT, 1 )) == NULL) { int m = 127332; /* This number is from 256MB system */ printf("%s.%s(%d) ERROR: swap_zone is NULL\n" " Reducing n from %d to %d\n", __FILE__, __FUNCTION__, __LINE__, n, m); if ((swap_zone = zinit( "SWAPMETA", sizeof(struct swblock), m, ZONE_INTERRUPT, 1 )) == NULL) { panic("swap_pager_swap_init: swap_zone == NULL"); } n = m; /* Prevents failure and panic */ } NOTE: The above snippet is _not_ a fix. >How-To-Repeat: Boot on a Pentium III with 2 or 4 GB of RAM. >Fix: Not sure. The code needs to be re-written to examine how much memory is really there. I did not have this problem, in the identical machine, in RELENG_3. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106150321.f5F3LM079019>