Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

General discussion • Re: Bookworm feedback thread

$
0
0
Talking about swap, i increased my sway size to 2 GB (i have 4gb ram). If you get system freezes with relatively high load (high load on a RPI can be just a few Chromium tabs by the way :) ) i totally recommend it. Especially "google maps" for example eats the ram like no other. I always had problems with it. Now i increased the swap size, i can actually see when i log into google maps and look around a bit, almost half my swap gets filled. But i get no freezes.

PS: Put your swap to a relatively faster drive. SD card as swap is not a good idea.

I also enabled "zswap" which is a Linux kernel feature and it is working on RPIOS. Just put the line "zswap.enabled=1" to your cmdline.txt. And yes, it is really working:

Code:

grep -r . /sys/module/zswap/parameters//sys/module/zswap/parameters/same_filled_pages_enabled:Y/sys/module/zswap/parameters/enabled:Y/sys/module/zswap/parameters/max_pool_percent:20/sys/module/zswap/parameters/compressor:lzo/sys/module/zswap/parameters/non_same_filled_pages_enabled:Y/sys/module/zswap/parameters/zpool:zbud/sys/module/zswap/parameters/accept_threshold_percent:90
zswap is a kernel feature that provides a compressed RAM cache for swap pages. Pages which would otherwise be swapped out to disk are instead compressed and stored into a memory pool in RAM. Once the pool is full or the RAM is exhausted, the least recently used (LRU) page is decompressed and written to disk, as if it had not been intercepted. After the page has been decompressed into the swap cache, the compressed version in the pool can be freed.

The difference compared to zram is that zswap works in conjunction with a swap device while zram with created swap on top of it is a swap device in RAM that does not require a backing swap device.

Statistics: Posted by twilightened — Thu Dec 14, 2023 10:01 pm



Viewing all articles
Browse latest Browse all 4906

Trending Articles