Multithreading 信息收集

Many search and clustering commands in USEARCH support multithreading. Multithreading is parallel execution on a single CPU. All threads belong to the same?process?and share the same memory space.

You can? check if a given command supports multi-threading by checking the documentation page for a link to "Multithreading".

Database search commands generally parellelize very well (e.g. usearch_global, ublast), but commands based on clustering (e.g. cluster_fast, cluster_smallmem, cluster_otus, unoise2, uchime2_denovo) typically don't support multithreading or don't achieve much speedup from running multiple threads.

The -threads option species the requested number of threads, e.g. -threads 4.

Default is to run one thread per CPU core, or 10 threads if there are > 10 cores.

Performance may be improved by using more or fewer threads than the number of cores. If USEARCH is sharing a CPU with other resource-intensive programs, it may be better to set the number of threads so that the total number of executing threads in all programs does not exceed the number of cores. Using fewer threads can be faster if cache contention is reduced, and more threads can be faster if output is written via a slow network, in which case many threads may be stalled waiting for output to complete.

?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容