我访问了一个使用 LSF 分配资源的 Linux 集群,我认为这是一个常用工具,来自 Scali ( http://www.scali.com/workload-management/high-performance-computing )。在一个交互式队列中,我询问并获得了最大内核数:4。但是如果我检查 Python 的多处理模块看到多少 cpu,数字是 12,即我被分配到的节点的物理内核数。看起来多处理模块在考虑 LSF 应该/将强加的界限方面存在问题。这是 LSF 或 Python 中的问题吗?
[lsandor@iliadaccess03 peers_prisons]$ bsub -Is -n 4 -q interact sh
Job <7408231> is submitted to queue <interact>.
<<Waiting for dispatch ...>>
<<Starting on heroint5>>
sh-3.2$ python3
Python 3.2 (r32:88445, Jun 13 2011, 09:20:03)
[GCC 4.3.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>>
>>> multiprocessing.cpu_count()
12