Hi all! In the EXAMPLE section of `man sched_setaffinity` manual page ca nbe found (on Ubuntu-Bionic-current). ---- snip --- $ lscpu | grep -i 'core.*:|socket' Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 ---- snip --- However, one needs *egrep* (and not "only" *grep) for the '|' to work. MfG, Bernd -- "I dislike type abstraction if it has no real reason. And saving on typing is not a good reason - if your typing speed is the main issue when you're coding, you're doing something seriously wrong." - Linus Torvalds
Attachment:
pEpkey.asc
Description: application/pgp-keys