Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753980AbXHVAeZ (ORCPT ); Tue, 21 Aug 2007 20:34:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751233AbXHVAeP (ORCPT ); Tue, 21 Aug 2007 20:34:15 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52455 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbXHVAeO (ORCPT ); Tue, 21 Aug 2007 20:34:14 -0400 To: Mathieu Desnoyers Cc: Christoph Lameter , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, mingo@redhat.com Subject: Re: [PATCH] SLUB use cmpxchg_local References: <20070820215413.GA28452@Krystal> <20070821173849.GA8360@Krystal> <20070821231216.GA29691@Krystal> <20070821233938.GD29691@Krystal> <20070821234702.GE29691@Krystal> <20070822000323.GG29691@Krystal> From: Andi Kleen Date: 22 Aug 2007 03:28:07 +0200 In-Reply-To: <20070822000323.GG29691@Krystal> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 720 Lines: 11 Mathieu Desnoyers writes: > > The measurements I get (in cycles): > enable interrupts (STI) disable interrupts (CLI) local CMPXCHG > IA32 (P4) 112 82 26 > x86_64 AMD64 125 102 19 What exactly did you benchmark here? On K8 CLI/STI are only supposed to be a few cycles. pushf/popf might me more expensive, but not that much. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/