wlowes wrote:From my experience with CMP minimizing threads and processes that are not needed does help. MPDPUP is already very lean, but clearly there are system specific items that can be killed.
Alix users, with just a quick glance it is clear we can kill off bluetooth, video, line printer etc. As a teaser try the following. You'll see a nice relaxed clarity in the highs.
killall avahi-daemon
modprobe -r btusb
modprobe -r r8169
modprobe -r uvcvideo
modprobe -r ppdev
modprobe -r lp
modprobe -r videodev
modprobe -r ath9k
killall lxmd-binary
Hi Wlowes, always interested in tweaks - The areas Dynobot and Jrling were discussing were interesting, and I'm sure there is some value in some of them, but no consensus was reached. We were also playing with re-nicing and re-prioritizing a number of processes.
Regarding the modules you're removing above - I didn't think the Alix had any of that hardware. Note modprobe -r won't have any affect unless the kernel actually loaded the module, and without the actual hardware I don't think they will be loaded. Use 'lsmod' to see what is actually loaded on your system. I'm curious to see what is loaded by default on the Alix hardware, so please report back - there may be some obvious modules to remove.
For the most part deleting files will save a bit of RAM because the filesystem is in memory, which is important on a RAM compromised system like the Alix, but I don't believe it should make any difference in sound quality.
I believe jrling has defected over to Windows - but the last set of attempts he sent me are below - which I believe originated from Soundcheck's squeezebox tweaks. Note I'm not specifically endorsing any of these specific settings (and some are more specific to a Squeezebox touch), but I think some of this may be on the right track
Code: Select all
#!/bin/bash
renice -20 3
renice -20 9
renice 2 -p $(pidof loop0)
renice 2 -p $(pidof loop1)
renice 0 35 #psmouse -may be slight improvement
renice 0 16 #ata-sff HDD support - Indiscernable but not worse
renice 9 -p $(pidof xfs_mru_cache)
renice 9 -p $(pidof xfslogd)
renice 9 -p $(pidof xfsdatad)
renice 9 -p $(pidof xfsconvertd)
renice -19 -p $(pidof mpd) #sometimes doesnt work
chmod 666 /sys/module/ehci_hcd/parameters/log2_irq_thresh
echo 6 > /sys/module/ehci_hcd/parameters/log2_irq_thresh
chmod 666 /sys/module/ehci_hcd/parameters/park
echo 3 > /sys/module/ehci_hcd/parameters/park
#echo 999999999 > /sys/bus/usb/drivers/usbhid/module/parameters/mousepoll
echo 1 > /proc/sys/vm/dirty_ratio
echo 40 > /proc/sys/vm/dirty_background_ratio
echo 5000 > /proc/sys/vm/dirty_writeback_centisecs
echo 0 > /proc/sys/vm/swappiness
echo 2048 > /proc/sys/kernel/msgmni
echo 65535 > /proc/sys/kernel/msgmax
echo 65535 > /proc/sys/kernel/msgmnb
echo 40960 > /proc/sys/fs/file-max
echo 50 > /proc/sys/vm/vfs_cache_pressure
echo 0 > /proc/sys/net/ipv4/tcp_app_win
#echo "2000 2048000 1024 4096" > /proc/sys/kernel/sem #doubled suggested values for 4GB RAM awful
echo 2147483648 > /proc/sys/kernel/shmmax
modprobe -r ir_lirc_codec
modprobe -r lirc_dev
modprobe -r ir_sony_decoder
modprobe -r ir_jvc_decoder
modprobe -r ir_rc6_decoder
modprobe -r ir_rc5_decoder
modprobe -r imon
modprobe -r ir_nec_decoder
modprobe -r rc_core
modprobe -r rtc
modprobe -r power_supply
modprobe -r serio_raw # serio ports, whatever those are
modprobe -r i2c_i801 # temp sensors
modprobe -r 8250_pnp # serial driver
modprobe -r processor
modprobe -r snd-seq-oss
modprobe -r snd-pcm-oss
modprobe -r snd_seq_dummy
modprobe -r snd_seq_midi
modprobe -r snd_seq_midi_event
#modprobe -r snd_rawmidi
modprobe -r snd_seq
#modprobe -r snd_seq_device
killall lighttpd
killall avahi-daemon
blacklist snd_pcm_oss
I was also trying to re-nice the CIFS threads as well to a lower priority. Unfortunately I just don't think my current system is revealing enough to make it very clear to me if any of these tweaks have a major affect.