On Thu, 2020-11-05 at 10:47 -0800, Samuel Sieb wrote:
> On 11/5/20 9:02 AM, Patrick O'Callaghan wrote:
> > The swapon(8) man page says:
> > 
> >     The  swap  file  implementation in the kernel expects to be able to 
> > write
> >     to the file directly, without the assistance of the filesystem.  This 
> > is a
> >     problem on files with holes or on copy-on-write files on filesystems 
> > like Btrfs.
> >     
> > 
> > As I'm getting OOM errors when I try to run a VM, it looks like I need
> > a swap file or partition. I'd prefer to use part of my (large) SSD for
> > this, but currently it's entirely formatted as BTRFS. Do I need to
> > resize the BTRFS partition rather than using a swap file?
> 
> Yes.  But have you enabled zram yet for swap?

This is a clean install, so it's enabled by default and has reserved
4GB. I think that's what's actually causing the OOMs. I have 16GB of
RAM. On F32 I could run an 8GB VM with hugepages, i.e. dedicated
memory, plus normal stuff including multiple browser tabs etc. and
never had a problem. Now as soon as I try to start the VM it gets OOM
errors, and multiple Firefox tabs are failing and have to be restarted.

poc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to