Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cpuset and mpd resampler (Libsamplerate) issue
#1
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.
Reply
#2
(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!
Reply
#3
(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
Reply
#4
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!
Reply


Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVEDnew install issue Eso 2 393 23-Jan-2021, 03:55 PM
Last Post: Eso
  CpuSet Feature While Using Upmpdcli ekpln 12 1,385 16-Nov-2020, 12:48 AM
Last Post: PeteCallaghan
  Issue seeing full capacity when mounting NAS in OSX El Capitan markiteight 3 1,491 12-Mar-2019, 10:44 AM
Last Post: agent_kith
  Activation issue zapco 10 3,002 20-Feb-2019, 09:35 AM
Last Post: agent_kith



Users browsing this thread: 1 Guest(s)
[-]
Sponsor

[-]
Latest Threads
Can snake oil connect to audio station f...
Last Post: Snoopy8
Today 06:47 AM
» Replies: 1
» Views: 6
Best way to run Snakeoil?
Last Post: Bromf
Today 06:09 AM
» Replies: 3
» Views: 18
Amanero usb module on ess9029pro
Last Post: agent_kith
Yesterday 06:05 PM
» Replies: 3
» Views: 36
Add RompR or/and O!MPD
Last Post: Primare11
24-Jul-2021 03:40 PM
» Replies: 2
» Views: 32
New look Forum
Last Post: agent_kith
24-Jul-2021 03:29 PM
» Replies: 1
» Views: 17

[-]
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.


[-]
Random Quotes
Unable to access Wiki from Android P...
agent_kith's profile agent_kith
I can get to Wiki using link.  But what I have been using is top right corner, Manual. Also, top left corner, Home, SnakeOil OS User Guide.  Perhaps the ...

>