Raspberry Pi 3 with 2GB RAM playing the devil's advocate


78 posts   Page 4 of 4   1, 2, 3, 4
by sarahgad » Mon Jun 19, 2017 9:39 am
Do you recommend keep on using the old Kernel prior to 3.15 for the purpose?
Posts: 29
Joined: Fri Jan 20, 2017 12:07 pm
by ric96 » Mon Jun 19, 2017 9:57 am
sarahgad wrote:Do you recommend keep on using the old Kernel prior to 3.15 for the purpose?

absolutely NOT, the script works fine as is on any 4.x based kernel. If you want to have a single swap file just modify it, won't be necessary though.
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com
User avatar
Posts: 1250
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
by PeterO » Mon Jun 19, 2017 10:31 am
ric96 wrote:https://unix.stackexchange.com/questions/17254/how-to-set-up-properly-zram-and-swap
I'll leave this here...
PeterO wrote:"I have four cores so I need four zram devices" seems like a non sequitur.

PeterO


From that page "Interesting, and this also seems quite clear to understand by reading /etc/init/zram-config.conf "

So what is in /etc/zram-config.conf for those of us who have not installed it ?

EDIT... Google found me a version, and it contains nothing that explains the reasoning.... :roll:

Also, since all my PIs run with USB drives and no SDcards, swapping (when it happens) goes to the USB disk not the slow SDcard. Would zram still provide useful performance increase in this case ?
I'm sceptical because assigning half your ram to these devices is going to make swapping happen much sooner to start with.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson
User avatar
Posts: 3393
Joined: Sun Jul 22, 2012 4:14 pm