F5F Stay Refreshed Software Operating Systems Need guidance on configuring Zram and sysctl.conf correctly.

Need guidance on configuring Zram and sysctl.conf correctly.

Need guidance on configuring Zram and sysctl.conf correctly.

Pages (2): Previous 1 2
N
NevaehBRAH
Member
133
02-16-2016, 10:01 AM
#11
I noticed it doesn’t look quite right. I executed the sync command and added the line to clear the cache. Now it should work as expected before any issues occurred.
N
NevaehBRAH
02-16-2016, 10:01 AM #11

I noticed it doesn’t look quite right. I executed the sync command and added the line to clear the cache. Now it should work as expected before any issues occurred.

W
WolfieLegend
Junior Member
4
02-17-2016, 01:24 AM
#12
the priority config should be set to -75 p instead of -1000 p.
W
WolfieLegend
02-17-2016, 01:24 AM #12

the priority config should be set to -75 p instead of -1000 p.

I
209
02-17-2016, 10:12 AM
#13
Swapping plays a key role here, especially through swappiness, which influences its tendency to swap. Other sysctl settings usually have minimal impact on this allocation. Your priority and other configurations won't change the outcome. This number just sets the sequence for swap devices, but you only get one. Setting it won't matter at all.
I
IninhaGamer_BR
02-17-2016, 10:12 AM #13

Swapping plays a key role here, especially through swappiness, which influences its tendency to swap. Other sysctl settings usually have minimal impact on this allocation. Your priority and other configurations won't change the outcome. This number just sets the sequence for swap devices, but you only get one. Setting it won't matter at all.

_
_God47_
Member
108
02-18-2016, 10:20 AM
#14
Thanks for clarifying. I wasn’t sure if the priority was correctly configured, but it’s important. This helps Zram begin swapping sooner at the 30% RAM threshold. My usual boot and idle usage is around 31%, which rises to about 50% when I open LibreOffice with a few apps running. Other tasks using RAM will trigger swapping around 30-40% to prevent the system from hitting the 95% slowdown point.
_
_God47_
02-18-2016, 10:20 AM #14

Thanks for clarifying. I wasn’t sure if the priority was correctly configured, but it’s important. This helps Zram begin swapping sooner at the 30% RAM threshold. My usual boot and idle usage is around 31%, which rises to about 50% when I open LibreOffice with a few apps running. Other tasks using RAM will trigger swapping around 30-40% to prevent the system from hitting the 95% slowdown point.

B
BPGUENTZEL
Member
189
02-18-2016, 01:51 PM
#15
Not really. The reason for swapping is usually when memory is insufficient or better utilized as disk storage. When CPU usage is low during swapping, it can waste processing power compressing RAM. Have you considered using the hard drive as a swap file? How does that affect performance? If you're running a browser with lightweight apps and hitting 16GB memory limits, there might be other issues beyond just the swap settings.
B
BPGUENTZEL
02-18-2016, 01:51 PM #15

Not really. The reason for swapping is usually when memory is insufficient or better utilized as disk storage. When CPU usage is low during swapping, it can waste processing power compressing RAM. Have you considered using the hard drive as a swap file? How does that affect performance? If you're running a browser with lightweight apps and hitting 16GB memory limits, there might be other issues beyond just the swap settings.

O
oMabye
Member
201
02-20-2016, 05:49 AM
#16
As discussed earlier, zswap should be turned off due to its adverse impact on zram performance. Its effect on utilization remains uncertain, but I’m not confident it will influence usage significantly.
O
oMabye
02-20-2016, 05:49 AM #16

As discussed earlier, zswap should be turned off due to its adverse impact on zram performance. Its effect on utilization remains uncertain, but I’m not confident it will influence usage significantly.

T
TheRoyalJam
Junior Member
41
02-20-2016, 06:10 AM
#17
i configured zram using sudo nano /usr/bin/init-zram-swapping. The 2024 link from fosspost matches this approach, while the 2023 version from maketecheasier post has a different setup. In my terminal view next to each post’s config, I see the line swapon -p 1000 /dev/zram0. That’s similar to how it works in Pop-OS. I’m unsure about Ubuntu 24.04lts—should it use zstd as the algorithm? For Ubuntu 24.04, the recommended method is to run the script with the zstd compression. You can add a command like compress-force=zstd:5 before writing to /sys/block/zram0/comp_algorithm. This will apply the same compression setting across all partitions.
T
TheRoyalJam
02-20-2016, 06:10 AM #17

i configured zram using sudo nano /usr/bin/init-zram-swapping. The 2024 link from fosspost matches this approach, while the 2023 version from maketecheasier post has a different setup. In my terminal view next to each post’s config, I see the line swapon -p 1000 /dev/zram0. That’s similar to how it works in Pop-OS. I’m unsure about Ubuntu 24.04lts—should it use zstd as the algorithm? For Ubuntu 24.04, the recommended method is to run the script with the zstd compression. You can add a command like compress-force=zstd:5 before writing to /sys/block/zram0/comp_algorithm. This will apply the same compression setting across all partitions.

G
GG_boy
Member
68
02-21-2016, 09:19 AM
#18
Threads combined
G
GG_boy
02-21-2016, 09:19 AM #18

Threads combined

Pages (2): Previous 1 2