clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
522 stars 29 forks source link

Swap space running full #1424

Open seafrog1 opened 5 years ago

seafrog1 commented 5 years ago

In addition to one on the issues in Preventing desktop freezeups #1416 I want to add that I experience the same problem of a full swap space when copying big files. My 16GB RAM is used at maybe 10 to 15% and my swap space is running at 100% and not cleared afterwards. I can shutoff he swap manually but can not restart it afterwards (sudo swapoff -a; sudo swapon -a). Not a big issue with my 16 GB RAM but maybe a problem at 2 or 4 GB.

If you need some more information just ask, thx.

lebensterben commented 5 years ago

In addition to one on the issues in Preventing desktop freezeups #1416 I want to add that I experience the same problem of a full swap space when copying big files. ...

@seafrog1 I have 32 GB RAM, and I hardly see any swap is used. There are only two scenario that would happen. One when I use CUDA to run some GPU models, another is when I build some huge projects from source. But in both cases, my RAM was nearly 100% used, then system would start using swap. And this is also what people explained to me.

Sent with GitHawk

seafrog1 commented 5 years ago

It happens rarely and I didn't pay much attention to it. The only thing I remember for sure is the I cp GB sized files from one LUKS block device to an other. If I do the same with rsync it does not happen. Sorry for the not exact description.

bryteise commented 5 years ago

Is there an issue you are seeing due to your swap filling? Do you see processing getting OOM killed? Clear Linux maintains a smaller swap than most distros by default. There isn't any reason I'm aware of the kernel has to move things out of swap when memory frees up (as it is in swap for a reason and moving things back may just be more work that it needs to undo later).

ahkok commented 5 years ago

@seafrog1 what method/program do you use to "when copying big files" ?

seafrog1 commented 5 years ago

@ahkok it happen when I use "cp" but not if I use "rsync -aAXS", thx @bryteise I did not face any problems out of 100% swap space. I am still used to the Fedora size of Swap memory (2x RAM size). I just got annoyed about a stable 100% value which doesn't become less anymore afterwards, thx.