We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-12-22 16:14:38 +0200

[XA2] bad memory handling, lots of OOM killing

I do have this right from the beginning using the XA2.

It seems related to browser usage or lipstick or aliendalvik or just SFOS as free/htop/... do not really reveal anything.

It caused not starting of camera (of course whe trying a snap shot) and not starting the camera light as bulb. Or just killing ANY running application (INCLUDING native ones), even terminal with open script running.

I eventually could not stand this anymore and used a swapfile solution I have on my N900 since aeons. Not the best eMMC related solution but working quite fine for now....

#!/bin/bashif  [ "" != "$1" ]; then  
  dd if=/dev/zero of =/home/.swapfile bs=1M count=1024  
  mkswap /home/.swapfile -L mySwapFile
fi

MyLoopDev=$(losetup -f)
losetup -d /dev/$MyLoopDev
losetup $MyLoopDev /home/.swapfile
swapocreatean $MyLoopDev

Call it once with any parameter to create a swap file of 1G. And call it after a reboot to activate the additional swap.

May need a systemd script....

[XA2] bad memory handling, lots of OOM killing

I do have this right from the beginning using the XA2.

It seems related to browser usage or lipstick or aliendalvik or just SFOS as free/htop/... do not really reveal anything.

It caused not starting of camera (of course whe when trying a snap shot) and not starting the camera light as bulb. Or just killing ANY running application (INCLUDING native ones), even terminal with open script running.

I eventually could not stand this anymore and used a swapfile solution I have on my N900 since aeons. Not the best eMMC related solution but working quite fine for now....

#!/bin/bashif  [ "" != "$1" ]; then  
  dd if=/dev/zero of =/home/.swapfile bs=1M count=1024  
  mkswap /home/.swapfile -L mySwapFile
fi

MyLoopDev=$(losetup -f)
losetup #losetup -d /dev/$MyLoopDev
losetup $MyLoopDev /home/.swapfile
swapocreatean $MyLoopDev

Call it once with any parameter to create a swap file of 1G. And call it after a reboot to activate the additional swap.

May need a systemd script....

[XA2] bad memory handling, lots of OOM killing

I do have this right from the beginning using the XA2.

It seems related to browser usage or lipstick or aliendalvik or just SFOS as free/htop/... do not really reveal anything.

It caused not starting of camera (of course when trying a snap shot) and not starting the camera light as bulb. Or just killing ANY running application (INCLUDING native ones), even terminal with open script running.

I eventually could not stand this anymore and used a swapfile solution I have on my N900 since aeons. Not the best eMMC related solution but working quite fine for now....

#!/bin/bashif #!/bin/bash

if  [ "" != "$1" ]; then  
  dd if=/dev/zero of =/home/.swapfile bs=1M count=1024  
  mkswap /home/.swapfile -L mySwapFile
fi

MyLoopDev=$(losetup -f)
#losetup losetup -d /dev/$MyLoopDev
losetup $MyLoopDev /home/.swapfile
swapocreatean $MyLoopDev

Call it once with any parameter to create a swap file of 1G. And call it after a reboot to activate the additional swap.

May need a systemd script....

[XA2] bad memory handling, lots of OOM killing

I do have this right from the beginning using the XA2.

It seems related to browser usage or lipstick or aliendalvik or just SFOS as free/htop/... do not really reveal anything.

It caused not starting of camera (of course when trying a snap shot) and not starting the camera light as bulb. Or just killing ANY running application (INCLUDING native ones), even terminal with open script running.

I eventually could not stand this anymore and used a swapfile solution I have on my N900 since aeons. Not the best eMMC related solution but working quite fine for now....

#!/bin/bash

if  [ "" != "$1" ]; then  
  dd if=/dev/zero of =/home/.swapfile bs=1M count=1024  
  mkswap /home/.swapfile -L mySwapFile
fi

MyLoopDev=$(losetup -f)
losetup -d /dev/$MyLoopDev
losetup $MyLoopDev /home/.swapfile
swapocreatean swapon $MyLoopDev

Call it once with any parameter to create a swap file of 1G. And call it after a reboot to activate the additional swap.

May need a systemd script....