zram swap support for the PBP; aka: "how to download more RAM"
#11
(02-01-2020, 01:06 PM)wasgurd Wrote:
(01-21-2020, 11:39 PM)Arglebarg Wrote:
Code:
root@pinebookpro:~/work/zram-swap# cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/zram0                              partition       6291452 0       5

I'm pretty sure the default swapfile has a priority of 1, 0 or -1; I can't remember which. The zram-swap script sets priority 5 which should be higher.

You can safely disable the default swapfile and remove it.

What size of zram do you recommend?
I personally use 2xRAM, 1.5xRAM is what Chromebooks use as well as what my team uses at work for our production fleet. It kinda depends on what compression algorithm you use as well as what gets stuffed into your RAM. If you use lz4 for extra-fast compression/decompression you should expect compression ratio around 2x on average, with default lzo or lzo-rle you should expect compression ratio around 3x. Considering you still need some base memory that cannot be swapped out/compressed, I'd say you should be OK with the above mentioned sizes for zram - you are more likely to see the system slow down very noticeably as it fills up zram beyond ~180-200% total RAM use ((zram content + RAM use - zram compressed size)/total RAM) than see OOMs with those sizes in my experience.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Official Debian support moonwalkers 64 64,282 07-08-2024, 01:40 PM
Last Post: Humid Stylus
  Armbian is [edit: no longer] dropping support for Pinebook Pro TRS-80 4 4,805 12-23-2022, 12:01 AM
Last Post: TRS-80
  Armbian VPU decoding support coming soon LivingLinux 0 1,058 11-13-2022, 02:32 PM
Last Post: LivingLinux
  Kernel 5.17 will improve VP9 support? jiyong 1 2,547 01-16-2022, 08:26 PM
Last Post: xmixahlx
  Debian GPU Support Atton 5 6,569 12-02-2021, 05:37 PM
Last Post: cobratbq
  PostmarketOS - Why swap file not on at boot? stozi 3 4,706 06-24-2021, 12:27 AM
Last Post: craftyguy
  [LibreOffice & Gimp] ARM support: no hardware acceleration on [Manjaro] Pinebook Pro regivanx 0 2,103 06-15-2021, 04:04 AM
Last Post: regivanx
  [Panfrost] now support stable OpenGL ES 3.1 rimaille 0 2,286 06-10-2021, 11:23 PM
Last Post: rimaille
  Better rkvdec support in 5.11? ShootTheMoon2 2 4,206 02-28-2021, 07:10 PM
Last Post: ShootTheMoon2
  Question about graphics support mcc 11 17,423 10-10-2020, 06:43 AM
Last Post: sigmaris

Forum Jump:


Users browsing this thread: 2 Guest(s)