From owner-freebsd-bugs Thu Sep 11 16:10:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA02414 for bugs-outgoing; Thu, 11 Sep 1997 16:10:07 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA02405; Thu, 11 Sep 1997 16:10:03 -0700 (PDT) Resent-Date: Thu, 11 Sep 1997 16:10:03 -0700 (PDT) Resent-Message-Id: <199709112310.QAA02405@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, Douglas Thomas Crosher Received: from scrooge.ee.swin.oz.au (scrooge.ee.swin.oz.au [136.186.4.20]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id QAA02239 for ; Thu, 11 Sep 1997 16:09:17 -0700 (PDT) Received: (from dtc@localhost) by scrooge.ee.swin.oz.au (8.6.9/8.6.9) id JAA27052 for freebsd-gnats-submit@freebsd.org; Fri, 12 Sep 1997 09:12:28 +1000 Message-Id: <199709112312.JAA27052@scrooge.ee.swin.oz.au> Date: Fri, 12 Sep 1997 09:12:27 +1000 (EST) From: Douglas Thomas Crosher To: freebsd-gnats-submit@FreeBSD.ORG Subject: kern/4513: System lockup which appears to be VM related. Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4513 >Category: kern >Synopsis: System lockup appears to be VM related. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 11 16:10:01 PDT 1997 >Last-Modified: >Originator: Douglas >Organization: Swinburne University of Technology >Release: FreeBSD 3.0-CURRENT i386 >Environment: Pentium 133, 128M Ram, 512M swap. Freebsd 3.0-current Sep 11, 1997. >Description: I've noticed the machine locking up for roughly 2 minutes. The keyboard will still accept interrupts and the VT switching still works, but only the VT at the point of lockup will accept anything. All processes appear to have halted but the VT reported load average climbs to about 5. There is some very light disk activity, very roughly a blink every 10 seconds. After about 2 minutes the system resumes and starts paging heavily. This behaviour was not seen in a current system from July. >How-To-Repeat: The code below reproduces the problem. The number of pages allocated needed to be adjusted to the machines memory size which was 128M. The lockup occurs after 4-6 iterations. -=-=- #include #include #include #define NUM_PAGES 2*16384 /* Adjust to the machines memory size. */ main() { int n,i; int max=10; int x; if (mmap(0x9000000,NUM_PAGES*4096, PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_ANON,-1,0) == -1) printf("mmap erorr\n"); for (n=0;nrem) num=rem; if (munmap((void *)addr,4096*num)==-1) printf("munmap erorr\n"); if (mmap((void *)addr,4096*num, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON,-1,0) ==-1) printf("mmap erorr\n"); } } /* Read from pages at random. */ for (page=0;pageFix: >Audit-Trail: >Unformatted: