![]() |
zram...? Raspberry Pi & Snakeoil - Printable Version +- Snakeoil Forums (https://forums.snakeoil-os.net) +-- Forum: Hifi Talk (https://forums.snakeoil-os.net/Forum-Hifi-Talk) +--- Forum: Computer Audio (https://forums.snakeoil-os.net/Forum-Computer-Audio) +--- Thread: zram...? Raspberry Pi & Snakeoil (/Thread-zram-Raspberry-Pi-Snakeoil) |
zram...? Raspberry Pi & Snakeoil - Bromf - 24-Oct-2018 zram vs swap.... seems easy to try and revert.... I don't think either are particularly needed as monitoring with top whilst playing seems to show the most hungry program being...top @14% CPU on one core. Mpd is pretty low resource usage anyway and these days I am using an AK4137 re-sampler to convert to DSD256 either via xmos or I2S depending on player so no heavy re-sampling is needed by the o/s or player hardware and DSD is fed to an Ess DAC bypassing some of the Chip's filtering. So, I will try some more listening tests using zram and see if I can notice any difference.... Any comments appreciated... https://github.com/novaspirit/rpi_zram RE: zram...? Raspberry Pi & Snakeoil - agent_kith - 24-Oct-2018 (24-Oct-2018, 05:02 PM)Bromf Wrote: zram vs swap.... seems easy to try and revert.... swap is just there as a buffer in case my RESTful API messed up. So far it hasn't, but if it does at least there's something to fall back to. The good thing is if there's no issues, then the swap space will be enabled but not used. if you know what I mean. An good option is to have an option to turn off swap entirely. That may be worthwhile I think. As for zram.. That's the first time I have heard of it.. Will try and research later what it is later on. ![]() RE: zram...? Raspberry Pi & Snakeoil - Bromf - 25-Oct-2018 zram is a 'swap' space in ram using compression. It replaces a conventional swap space so reduce wear/usage for the Pi's sd-card and is much faster if and when it is used. The linked github version for the Pi removes current swap and replaces it with zram swap calculated for the performance/cores of a Pi3 or better. I've found no performance issues so far in testing.... though no obvious benefits yet either... ![]() https://www.kernel.org/doc/Documentation/blockdev/zram.txt https://www.cnx-software.com/2018/05/14/running-out-of-ram-in-ubuntu-enable-zram/ RE: zram...? Raspberry Pi & Snakeoil - agent_kith - 25-Oct-2018 (25-Oct-2018, 05:25 AM)Bromf Wrote: zram is a 'swap' space in ram using compression. It replaces a conventional swap space so reduce wear/usage for the Pi's sd-card and is much faster if and when it is used.Ah, that brings back memories back in the DOS days.. A memory compressor. (25-Oct-2018, 05:25 AM)Bromf Wrote: https://www.kernel.org/doc/Documentation/blockdev/zram.txtI'd see if I can get that support in. Chances are, it'd require a new kernel though.. Wiill explore this in time. RE: zram...? Raspberry Pi & Snakeoil - Bromf - 25-Oct-2018 From what I've read zram is merged into mainline kernel since 3.14.... Using the linked github install on RPi and when I run... Code: $ grep zram /proc/swaps Code: /dev/zram0 partition 236028 0 5 ![]() RE: zram...? Raspberry Pi & Snakeoil - agent_kith - 25-Oct-2018 (25-Oct-2018, 06:16 PM)Bromf Wrote: From what I've read zram is merged into mainline kernel since 3.14....Run something intensive like JRiver and see more RAM gets consumed. To be fair this also likes a virtual desktop, hence the extra overheads. This is why I prefer MPD or LMS+Squeezelite. Edit: To be even fairer I think I should be able to cut down the number of running processes too. From 1.x.x onwards I notice the number of processes running appear to be 2 to 4 times more than 0.1.x series. However, I guess because of the real time+force preemption kernel, it doesn't really matter as the process that requires CPU attention will always get it. Hopefully I can revise the kernel and streamline it even more in the future. |