<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 8 Nov 2024 at 18:31, Torstein Sørnes <<a href="mailto:mkoutny@suse.com">mkoutny@suse.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I get an error that the device is not found even though it seems to exist with ls.<br>$ /usr/lib/systemd/system-generators/zram-generator --setup-device /dev/zram0                                                                              (base) 19:25:17<br>Error: Device /dev/zram0 not found<br>$ ls -Ah -l /dev/zram0                                                                                                                                     (base) 19:25:19<br>brw-rw----. 1 root disk 252, 0 2024-11-08 19:22 /dev/zram0<br><br>$ cat /etc/systemd/zram-generator.conf                                                                                                                     (base) 19:25:26<br>[zram0]<br>zram-size = 32G</div><br></blockquote><div> </div><div>From the user manual</div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"><div><br></div></div><div class="gmail_quote"><div> <span style="font-family:monospace;font-weight:bold;color:rgb(0,0,0)">zram-</span><span style="font-family:monospace;font-weight:bold;color:rgb(255,255,255);background-color:rgb(0,0,0)">size</span><span style="font-family:monospace;color:rgb(0,0,0)">=</span></div></div><div class="gmail_quote"><span style="font-family:monospace"><br></span></div><div class="gmail_quote"><span style="font-family:monospace">Sets the <span style="color:rgb(255,255,255);background-color:rgb(0,0,0)">size</span><span style="color:rgb(0,0,0)"> of the zram device as a function of </span><span style="color:rgb(0,0,0)">MemTotal</span><span style="color:rgb(0,0,0)">, available as the </span><span style="font-weight:bold;color:rgb(0,0,0)">ram </span><span style="color:rgb(0,0,0)">variable.
</span></span></div></blockquote><div class="gmail_quote"><span style="font-family:monospace"><br></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"><span style="font-family:monospace">Arithmetic operators (^%/*-+), e, π, SI suffixes, log(), int(), ceil(), floor(), round(), abs(), min(), max(), and trigonometric functions are supported.
</span></div></blockquote><div class="gmail_quote"><span style="font-family:monospace"><br></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"><span style="font-family:monospace">Defaults to <span style="color:rgb(0,0,0)">min(ram</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,0)">/</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,0)">2,</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,0)">4096)</span></span></div></blockquote><div class="gmail_quote"><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div><div class="gmail_quote"><br></div><div class="gmail_quote"><span style="color:rgb(0,0,0)"><font face="arial, sans-serif">Do you have >32G in your machine, how much. Maybe set the value a bit lower or define it as a fraction</font></span></div></div>