From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757028Ab1ILO0l (ORCPT ); Mon, 12 Sep 2011 10:26:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60498 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756796Ab1ILO0l (ORCPT ); Mon, 12 Sep 2011 10:26:41 -0400 Message-ID: <4E6E1693.7080606@redhat.com> Date: Mon, 12 Sep 2011 17:26:27 +0300 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: Peter Zijlstra CC: Huang Ying , Andrew Morton , linux-kernel@vger.kernel.org, Andi Kleen , Mathieu Desnoyers Subject: Re: [PATCH 8/5] llist: Remove cpu_relax() usage in cmpxchg loops References: <1315461646-1379-1-git-send-email-ying.huang@intel.com> <1315836358.26517.43.camel@twins> In-Reply-To: <1315836358.26517.43.camel@twins> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/12/2011 05:05 PM, Peter Zijlstra wrote: > Subject: llist: Remove cpu_relax() usage in cmpxchg loops > From: Peter Zijlstra > Date: Mon Sep 12 15:50:49 CEST 2011 > > Initial benchmarks show they're a net loss (2 socket wsm): > > $ for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do echo performance> $i; done > $ echo 4096 32000 64 128> /proc/sys/kernel/sem > $ ./sembench -t 2048 -w 1900 -o 0 > We hyperthreading enabled, and were all threads loaded? cpu_relax allows the other thread to make more progress while the spinner relaxes. -- error compiling committee.c: too many arguments to function