We have moved! This forum is now read only. (June 03)

New community website: https://community.snakeoil-os.net (June 03)

Join us in the new community by Creating a new account. (June 04)


Extending cpuset to include user processes
#7
A note for AK when CPUset capabilities are further enhanced.  Using Ubuntu 20.04, SnakeOil 1.2.9

With Upmpdcli, used the following to shift it
 
Code:
cset proc --move --toset=player --pid $(pgrep upmpdcli) --threads

The upmpdcli processes are successfully shifted to the player CPUset
 
Code:
$ cset proc -l -s player
cset: "player" cpuset of CPUSPEC(2) with 16 tasks running
USER       PID  PPID SPPr TASK NAME
-------- ----- ----- ---- ---------
upmpdcli  1139     1 Sr60 [upmpdcli]
upmpdcli  1141     1 Sr60 [upmpdcli]
upmpdcli  1145     1 Sr60 [upmpdcli]
upmpdcli  1149     1 Sr60 [upmpdcli]
upmpdcli  1150     1 Sr60 [MHD-listen]
upmpdcli  1151     1 Sr60 [MHD-listen]
upmpdcli  1153     1 Sr60 [upmpdcli]
upmpdcli  1597     1 Sr60 [upmpdcli]
upmpdcli  1599     1 Sr60 [upmpdcli]
upmpdcli  1689     1 Sr60 [upmpdcli]
upmpdcli  5595     1 Sr60 [upmpdcli]
upmpdcli  5638     1 Sr60 [upmpdcli]
upmpdcli  5797     1 Sr60 [upmpdcli]
upmpdcli  5798     1 Sr60 [upmpdcli]
upmpdcli  5840     1 Sr60 [upmpdcli]
upmpdcli  5843     1 Sr60 [MHD-connection]

Mpd have the following PIDs and should be in player CPUset (see above)
 
Code:
$ pgrep mpd
1139
1163

However, Top shows that Mpd can run in all the CPUs
 
Code:
PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND         P
     87 root     -86   0       0      0      0 S  10.0   0.0   2:18.91 irq/122-xhci_hc 1
   1163 root     -61   0  424452  23240  11960 S   6.0   0.1   1:29.56 mpd             3
   1139 upmpdcli -61   0 1749136  10220   7796 S   0.7   0.0   0:02.04 upmpdcli        2
Processor 2 is for Player CPUset and upmpdcli is correctly running in it.  But Mpd is appearing in processor 3 in this snapshot (and different processors in other snapshots).

Note that Mpd running on its own can be assigned to a CPUset.   It appears that the embedded Mpd process in upmpdcli cannot be locked into a CPUset. No idea why...
Reply


Messages In This Thread
RE: Extending cpuset to include user processes - by Snoopy8 - 13-Dec-2022, 02:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cpuset and TOP JD1 4 4,118 03-Sep-2018, 06:29 PM
Last Post: JD1



Users browsing this thread: 1 Guest(s)
[-]
Our Sponsors
{myadvertisements[zone_4]}

[-]
Latest Threads
Android Firefox issues with forum
Last Post: agent_kith
10-Jun-2025 04:45 PM
» Replies: 21
» Views: 2295
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 1635
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 9360
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 954
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 709
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 5369
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 5787
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 15427
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 4810
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 1282

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.