Re: [patch] tls-2.5.31-C3

From: Luca Barbieri (ldb@ldb.ods.org)
Date: Mon Aug 12 2002 - 07:18:27 EST


> Comments?
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
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.

Note: the benchmark doesn't include the initial test for non-zero
nr_tls_bytes and doesn't include setting the LDT descriptor



-
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/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:27 EST