From: Michael Meffie Date: Thu, 27 Mar 2014 08:24:16 +0000 (+0100) Subject: viced: disable hot threads X-Git-Tag: openafs-stable-1_8_0pre1~740 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=70f825bcd2de3eab9d0c62079318a215f8728cd6;hp=da549eea21941681c075796512a27a830259c835 viced: disable hot threads Turn off the rx hot threads feature in the file server. This feature was an old optimization intended to reduce context switching, however generally makes performance worse on modern hardware. Performance improvements from disabling hot threads was identified by Simon Wilkinson (YFS) at the European AFS and Kerberos Conference (EAKC) 2014 at CERN. Change-Id: Id3053a61ebdb2d49d2bf36ebe07a35cc07b5d65c Reviewed-on: http://gerrit.openafs.org/10957 Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: D Brashear --- diff --git a/src/viced/viced.c b/src/viced/viced.c index b2f3f04..bab39f9 100644 --- a/src/viced/viced.c +++ b/src/viced/viced.c @@ -2055,13 +2055,6 @@ main(int argc, char *argv[]) rx_SetMinProcs(tservice, 2); rx_SetMaxProcs(tservice, 4); - /* - * Enable RX hot threads, which allows the listener thread to trade - * places with an idle thread and moves the context switch from listener - * to worker out of the critical path. - */ - rx_EnableHotThread(); - /* Some rx debugging */ if (rxlog || eventlog) { debugFile = afs_fopen("rx_dbg", "w");