cpuset and mpd resampler (Libsamplerate) issue
|
Posts: 19
Threads: 4
Joined: Aug 2018
Reputation:
0
Hi, I'm using built in mpd resampler libsamplerate and with cpu set enabled cause sound crackling stuttering, probably issue,.bacause enabling and disabling cpuset feature over and over again solve issue, cpu usage on i7 is max 10 percent, everything seems to be fine, probably cpuset fail.with some process management. After success operation, sounding perfect all time, problem is new start of snakeoil.
Posts: 2,772
Threads: 177
Joined: Feb 2016
Reputation:
465
Location: Perth, WA
(11-Nov-2020, 11:27 PM)ravenman Wrote: Hi, I'm using built in mpd resampler libsamplerate and with cpu set enabled cause sound crackling stuttering, probably issue,.bacause enabling and disabling cpuset feature over and over again solve issue, cpu usage on i7 is max 10 percent, everything seems to be fine, probably cpuset fail.with some process management. After success operation, sounding perfect all time, problem is new start of snakeoil. Can you share your cpuset config?
Also, are you setting any programs to run in run time? (Process priority).
Snakeoil Operating System - Music, your way!
Posts: 18
Threads: 2
Joined: Jun 2020
Reputation:
4
Location: UK
(12-Nov-2020, 08:44 AM)agent_kith Wrote: (11-Nov-2020, 11:27 PM)ravenman Wrote: Hi, I'm using built in mpd resampler libsamplerate and with cpu set enabled cause sound crackling stuttering, probably issue,.bacause enabling and disabling cpuset feature over and over again solve issue, cpu usage on i7 is max 10 percent, everything seems to be fine, probably cpuset fail.with some process management. After success operation, sounding perfect all time, problem is new start of snakeoil. Can you share your cpuset config?
Also, are you setting any programs to run in run time? (Process priority).
I had similar problems when I had mpd and upmpdcli both running as RT process priority and cpuset enabled with just one processor allocated to user
Posts: 2,772
Threads: 177
Joined: Feb 2016
Reputation:
465
Location: Perth, WA
Secret Rabbit Code (libsamplerate) is pretty CPU intensive. It also sounds very good, I guess at the end of the day, trying to partition SRC in CPUsets, and/or make it run in real time will be detrimental to CPU performance.
When using a real time kernel, if a program running in realtime wants to execute an instruction, the operating system will drop everything and execute that instruction. The process to drop everything, prepare itself to execute the coming instruction is called "context switching", and this is a very expensive process... How quickly it can do this is the latency test we're doing in Cyclictest.
The overall system performance should decrease if you're trying to do too much for this.
A workaround is to increase any audio buffers, and see if that helps. At the end of the day, the idea is not to try and run everything in real time, it's all about striking a good balance to get the best audio out.
Snakeoil Operating System - Music, your way!
|
Users browsing this thread: |
2 Guest(s)
|
|
Welcome
|
You have to register before you can post on our site.
|
Latest Threads
|
Something seriously wrong with Squeezeli...
Last Post: Coacharnold
21-Apr-2024 08:28 PM
» Replies: 1
» Views: 29
|
MP3 Not Playing
Last Post: davem
21-Apr-2024 10:41 AM
» Replies: 4
» Views: 89
|
Announcing Snakeoil Measurements 1.3.0
Last Post: kees1000
13-Apr-2024 11:54 PM
» Replies: 95
» Views: 4874
|
LMS rebranded to Lyrion Media Server
Last Post: Bromf
07-Apr-2024 01:59 PM
» Replies: 4
» Views: 106
|
ZimaBoard 2x NIC, 2x SATA, 2x USB, 1x PC...
Last Post: agent_kith
26-Mar-2024 12:04 PM
» Replies: 13
» Views: 698
|
LMS Upgrade ?
Last Post: uglymusic
15-Mar-2024 09:14 PM
» Replies: 7
» Views: 201
|
Squeezebox shutdown
Last Post: TripleX
13-Mar-2024 07:34 AM
» Replies: 4
» Views: 102
|
Fail to install myMPD
Last Post: hkphantomgtr
03-Mar-2024 08:45 PM
» Replies: 9
» Views: 241
|
Intel HFI Driver Can "Save Tons Of CPU C...
Last Post: hkphantomgtr
28-Feb-2024 09:15 PM
» Replies: 0
» Views: 64
|
More Problems with Squeezelite in 1.3
Last Post: Coacharnold
17-Feb-2024 09:47 PM
» Replies: 2
» Views: 93
|
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.
|
|
|