Pin a process to CPU cores
Pin a running process to CPU cores 0 and 1.
taskset -cp 0,1 <pid>
- tool
- linux133 commands
- tags
- linuxperformance
More linux commands
-
watch -n1 'cat /proc/interrupts | head -30'Show interrupt counts per CPU, updated every second.
-
cat /proc/<pid>/limitsShow hard and soft resource limits of a running process.
-
ulimit -n 1048576 && echo '* soft nofile 1048576 * hard nofile 1048576' >> /etc/security/limits.confSet a high FD limit for the current session and save it in limits.conf for future logins.
-
df -iShow inode usage per filesystem. Important when you have lots of small files.
-
find / -type f -size +100M 2>/dev/null | sortFind files larger than 100MB on the whole filesystem.