官方文檔稱 thread_concurrency 僅對 Solaris 有效,Linux 應忽略。但實測發現:預設 10、誤設 0 被強制改為 1 導致嚴重阻塞、改為 CPU 邏輯核心數 (16) 後阻塞消失、CPU 利用率從 <200% 升至 >200%。本文記錄完整踩坑過程與參數真相。
innodb_purge_threads=32 (5.6+) 略有改善但未根治[Warning] option 'thread_concurrency': unsigned value 0 adjusted to 1thread_concurrency = 0 → 系統強制改為 1 → 單線程並發 → 嚴重阻塞
thread_concurrency = 16 (CPU 邏輯核心數) → 阻塞消失,CPU 利用率顯著提升
thread_concurrency 僅 Solaris 有效,5.6.1 棄用innodb_thread_concurrency:InnoDB 內部並發控制,**建議設 0 (無限制)**,與本參數無關thread_concurrency:應用層線程並發提示,Solaris thr_setconcurrency() 映射結論:參數考古雖有趣,但生產環境請優先升級版本、調優索引/架構,而非依賴邊緣參數。