Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

Moode Audio Player for Raspberry Pi
Moode Audio Player for Raspberry Pi
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 20th May 2015, 02:29 PM   #111
soundcheck is offline soundcheck  Germany
diyAudio Member
 
Join Date: Mar 2005
Location: DUS
Just figured that IRQ affinity can not be set on the Pi2.

Funny. You'll get 4 processors and you can't make full use them.

If anybody has a solution to it let me know.


I just wrote this little script:

Code:
root@moode:~# cat tune.sh 
#!/bin/bash -x

chrt -f -p 80 $(pgrep mpd)
taskset -c -p 3 $(pgrep mpd)
IR=$(cat /proc/interrupts | grep ":usb" | awk '{print $1}' | cut -f 1 -d ":")
echo 2 >/proc/irq/$IR/smp_affinity

exit

The last echo gives I/O errors.

Cheers
  Reply With Quote
Old 20th May 2015, 09:14 PM   #112
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Quote:
Originally Posted by soundcheck View Post
Hi.

I'm just trying your solution on a Pi2. Worked out of the box. Very nice.

I hooked up my RME Fireface UCX (in class compliant mode).
Another working interface you can add to your DAC list.

A first glance comment:
It seems that just one processor out of 4 is used on the Pi2.
I'd recommend to change CPU affinity and task priority of mpd to e.g. CPU1
and assign the USB interrupt to another free CPU e.g CPU2.

Thx.
Hi,

Thanks!

I'll add the RME audio device to the DAC list on tcmods.org and to the Audio De ice Description database in Moode

Will investigate CPU pinning, interesting.

Regards,
TC
  Reply With Quote
Old 20th May 2015, 10:21 PM   #113
superpat is offline superpat  United Kingdom
diyAudio Member
 
Join Date: Dec 2006
Default regarding cpu usage on Pi 2

Hi

If you run htop in a ssh terminal whilst pi is playing 192/24 flat, you will see Pi is running with almost No load.

One core shows about 5 per cent, other three cores 0 per cent.

however each core does appear to get a turn, as each time htop rescans, a different core is showing load

Cheers

Patrick
  Reply With Quote
Old 21st May 2015, 08:04 AM   #114
soundcheck is offline soundcheck  Germany
diyAudio Member
 
Join Date: Mar 2005
Location: DUS
Hi.

I have <1% load on my B+ (overclocked 950Mhz) with squeezelite.
I have currently 3-4% load on my Pi2 (no overclocking) with mpd.

Both on 24/44.1 flacs.

One huge advantage of squeezlite is the configurable processing buffer, which can have any size e.g. 200MB.
Basically you'll see a bulk load and bulk decoding of the flac in the first couple seconds (with higher load) and then the whole track is played back from the internal decoding buffer at minimum load. This avoids all interprocess/interthread bottlenecks that usually cause higher load.

BTW: Do you have MPD compiled with the rtopt patch in?

Cheers
  Reply With Quote
Old 21st May 2015, 08:33 AM   #115
soundcheck is offline soundcheck  Germany
diyAudio Member
 
Join Date: Mar 2005
Location: DUS
Hi.

It's me again. Reference to my earlier post:

Lifting up just the prority of mpd might cause XRUNS, especially if you load
data over the network. While the file gets loaded from my NFS mount I experience around 2s of initial XRUNS and after that its fine. I'd say the
USB-out overrules the ethernet-in. Once the buffer is initially filled the whole setting works ok.

Last edited by soundcheck; 21st May 2015 at 08:35 AM.
  Reply With Quote
Old 21st May 2015, 10:32 AM   #116
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Quote:
Originally Posted by soundcheck View Post
I'd say the
USB-out overrules the ethernet-in.
USB-audio is isochronous, all samples available to be transfered to the endpoint will be put into each frame up to 90% of the frame capacity (by USB specifications, the kernel USB core should adhere). But 44/16x2 does not take much of the bandwidth even on 12Mbps fullspeed.

Perhaps the problem is USB1.2 audio mixed with USB2 ethernet, forcing the USB to 12Mbps?

Still the way to go would be to fill the input buffer first and then start the playback, like e.g. mplayer does it (-cache + -cache-min). Perhaps MPD can be configured a bit in that respect?
  Reply With Quote
Old 21st May 2015, 02:47 PM   #117
soundcheck is offline soundcheck  Germany
diyAudio Member
 
Join Date: Mar 2005
Location: DUS
Regarding CPU affinity.
Not only IRQ assignments didn't work. Task assignments didn't work either, even though "taskset" was reporting positive results.

One step further:

You need to isolate CPUs from CPU balancing first. All tasks are balanced between all CPUs on the PI2 by default.
By introducing a new parameter to /boot/cmdline.txt e.g.:

isolcpus=3

you would isolate the 4th CPU from balancing.
Basically all automatic loaded tasks will be then spread over CPU0 and 1,2. CPU3 can now exclusively be used. You can also add another CPU to the list.

With" taskset" you can now assign a dedicated task e.g. mpd to e.g. CPU3.

However. IRQ assignments are still giving errors.
  Reply With Quote
Old 24th May 2015, 07:46 PM   #118
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Hi,

Just a couple quick announcements:

(1) There is a nice review of Moode in Part-Time Audiophile
Review: Raspberry Pi 2 as Music Streamer | Confessions of a Part-Time Audiophile

(2) tcmods.org web site has a new look as part of transition to new moodeaudio.org domain/email sometime in June.

(3) Several nice UPnP enhancements have tested out and should make it into release 1.9

- Album art displayed if URL provided by UPnP DB server
- Improved metadata handling for UPnP song files
- Play/pause handling for UPnP song files

Regards,
tcmods.org
Moode on Twitter
TC
  Reply With Quote
Old 25th May 2015, 05:34 AM   #119
DRONE7 is offline DRONE7  New Zealand
diyAudio Member
 
Join Date: Aug 2008
Quote:
(1) There is a nice review of Moode in Part-Time Audiophile
Congratulations Tim ! so well deserved.
  Reply With Quote
Old 28th May 2015, 03:04 AM   #120
Buckapound is offline Buckapound  United States
diyAudio Member
 
Join Date: Feb 2006
Location: Chicago, IL
I have a simple question, as I am having some trouble trying to get to the interface for this thing.

The "Readme" on the TCMods site says to go to "http://moode" when booted and connected to a network.

When I do this, depending on the browser I either get nothing at all, or the Moode college site (mode.com). The address for this device seems weird in that it has no .com, .org, etc. so I'm wondering if this is a typo or if there is something I am missing.

I really appreciate all the hard work on this project, but am frustrated that the instructions on the site don't seem to work for me. I do have it booted properly as near as I can tell, and it is showing up when I scan the network.

Any suggestions?
  Reply With Quote

Reply


Moode Audio Player for Raspberry PiHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My DAC for the Raspberry Pi usul27 Digital Line Level 156 29th April 2017 11:10 PM
DSP for the Raspberry Pi usul27 Digital Line Level 39 30th August 2016 07:29 AM
Raspberry Pi + CirrusLogic Audio Card = FAIL solderhead PC Based 31 26th January 2016 06:48 PM
RaspyFi/Volumio - Turn raspberry Pi into Audiophile audio Player mikelangeloz PC Based 295 14th June 2014 05:32 PM
miniAMP and raspberry pi kp93300 miniDSP 0 3rd March 2014 03:38 AM


New To Site? Need Help?

All times are GMT. The time now is 02:28 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki