[SOLVED] Process priority not applying to restarted music servers and players
|
Posts: 829
Threads: 46
Joined: Mar 2019
Reputation:
239
Location: Melbourne, Australia
22-Jun-2021, 08:16 PM
(This post was last modified: 22-Jun-2021, 08:18 PM by Snoopy8.)
For Activated version.
When the music server/player was restarted from the Music Player tab, it did not pick up the Process Priority specified in the SnakeOil tab. Process Priority worked when system was booted/rebooted.
Posts: 3,025
Threads: 193
Joined: Feb 2016
Reputation:
705
Location: Perth, WA
Good catch.. Filed a ticket here.
I may do a quick release to fix this in the weekend if I can, and push the GUI revamp to U2.
Snakeoil Operating System - Music, your way!
Posts: 829
Threads: 46
Joined: Mar 2019
Reputation:
239
Location: Melbourne, Australia
(23-Jun-2021, 07:58 AM)agent_kith Wrote: Good catch.. Filed a ticket here.
I may do a quick release to fix this in the weekend if I can, and push the GUI revamp to U2.
What else will be in quick release? Will most of the issues tagged "Gear Isolation U1" be included?
Posts: 3,025
Threads: 193
Joined: Feb 2016
Reputation:
705
Location: Perth, WA
(24-Jun-2021, 01:28 PM)Snoopy8 Wrote: What else will be in quick release? Will most of the issues tagged "Gear Isolation U1" be included? Those will be moved to U2 :p
Snakeoil Operating System - Music, your way!
Posts: 3,025
Threads: 193
Joined: Feb 2016
Reputation:
705
Location: Perth, WA
This is fixed in Gear Isolation U1. Note the priority will only be applied approximately 25 seconds later, this is to allow the players enough time to fully initialise.
Snakeoil Operating System - Music, your way!
Posts: 829
Threads: 46
Joined: Mar 2019
Reputation:
239
Location: Melbourne, Australia
Thank you for fix in 1.2.1
Found a further issue with LMS. Have set the priority of squeezeboxserve to 50, but only one of the processes 1146 has been changed. 1148 has not been changed.
Code: tuna --show_threads | grep squ
1146 RR 50 0,1,2,3 10 8 squeezeboxserve
1148 OTHER 0 0,1,2,3 1610 9323 squeezeboxserve
1204 RR 50 0,1,2,3 24 70 squeeze2upnp-x8
Posts: 3,025
Threads: 193
Joined: Feb 2016
Reputation:
705
Location: Perth, WA
(03-Jul-2021, 09:41 PM)Snoopy8 Wrote: Thank you for fix in 1.2.1
Found a further issue with LMS. Have set the priority of squeezeboxserve to 50, but only one of the processes 1146 has been changed. 1148 has not been changed.
Code: tuna --show_threads | grep squ
1146 RR 50 0,1,2,3 10 8 squeezeboxserve
1148 OTHER 0 0,1,2,3 1610 9323 squeezeboxserve
1204 RR 50 0,1,2,3 24 70 squeeze2upnp-x8
Depending on when LMS starts the threads, e.g. when u play a song, or when it does a background task, Snakeoil may not be able to trap all. I can probably keep checking every X seconds and move threads to real time, but that could make it worse. I guess a combination of this with cpuset is probably the way to go?
Will see how it goes later down the road.
Snakeoil Operating System - Music, your way!
Posts: 829
Threads: 46
Joined: Mar 2019
Reputation:
239
Location: Melbourne, Australia
(04-Jul-2021, 12:42 PM)agent_kith Wrote: (03-Jul-2021, 09:41 PM)Snoopy8 Wrote: Thank you for fix in 1.2.1
Found a further issue with LMS. Have set the priority of squeezeboxserve to 50, but only one of the processes 1146 has been changed. 1148 has not been changed.
Code: tuna --show_threads | grep squ
1146 RR 50 0,1,2,3 10 8 squeezeboxserve
1148 OTHER 0 0,1,2,3 1610 9323 squeezeboxserve
1204 RR 50 0,1,2,3 24 70 squeeze2upnp-x8
Depending on when LMS starts the threads, e.g. when u play a song, or when it does a background task, Snakeoil may not be able to trap all. I can probably keep checking every X seconds and move threads to real time, but that could make it worse. I guess a combination of this with cpuset is probably the way to go?
Will see how it goes later down the road.
As background, my limited knowledge prevented me from getting cset itself (using -e option) to start lms; had to start lms, then move it to a specific cpuset. That was when I discovered that there was more than one squeezeboxserve process.
It becomes more "fun" when cpusets are involved, and there is not option to set a process priority. But I will leave it in your capable hands to figure it out, when the time comes...
Posts: 829
Threads: 46
Joined: Mar 2019
Reputation:
239
Location: Melbourne, Australia
(04-Jul-2021, 12:42 PM)agent_kith Wrote: Depending on when LMS starts the threads, e.g. when u play a song, or when it does a background task, Snakeoil may not be able to trap all. I can probably keep checking every X seconds and move threads to real time, but that could make it worse. I guess a combination of this with cpuset is probably the way to go?
Will see how it goes later down the road. It looks like the problem has gone away in LMS 8.2 where there is now only 1 Squeezeboxserve process. Previously in 8.1, there were 2.
Posts: 3,025
Threads: 193
Joined: Feb 2016
Reputation:
705
Location: Perth, WA
(12-Aug-2021, 01:00 PM)Snoopy8 Wrote: (04-Jul-2021, 12:42 PM)agent_kith Wrote: Depending on when LMS starts the threads, e.g. when u play a song, or when it does a background task, Snakeoil may not be able to trap all. I can probably keep checking every X seconds and move threads to real time, but that could make it worse. I guess a combination of this with cpuset is probably the way to go?
Will see how it goes later down the road. It looks like the problem has gone away in LMS 8.2 where there is now only 1 Squeezeboxserve process. Previously in 8.1, there were 2. Is 8.2 any good audio quality wise?
Snakeoil Operating System - Music, your way!
|
Users browsing this thread: |
1 Guest(s)
|
|
Welcome
|
You have to register before you can post on our site.
|
Latest Threads
|
Android Firefox issues with forum
Last Post: agent_kith
Yesterday 04:45 PM
» Replies: 21
» Views: 1257
|
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 961
|
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 6349
|
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 589
|
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 424
|
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 3452
|
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 3754
|
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 11239
|
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 2828
|
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 749
|
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.
|
|
|