soundcheck wrote: 
> Triode.
> 
> I wrote a rt_prio setting patch for myself based on b09.11. 
> 
> I added option "-p" for setting the output thread prio manually. It
> defaults to 45 instead of your chosen 40 at no input. 
> 
> It works well on my normal PC.
> 
> If you can make any use of it...
> 
> Cheers

Thanks - will look at this; I was definately going to change it, perhaps
we make it an option when the uname includes PREEMPT in it?

Could you also try with:

#include <sys/mman.h>

if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1) {
        LOG_INFO("unable to lock memory: %s", strerror(errno));
}

This will only work as root or if the user is allowed to lock memory. 
I'm interested if you see any benefit from doing this.  There is memory
allocation inside the codecs, but the rest of squeezelite aims to avoid
malloc/free while streaming.  I'm wondering whether this is useful.  It
will keep squeezelite in memory while other processes page out.


------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to