From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757862Ab1EWW7J (ORCPT ); Mon, 23 May 2011 18:59:09 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:39639 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757828Ab1EWW7F (ORCPT ); Mon, 23 May 2011 18:59:05 -0400 Message-ID: <4DDAE6A5.6060701@kernel.org> Date: Mon, 23 May 2011 15:58:45 -0700 From: Yinghai Lu User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 MIME-Version: 1.0 To: paulmck@linux.vnet.ibm.com CC: linux-kernel@vger.kernel.org, mingo@redhat.com, hpa@zytor.com, tglx@linutronix.de, mingo@elte.hu Subject: Re: [tip:core/rcu] Revert "rcu: Decrease memory-barrier usage based on semi-formal proof" References: <4DD6D746.6070107@kernel.org> <20110520224250.GL2366@linux.vnet.ibm.com> <4DD6F4A2.1070401@kernel.org> <20110520231428.GN2366@linux.vnet.ibm.com> <4DD6F64C.3030402@kernel.org> <20110520234923.GQ2366@linux.vnet.ibm.com> <4DD70120.9090801@kernel.org> <20110521131844.GE2271@linux.vnet.ibm.com> <20110521140845.GA12157@linux.vnet.ibm.com> <4DDAC01E.7050602@kernel.org> <20110523212530.GF7428@linux.vnet.ibm.com> <4DDAD934.9010603@kernel.org> <4DDAE5FA.2030303@kernel.org> In-Reply-To: <4DDAE5FA.2030303@kernel.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4DDAE6AA.0024,ss=1,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/23/2011 03:55 PM, Yinghai Lu wrote: > On 05/23/2011 03:01 PM, Yinghai Lu wrote: >> On 05/23/2011 02:25 PM, Paul E. McKenney wrote: >>> On Mon, May 23, 2011 at 01:14:22PM -0700, Yinghai Lu wrote: >>>> On 05/21/2011 07:08 AM, Paul E. McKenney wrote: >>>>> On Sat, May 21, 2011 at 06:18:44AM -0700, Paul E. McKenney wrote: >>>>>> On Fri, May 20, 2011 at 05:02:40PM -0700, Yinghai Lu wrote: >>>>>>> On 05/20/2011 04:49 PM, Paul E. McKenney wrote: >>>>>>>> On Fri, May 20, 2011 at 04:16:28PM -0700, Yinghai Lu wrote: >>>>>>> ... >>>>>>>>> >>>>>>>>> the same one i sent out before, but let DEBUG_LOCKING_API_SELFTESTS disabled. >>>>>>>> >>>>>>>> OK, just to make sure I understand... You are compiling exactly the >>>>>>>> same kernel source tree with exactly the same .config, just with two >>>>>>>> different versions of gcc, correct? >>>>>>> yes. >>>>>>>> >>>>>>>> If so, it is quite possible that the slow one is the correct one. :-/ >>>>>>> yeah, new version always have problem. >>>>>>> >>>>>>> looks like opensuse11.3 has 4.5.0 and fedora14 has 4.5.1 >>>>>> >>>>>> OK, so fedora14 is the fast one (4.5.1) and opensuse11.3 is the slow >>>>>> one (4.5.0), correct? >>>>> >>>>> And does commit c7a3786030 help? This commit (from Peter Zijlstra) >>>>> tidied up RCU kthreads' scheduler interactions. The patch is below, >>>>> though it is probably more convenient to pull it from the rcu/next >>>>> branch of: >>>>> >>>>> git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-2.6-rcu.git >>>>> >>> > gcc in Fedora 14 is fine with your tree. > sorry, I should wait for longer to see Fedora 14 is ok. got same warning with the one compiled from fedora 14... [ 372.937251] INFO: task rcun0:8 blocked for more than 120 seconds. [ 372.937618] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 372.956130] rcun0 D 0000000000000000 0 8 2 0x00000000 [ 372.956498] ffff882070d65e90 0000000000000046 ffff882070d64000 0000000000004000 [ 372.956528] 00000000001d1f40 ffff882070d65fd8 00000000001d1f40 ffff882070d65fd8 [ 372.956555] 0000000000004000 00000000001d1f40 ffff882070d18000 ffff882070d6a2b0 [ 372.956581] Call Trace: [ 372.956605] [] ? __lock_release+0x166/0x16f [ 372.956624] [] ? _raw_spin_unlock_irqrestore+0x3f/0x46 [ 372.956639] [] ? rcu_cpu_kthread_should_stop+0x137/0x137 [ 372.956650] [] ? trace_hardirqs_on+0xd/0xf [ 372.956661] [] ? rcu_cpu_kthread_should_stop+0x137/0x137 [ 372.956673] [] kthread+0x8c/0xa8 [ 372.956689] [] kernel_thread_helper+0x4/0x10 [ 372.956701] [] ? retint_restore_args+0xe/0xe [ 372.956711] [] ? __init_kthread_worker+0x5b/0x5b [ 372.956722] [] ? gs_change+0xb/0xb [ 372.956726] INFO: lockdep is turned off. [ 492.750827] INFO: task rcun0:8 blocked for more than 120 seconds. [ 492.751150] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 492.762991] rcun0 D 0000000000000000 0 8 2 0x00000000 [ 492.763264] ffff882070d65e90 0000000000000046 ffff882070d64000 0000000000004000 [ 492.763294] 00000000001d1f40 ffff882070d65fd8 00000000001d1f40 ffff882070d65fd8 [ 492.763320] 0000000000004000 00000000001d1f40 ffff882070d18000 ffff882070d6a2b0 [ 492.763346] Call Trace: [ 492.763359] [] ? __lock_release+0x166/0x16f [ 492.763371] [] ? _raw_spin_unlock_irqrestore+0x3f/0x46 [ 492.763382] [] ? rcu_cpu_kthread_should_stop+0x137/0x137 [ 492.763393] [] ? trace_hardirqs_on+0xd/0xf [ 492.763404] [] ? rcu_cpu_kthread_should_stop+0x137/0x137 [ 492.763414] [] kthread+0x8c/0xa8 [ 492.763427] [] kernel_thread_helper+0x4/0x10 [ 492.763439] [] ? retint_restore_args+0xe/0xe [ 492.763449] [] ? __init_kthread_worker+0x5b/0x5b [ 492.763460] [] ? gs_change+0xb/0xb [ 492.763463] INFO: lockdep is turned off. if reverting PeterZ's patch will not have that warning. Thanks