[lkml]   [2002]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] tls-2.5.31-C3

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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:22    [W:0.123 / U:2.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site