You are not logged in.
For some reasons I have to keep my home folder on a tmpfs, this means that I have always about 2GB of RAM occupied. This does not play well with chromium: there's a limit of open tabs that, when crossed, causes all my system to become absurdly slow (just enough fast to realize that it's moving, and way too slow to close the tab I just dared to open).
I'd like it if chromium just showed the usual "Out of memory" error tab... instead, it seemingly tries to allocate the new tab (even if there's no more memory left). How can I avoid this situation? (apart from getting a swap file)
Offline
For some reasons I have to keep my home folder on a tmpfs, this means that I have always about 2GB of RAM occupied. This does not play well with chromium: there's a limit of open tabs that, when crossed, causes all my system to become absurdly slow (just enough fast to realize that it's moving, and way too slow to close the tab I just dared to open).
I'd like it if chromium just showed the usual "Out of memory" error tab... instead, it seemingly tries to allocate the new tab (even if there's no more memory left). How can I avoid this situation? (apart from getting a swap file)
I'm not certain why it isn't populating the "its dead Jim" error if its running low on memory if it's low on resources...maybe because its tmpfs which is a portion of your memory?
You could write a script that would notify you if you're running out.
#!/bin/bash
#cutoff_frac is basically how much used memory can be at in terms of how much
#total memory you have...2 is 1/2 of 100% or an alert when you're using 50% mem, etc.
cutoff_frac=2
total_mem=$(free|awk '/^Mem:/{print $2}')
let "threshold = $total_mem / $cutoff_frac"
while :
do
free_mem=$(free|awk '/^Mem:/{print $4}')
if [ $free_mem -lt $threshold ]
then
notify-send "Low memory!!"
fi
sleep 5
done
exitOffline
Thanks. The idea of chromium "not seeing" tmpfs's memory is nice, unfortunately I just tested with a different laptop and I get the same error.
I reported this as a chromium bug: https://code.google.com/p/chromium/issu … ?id=491959
Offline
Thanks. The idea of chromium "not seeing" tmpfs's memory is nice, unfortunately I just tested with a different laptop and I get the same error.
I reported this as a chromium bug: https://code.google.com/p/chromium/issu … ?id=491959
Did your friends laptop get its RAM maxed out by Chrome? Same number of tabs? Around the same? What package of Chrome are you using? Is your friends laptop also running Arch?
Offline
Not the same number of tabs, quite a lot more, we just opened a lot of them (all of them with the spotify web player) until the system froze. I have the package: chromium 43.0.2357.65-1. He's using Ubuntu (I think it's chromium 41, I'm not sure, and maybe it was chrome instead of chromium)
Offline