From owner-freebsd-stable Tue May 8 7:52:15 2001 Delivered-To: freebsd-stable@freebsd.org Received: from veldy.net (w028.z064001117.msp-mn.dsl.cnc.net [64.1.117.28]) by hub.freebsd.org (Postfix) with ESMTP id 7723237B424 for ; Tue, 8 May 2001 07:52:09 -0700 (PDT) (envelope-from veldy@veldy.net) Received: from HP2500B (fuggle.veldy.net [64.1.117.28]) by veldy.net (Postfix) with SMTP id B3B15BAA2; Tue, 8 May 2001 09:50:33 -0500 (CDT) Message-ID: <009c01c0d7ce$3c7f1490$3028680a@tgt.com> From: "Thomas T. Veldhouse" To: "Rocco Caputo" , "Doug Russell" Cc: "Jonathan Belson" , References: <3AF6EE86.FC021C05@witchspace.com> <20010508100152.B934@eyrie.homenet> Subject: Re: Lockups with -Stable on Athlon Date: Tue, 8 May 2001 09:50:33 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Can you post that C-program? Tom Veldhouse veldy@veldy.net ----- Original Message ----- From: "Rocco Caputo" To: "Doug Russell" Cc: "Jonathan Belson" ; Sent: Tuesday, May 08, 2001 9:01 AM Subject: Re: Lockups with -Stable on Athlon > I had a problem with at Athlon-1000 HP machine (Pavilion 8860). It > would run fine until I tried "make buildworld", and then it would > freeze solid. This happened nearly every time, but it might take > hours to hang the machine. Nothing else would kill it, though, and I > tried a lot of things. > > Changing the RAM didn't help, and I tried six different modules (three > 256MB pc133s; three 128MB pc100s) in a variety of combinations. > > I finally was able to reproduce the problem quickly and consistently > with a small C program: > > 1. Allocate a 16MB chunk of memory, and strobe it constantly to keep > it in physical memory. "strobe" is a function that increments every > 256th byte to keep the region active. This strobed 16MB region is > what finally made the testcase freeze the machine. Otherwise it would > happily run for as long as I'd let it. > > 2. Allocate 50 chunks of memory, strobing the 16MB chunk after each > malloc. > > 3. Fill each of the 50 memory chunks to swap them in, strobing the > 16MB segment after each memset. > > 4. Free each of the 50 memory chunks, strobing the 16MB segment after > each free. > > Repeat until the system stops responding. In my case, that's usually > within 60 to 300 seconds. Yes, 1 to 5 minutes, sometimes a little > longer, but a total system freeze every time. > > The Windows executable is at in > case someone wants to try it. The file is under 16KB. By default, it > allocates fifty 5MB chunks. All told, it's a little more than twice > my machine's 128MB physical memory. The chunk size can be tweaked > with a single integer argument. `hpdie 10` will allocate 10MB chunks > (about 516MB total). `hpdie 0` will probably crash. :) > > I stupidly deleted the source, and the binary is for Windows, and the > machine is on its way to a repair facility, so about all I can offer > sourcewise is an untested rewrite from memory. > > Good luck. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message