kernel - Increase MAXCPUFIFO from 32 to 256
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 17 Aug 2018 23:51:56 +0000 (16:51 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 17 Aug 2018 23:51:56 +0000 (16:51 -0700)
* Increase to 256, ensures that no deadlocks can occur on systems
  with more than 32 cpu threads.

sys/sys/thread.h

index f77b315..0623dc1 100644 (file)
@@ -165,7 +165,7 @@ struct lwkt_tokref {
     struct thread      *tr_owner;      /* me */
 };
 
-#define MAXCPUFIFO      32     /* power of 2 */
+#define MAXCPUFIFO      256    /* power of 2 */
 #define MAXCPUFIFO_MASK        (MAXCPUFIFO - 1)
 #define LWKT_MAXTOKENS 32      /* max tokens beneficially held by thread */