Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1128  / 2 Years ago, sat, january 15, 2022, 2:30:29

I'm running Ubuntu 20.04 on a Lenovo X1C 7th Gen with 16GB RAM. The swap is set to 2GiB.


Just after entering edit mode on a photo in Google Photos (in Firefox), which I'm pretty sure has a serious memory leak (because I've seen it increase memory consumption and slow down the system), the system froze like this:


Hitting swap limit cauzed freeze


It stayed like that for a good 3 minutes, with the mouse cursor barely dragging along (good luck taking a screenshot). Eventually it recovered. As you can see, there was plenty of RAM available.


What was going on, and how can I prevent this? /proc/sys/vm/swappiness is the default, 60.


More From » freeze

 Answers
6

Since I've set swappiness to 10, I've never had this problem. Also, as Jons suggested, it makes sense to have much more swap, and I don't understand why Linux Mint for example, creates a tiny 1GB swap file on a system with 16GB RAM.


[#2901] Saturday, January 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irtuallyefu

Total Points: 429
Total Questions: 97
Total Answers: 119

Location: Hong Kong
Member since Tue, Oct 19, 2021
3 Years ago
irtuallyefu questions
;