Get the processor core affinity for a process ( cores on which it is allowed to run )
taskset -cp <PID>
Example,
[root@user]# taskset -cp 74515
pid 74515's current affinity list: 0-7
| #!/bin/bash | |
| address=https://ilo.mysite.com:34043 | |
| username=Administrator | |
| password=******** | |
| session_key=$( | |
| curl -fsS \ | |
| --insecure \ | |
| "$address/json/login_session" \ |
| sudo apt-get install build-essential checkinstall | |
| sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev | |
| wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz | |
| sudo tar -xzf Python-2.7.13.tgz -C /usr/src | |
| cd /usr/src/Python-2.7.3 | |
| sudo ./configure | |
| sudo make | |
| sudo make altinstall |
Get the processor core affinity for a process ( cores on which it is allowed to run )
taskset -cp <PID>
Example,
[root@user]# taskset -cp 74515
pid 74515's current affinity list: 0-7
| [Presets] | |
| Preset0=Classical | |
| Preset1=Club | |
| Preset2=Dance | |
| Preset3=Flat | |
| Preset4=Live | |
| Preset5=Laptop Speakers/Headphone | |
| Preset6=Rock | |
| Preset7=Pop |