Jump to content

siuping

  • Posts

    9
  • Joined

  • Last visited

  • Country

    Hong Kong

Retained

  • Member Title
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Please try below command instead since your output of cat /proc/irq/18/smp_affinity is in HEX 0f. echo 04 > /proc/irq/18/smp_affinity
  2. Hi Dynobot, Agree with that! I think even the arrangement of CPU affinity should not be customized too much. I also have no idea of the outcome after reducing swappiness and wonder if any memory swapping took place since the used memory is always under 20% of the total memory. top - 16:20:04 up 9:57, 1 user, load average: 0.00, 0.01, 0.05 Tasks: 134 total, 1 running, 133 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.2 us, 0.1 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 3710752 total, 606188 used, 3104564 free, 35212 buffers KiB Swap: 0 total, 0 used, 0 free. 270192 cached Mem
  3. How about just simply use the command like this: echo 3 > /proc/irq/18/smp_affinity
  4. I've tried the Swappiness at 0 and 10, both sound lean but not as much as chrt on ksoftirq. Then I changed it slightly to 50 but still found not good to me. (My RAM is 4G gskill cl7, HDD is 64G msata) On the other hand, based on the good feeling on CPU affinity of squeezelite, I added the following line in my script. This is to assign the USB IRQ to a rather idle CPU core. echo 2 > /proc/irq/$(cat /proc/interrupts | grep "ehci" | cut -f1 -d ":" | tr -d " " )/smp_affinity Again, the sound is natural and refined without affecting the density.
  5. Actually Dynobot has shared the necessary steps in his home site. I just recall them and simply list out some steps. 1. SSH to Daphile and type cat /proc/interrupts to list out the interrupt calls and find out the top counters. And you may also need to figure out the controller/interface to your DAC using commands like lsusb and lspci. It is better to assign it a higher priority to respond. 2. Type the command ps -eLo pid,cls,rtprio,pri,nice,cmd | grep -i "irq" to confirm the IRQ# and the priority#. The higher the no. the higher priority. Decide the priority no. and replace the device name 'ehci' by yours (e.g. ohci) in my script. 3. Save the script as e.g. tweak.start (leave one line at the bottom in the script) and use winscp to transfer (text mode) the file to folder /etc/local.d 4. In SSH, go to the folder and type chmod 755 *.start to grant executable permission and restart Daphile. You can verify the settings using the command in step 2 after reboot. To disable the tweak, you could simply delete the file or comment out the lines.
  6. Yes, Joel. I agree with that. Apart from using low TDP CPU, I've configured some of the voltages in BIOS. And seems the overall hardware config has hold the key factor where you can't improve it much in software side.
  7. Hi, Thanks for the tweaks Dynobot. I have tested some of them and here are my comments based on my system config. I'm using the realtime kernel version released on Aug 2015. 1. Use chrt on ksoftirq is not good for me. It sounds like sharper and having more detail at first sight but actually the sound is lean and has lesser density than default setting. Same results when I changed the priority to 83 or 50. 2. CPU affinity of squeezelite (taskset -p 03) is good to me. The sound is having more detail in micro-dynamics but without affecting the density. The imaging is better and this is exactly what I expected to improve. Then I further tested on the priority of other IRQ. I found the 3 top being called are the ehci (USB interface to DAC), rtc0 and enp0s25 (Ethernet). I increased the ehci but lowered the enp0s25 which I believe the priority is the least significant since there should always be enough buffering in RAM. The result is good though not as obvious as changing the affinity of squeezelite. Sounds smoother and more natural but keeping the micro-dynamics and density. Here are the default settings: 105 FF 80 120 - [irq/18-ehci_hcd] 1390 FF 40 80 - [irq/27-enp0s25] Current settings: 3 FF 1 41 - [ksoftirqd/0] 21 FF 1 41 - [ksoftirqd/1] 30 FF 1 41 - [ksoftirqd/2] 39 FF 1 41 - [ksoftirqd/3] 54 TS - 19 0 [irq/9-acpi] 83 FF 40 80 - [irq/25-0000:00:] 98 FF 40 80 - [irq/14-pata_leg] 102 FF 40 80 - [irq/15-pata_leg] 105 FF 85 125 - [irq/18-ehci_hcd] 106 FF 40 80 - [irq/16-ohci_hcd] 108 FF 40 80 - [irq/17-ohci_hcd] 111 TS - 19 0 [irq/12-i8042] 112 TS - 19 0 [irq/1-i8042] 113 FF 90 130 - [irq/8-rtc0] 516 FF 40 80 - [irq/26-mei_me] 1390 FF 35 75 - [irq/27-enp0s25] 3216 TS - 19 0 grep -i irq I haven't tried the Swappiness and may try it soon. Thanks again. My script: #!/bin/sh sleep 5 taskset -c -p 03 $(pidof squeezelite) # Get proc # for USB irq usb=`ps -e |grep ehci|cut -f3 -d" "` # Set new priorities chrt -f -p 85 $usb # Get proc # for ETH irq eth=`ps -e |grep enp0s25|cut -f2 -d" "` # Set new priorities chrt -f -p 35 $eth
  8. Hi Joel, I don't have any improvement in SQ by enabling the power management. I doubt there will be some additional processes created during runtime for managing the selected device. Regards, SiuPing
  9. Hi All, Just wanna share some of my findings on some configurations in Daphile according to the SQ... 1. Network drive mapping using CIFS sounds better than NFS - Although the file transmission speed (file copy function) under NFS is significantly faster than CIFS, CIFS definitely gives a (much) better resolution in SQ. I have confirmed this with some guys who're using NFS before. 2. Default Squeezelite sounds better than SqueezePlay - Seriously, they are not just only "hearing the difference". I think you may not concern since the squeezelite is the default option. Thanks for the tweaks of the startup script. I believe that would be an great improvement in SQ. I have been disabled all unnecessary ports and devices in BIOS and the SQ improved much as well.
×
×
  • Create New...