On Tue, Jun 27, 2023 at 2:40 AM Samuel Sieb <samuel(a)sieb.net> wrote:
On 6/26/23 23:20, Jeffrey Walton wrote:
> On Tue, Jun 27, 2023 at 2:14 AM Samuel Sieb <samuel(a)sieb.net> wrote:
>>
>> On 6/26/23 20:48, Jeffrey Walton wrote:
>>>
>>> I've got a Fedora 38 install (upgrade from F37). The install happened
>>> with Anaconda. Anaconda created the compressed memory swap file. I
>>> resized the disk and added a proper swap partition. Now I need to
>>> modify /etc/fstab and disable the compressed memory swap file. In the
>>> screen text below, /dev/nvme0n1p4 is the new partition.
>>>
>>> My Google-fu really sucks today. I cannot find a discussion of it.
>>>
>>> How do I modify fstab to remove the compressed memory swap file?
>>
>> Why would you want to?
>
> The compiler is crashing in cc1plus. I'm out-of-memory on a machine
> with 16GB of RAM. Effectively I'm DoS'd with the btrfs default
> strategy. Time to do something different... like get rid of that
> compressed swap file in RAM, use a real swap file, and use memory for
> programs.
It has nothing to do with btrfs. That's just the default and it works
really well. You get lots of "extra" memory without the lag of going to
the disk. You could add the disk swap as well. You don't have to
remove the zram for that.
I guess that's in the eye of the beholder. I don't like being DoS'd.
Fedora with btrfs is worse than Solaris. Solaris will work with 8 GB
of RAM (but usually not less). Fedora can't operate with 16 GB. Ugh...
I'll install a different OS to sidestep the problem.
Jeff