Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 12 Aug 2002 09:10:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 12 Aug 2002 09:10:14 -0400 Received: from mx1.elte.hu ([157.181.1.137]:32204 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Mon, 12 Aug 2002 09:10:13 -0400 Date: Mon, 12 Aug 2002 17:12:41 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Luca Barbieri Cc: Linus Torvalds , Linux-Kernel ML , Alexandre Julliard Subject: Re: [patch] tls-2.5.31-C3 In-Reply-To: <1029154707.4258.28.camel@ldb> Message-ID: 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: 874 Lines: 30 On 12 Aug 2002, Luca Barbieri wrote: > Numbers: > unconditional copy of 2 tls descs: 5 cycles > this patch with 1 tls desc: 26 cycles > this patch with 8 tls descs: 52 cycles [ 0 tls descs: 2 cycles. ] but yes, this is rougly what i'd say this approach costs. > lldt: 51 cycles > lgdt: 50 cycles > context switch: 2000 cycles (measured with pipe read/write and vmstat so > it's not very accurate) > So this patch causes a 1% context switch performance drop for > multithreaded applications. how did you calculate this? glibc multithreaded applications can avoid the lldt via using the TLS, and thus it's a net win. Ingo - 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/