![]() |
CpuSet Feature While Using Upmpdcli - Printable Version +- Snakeoil Forums (https://forums.snakeoil-os.net) +-- Forum: Snakeoil Topics (https://forums.snakeoil-os.net/Forum-Snakeoil-Topics) +--- Forum: Support & Troubleshooting (https://forums.snakeoil-os.net/Forum-Support-Troubleshooting) +--- Thread: CpuSet Feature While Using Upmpdcli (/Thread-CpuSet-Feature-While-Using-Upmpdcli) Pages:
1
2
|
RE: CpuSet Feature While Using Upmpdcli - PeteCallaghan - 09-Nov-2020 (11-Oct-2020, 05:25 PM)agent_kith Wrote:(09-Oct-2020, 06:22 PM)PeteCallaghan Wrote: There seemed to be multiple mpd processes, so a loop was needed to catch them all:In theory you don't have to do this, just find the main PID, and the --threads option will move all threads to the CPUSet. Some progress. I now have a crude but reliable process for applying the script after a reboot. I add a line to crontab that waits for 10 minutes after a reboot and then applies the script: Code: #crontab-e I have not experimented with shorter sleep times, as this seems pretty reliable. I'll research how to follow up your point about forked threads, to see if I can find any and see if they are allocated to the correct CPU set RE: CpuSet Feature While Using Upmpdcli - PeteCallaghan - 14-Nov-2020 I made an error in my script. The pgrep was returning both mpd and upmpdcli processes because it was matching 'mpd' in both process names. This version matches exactly 'mpd' and only finds one pid, using the '-x' option in pgrep Code: pids=$(pgrep -x mpd) I am running upmpdcli as the music server, which uses mpd as the player. Using cpuset I have successfully got both mpd and upmpdcli running in the user cpuset, and mpd running with RT priority, which sounds pretty good. However, I suspect that it would be beneficial to run mpd alone in the user cpuset, with upmpdcli in the system cpuset. However I can't figure out how to achieve this. Any suggestions? I could de-select upmpdcli as the music server and use mpd instead, but then I would need to lanch upmpdcli outside snakeoil. What would be the best way to do this? RE: CpuSet Feature While Using Upmpdcli - PeteCallaghan - 16-Nov-2020 (14-Nov-2020, 07:20 PM)PeteCallaghan Wrote: I am running upmpdcli as the music server, which uses mpd as the player. Is it possible to configure SO so that mpd is the music server and upmpdcli is the music client? I've tried setting mpd as server but upmpdcli is not available to configure as music client |