On 10/2/22 15:25, Samuel Sieb wrote:
On 10/2/22 15:18, Mike Wright wrote:
> On 10/2/22 13:52, Bill Cunningham wrote:
>> I wanted to ask all who might be interested too, and know the
>> answers to this, first, in short,
>>
>>
>> /dev/zram0 my system says is a swap file. It's really no big deal,
>> but I would rather not have one. I see the old 'mkswap' command is
>> gone, I look at the filesystem and see no visible swap. Is there a
>> way to turn this off? I really don't think my memory needs to swap
>> out pages to the filesystem; but then, maybe it could use it. Turning
>> it off probably wouldn't hurt.
>>
>> And also what comes goes, my system went down and no worries.
>> But I did try to rescue the system with e2fsck. When done after quite
>> some time. All the showed up was 'lost+found' and in that directory
>> was a lot of directories that were numbered. Some had the hash in
>> front. I guess I really did a number on it. Nothing was lost worth
>> keeping. It needed cleaned anyway.
>
> If you decide you do need swap checkout zswap. It compresses swapped
> out pages and stores them in local RAM. It's a kernel option and is
> activated by adding "zswap.enabled=1" to the linux boot lines in your
> grub.cfg.
>
> Because it's not a command, per se, there's no man page. A web search
> on zswap will return plenty of info.
zram is a compressed memory block device used by default for swap in
Fedora now. zswap is different. It intercepts swap writes and caches
them compressed in RAM. It still requires an actual swap partition as
well unlike zram.
Thanks.
zram requires creation of a memory swap area. Where would that
typically be done? rc.local ? If it overflows does it fall back to a
disk swap partition?