Linux command
dlb 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List CPU affinity of all DLB processes
dlb_taskset --list
Set CPU affinity for a DLB process
dlb_taskset --set [0-3] --pid [pid]
Borrow CPUs for a new application
dlb_taskset --borrow --set [0-7] -- [application]
Display help information
dlb_taskset --help
说明
DLB (Dynamic Load Balancing) is a library that dynamically redistributes computational resources among processes within the same shared memory node. It improves load balance of the outer level of parallelism (e.g., MPI) by adjusting resources at the inner level (e.g., OpenMP). DLB provides three main components: LeWI (Lend When Idle) redistributes unused CPUs between processes, DROM (Dynamic Resource Ownership Manager) manages CPU affinity, and TALP (Tracking Application Live Performance) gathers performance data. The dlb_taskset command-line tool manages CPU affinity of DLB-enabled processes and can launch new applications with specific CPU assignments.
参数
- --list
- List CPU affinity of all DLB processes.
- --set _MASK_
- Set CPU affinity mask for a process.
- --pid _PID_
- Specify process ID to operate on.
- --borrow
- Borrow CPUs instead of stealing; CPUs are returned when the application ends.
- --color _WHEN_
- Colorize output (yes, auto, no).
- --help
- Display help information.
FAQ
What is the dlb command used for?
DLB (Dynamic Load Balancing) is a library that dynamically redistributes computational resources among processes within the same shared memory node. It improves load balance of the outer level of parallelism (e.g., MPI) by adjusting resources at the inner level (e.g., OpenMP). DLB provides three main components: LeWI (Lend When Idle) redistributes unused CPUs between processes, DROM (Dynamic Resource Ownership Manager) manages CPU affinity, and TALP (Tracking Application Live Performance) gathers performance data. The dlb_taskset command-line tool manages CPU affinity of DLB-enabled processes and can launch new applications with specific CPU assignments.
How do I run a basic dlb example?
Run `dlb_taskset --list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --list do in dlb?
List CPU affinity of all DLB processes.