From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964901AbWGPFT5 (ORCPT ); Sun, 16 Jul 2006 01:19:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964852AbWGPFT4 (ORCPT ); Sun, 16 Jul 2006 01:19:56 -0400 Received: from smtp.osdl.org ([65.172.181.4]:48862 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S964901AbWGPFT4 (ORCPT ); Sun, 16 Jul 2006 01:19:56 -0400 Date: Sat, 15 Jul 2006 22:19:42 -0700 From: Andrew Morton To: "Gary Funck" Cc: linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: 2.6.17-1.2145_FC5 mmap-related soft lockup Message-Id: <20060715221942.9f1543ca.akpm@osdl.org> In-Reply-To: References: X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.19; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 15 Jul 2006 10:07:26 -0700 "Gary Funck" wrote: > > A test program which allocates about 256M of MAP_ANONYMOUS mmap memory, > and then spawns 4 processess, where each process i writes to 1/4 of the > mapped memory, and then reads the memory written by > the process (i + 1)%4, triggers a soft lockup, when exiting. > Hardware: > dual core dual Opteron 275 (Tyan motherboard, 4G physical memory) > has been rock solid reliable. > > BUG: soft lockup detected on CPU#3! > > Call Trace: {softlockup_tick+219} > {update_process_times+66} > {smp_local_timer_interrupt+35} > {smp_apic_timer_interrupt+65} > {apic_timer_interrupt+135} > {__set_page_dirty_nobuffers+0} > {_write_unlock_irq+11} > {__set_page_dirty_nobuffers+181} > {unmap_vmas+1037} > {exit_mmap+120} {mmput+44} > {do_exit+599} > {debug_mutex_init+0} > {tracesys+209} > > .. > > The test program runs successfully, but hangs several seconds upon exit. > > The hardware and software configuration has been solid for several months, > but > we have seen timer-related synchronization issues with recent kernels (where > ntp has to force a re-sync for example, and an occasional lost ticks > message). > > The test program mentioned above is more complicated than described, and > can't easily be reproduced in source form, but the binary could be > made available. ah-hah. This sounds like the write_lock(tree_lock) starvation bug. Are you able to confirm that setting CONFIG_DEBUG_SPINLOCK=n fixes it? And are you able to get us a copy of that test app? Thanks.