From owner-freebsd-ppc@FreeBSD.ORG Tue Oct 21 18:17:54 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F1EB1065684 for ; Tue, 21 Oct 2008 18:17:54 +0000 (UTC) (envelope-from jrh29@alumni.cwru.edu) Received: from beta.eecs.cwru.edu (beta.EECS.CWRU.Edu [129.22.150.110]) by mx1.freebsd.org (Postfix) with ESMTP id DF5BE8FC0C for ; Tue, 21 Oct 2008 18:17:53 +0000 (UTC) (envelope-from jrh29@alumni.cwru.edu) Received: from narn.knownspace ([::ffff:69.140.221.138]) (AUTH: PLAIN jrh29, TLS: TLSv1/SSLv3,168bits,DES-CBC3-SHA) by beta.eecs.cwru.edu with esmtp; Tue, 21 Oct 2008 14:17:52 -0400 id 000045B7.48FE1CD0.0000269E Date: Tue, 21 Oct 2008 14:17:28 -0400 From: Justin Hibbits To: Peter Grehan Message-ID: <20081021181727.GC2578@narn.knownspace> References: <20081022015714.EKM92209@dommail.onthenet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <20081022015714.EKM92209@dommail.onthenet.com.au> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-ppc@freebsd.org Subject: Re: graphics on G4 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 18:17:54 -0000 Hi Peter, On Wed, Oct 22, 2008 at 01:57:14AM +1000, Peter Grehan wrote: > Hi Justin, > > >An oddity I've found with FreeBSD/ppc on my G4 MDD -- > >when I do anything with graphics, after a while the > >whole machine just hangs when I try to spawn a new > >process. It's not a deterministic problem, it just > >happens 'eventually', but nearly 100% of the time it > >does happen > > The framebuffer uses a large chunk of kernel VM when mmap'd. > Are you able to dump some vm stats while doing this e.g. > sysctl vm.kvm_free ? > > later, > > Peter. There is no vm.kvm_free sysctl on my install. Here are the stats from sysctl vm.phys_free, vm.vmtotal, and vm.loadavg while running X/windowmaker vm.phys_free: FREE LIST 0: ORDER (SIZE) | NUMBER | POOL 0 | POOL 1 | POOL 2 -- -- -- -- -- -- -- -- 10 ( 4096K) | 0 | 0 | 0 9 ( 2048K) | 0 | 0 | 0 8 ( 1024K) | 0 | 0 | 0 7 ( 512K) | 0 | 0 | 0 6 ( 256K) | 0 | 0 | 0 5 ( 128K) | 0 | 0 | 0 4 ( 64K) | 0 | 0 | 0 3 ( 32K) | 0 | 0 | 0 2 ( 16K) | 0 | 0 | 0 1 ( 8K) | 57 | 0 | 605 0 ( 4K) | 2 | 23 | 13370 vm.vmtotal: System wide totals computed every five seconds: (values in kilobytes) =============================================== Processes: (RUNQ: 1 Disk Wait: 0 Page Wait: 0 Sleep: 74) Virtual Memory: (Total: 1391388K, Active 288188K) Real Memory: (Total: 142548K Active 130496K) Shared Virtual Memory: (Total: 53356K Active: 51276K) Shared Real Memory: (Total: 23100K Active: 22912K) Free Memory Pages: 58896K vm.loadavg: { 0.15 0.10 0.07 } What other stats are relevant? I neglected to mention before, but it happens even when I exit out of X, or the program mmap()ing the video card quits. I have a hunch that it's overwriting some piece of memory needed by the process list. - Justin