Skip to content
Bond process with dedicated CPUs on DragonFly BSD
C CMake
Branch: master
Clone or download
Latest commit bb6dc87 Jul 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
CMakeLists.txt
LICENSE
README.md
taskset.c

README.md

taskset

This program is inspired by taskset from Linux, and is used to bond process with dedicated CPUs on DragonFly BSD.

Usage

// Bond running process with CPU list:
# taskset -c cpu_list -p pid
// Execute command bonding with CPU list:
# taskset -c cpu_list command argument ...
// Query running process's bonding CPU list:
# taskset -p pid

Example

# taskset -c 0,2-4 -p 37224
# taskset -c 0,2-4 ./test_thread
# taskset -p 37224

Compile and run

# git clone https://github.com/NanXiao/taskset.git
# cd taskset
# mkdir build
# cd build
# cmake ..
# make
You can’t perform that action at this time.