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 2014-11-12 14:51:45 +0200

Fix/Reduce lags on 1.1.3x (Update 9)

As mentioned in the update 9 the UI can stutter in low memory situations. As I am a heavy multitasking user I stumbled upon and wanted to provide me a fix for this.
This fix works for me as it reduces the amount of stutter noticeably. However this might be not the ideal solution for every user.

Basically what I did was tweaking the vm.swappiness handling. The default value is set to 30 which is around half of the default value of the linux kernel and in easy terms means swap out not too early . The problem I encountered that this value seems to low as it swap outs too late which causes stutter in the ui. So I just simply raised the value to 100 which in easy terms means swap out as early as possible. Of course this makes overall system performance a little less fast but there I don't suffer from long lags due to full running ram anymore.

In easy terms. Its just like on modern gaming consoles. A 60 FPS rate is nice to have (like the default vm.swappiness 30) but it is noticeable when the framerate drops drastically on fast actions or many stuff being rendered. Reducing to a healthy 30 FPS (vm.swappiness 100) makes performance a little slower but the system is more able to render this framerate constantly and a big break down of the framerate is not observed.

If you want to try it out I recommend to do a backup of the file /etc/sysctl.d/vm.conf . You need developer mode enabled and have to edit this file with devel-su rights. Change the vm.swappiness=30 to vm.swappiness=100 . To apply the change either reboot or enter sysctl -p /etc/sysctl.d/vm.conf

Also for all still running the older 1.0.x version and having zram module installed (from warehouse). This change should be ideal as swapping out early onto a compressed swap is much faster than onto a swap partition/file on the internal flash.

Would be interesting if testers could provide feedback for this.

Fix/Reduce lags on 1.1.3x 1.1.0.3x (Update 9)

As mentioned in the update 9 the UI can stutter in low memory situations. As I am a heavy multitasking user I stumbled upon and wanted to provide me a fix for this.
This fix works for me as it reduces the amount of stutter noticeably. However this might be not the ideal solution for every user.

Basically what I did was tweaking the vm.swappiness handling. The default value is set to 30 which is around half of the default value of the linux kernel and in easy terms means swap out not too early . The problem I encountered that this value seems to low as it swap outs too late which causes stutter in the ui. So I just simply raised the value to 100 which in easy terms means swap out as early as possible. Of course this makes overall system performance a little less fast but there I don't suffer from long lags due to full running ram anymore.

In easy terms. Its just like on modern gaming consoles. A 60 FPS rate is nice to have (like the default vm.swappiness 30) but it is noticeable when the framerate drops drastically on fast actions or many stuff being rendered. Reducing to a healthy 30 FPS (vm.swappiness 100) makes performance a little slower but the system is more able to render this framerate constantly and a big break down of the framerate is not observed.

If you want to try it out I recommend to do a backup of the file /etc/sysctl.d/vm.conf . You need developer mode enabled and have to edit this file with devel-su rights. Change the vm.swappiness=30 to vm.swappiness=100 . To apply the change either reboot or enter sysctl -p /etc/sysctl.d/vm.conf

Also for all still running the older 1.0.x version and having zram module installed (from warehouse). This change should be ideal as swapping out early onto a compressed swap is much faster than onto a swap partition/file on the internal flash.

Would be interesting if testers could provide feedback for this.

Fix/Reduce lags on 1.1.0.3x (Update 9)

As mentioned in the update 9 the UI can stutter in low memory situations. As I am a heavy multitasking user I stumbled upon and wanted to provide me a fix for this.
This fix works for me as it reduces the amount of stutter noticeably. However this might be not the ideal solution for every user.

Basically what I did was tweaking the vm.swappiness handling. The default value is set to 30 which is around half of the default value of the linux kernel and in easy terms means swap out not too early . The problem I encountered that this value seems to low as it swap outs too late which causes stutter in the ui. So I just simply raised the value to 100 which in easy terms means swap out as early as possible. Of course this makes overall system performance a little less fast but there I don't suffer from long lags due to full running ram anymore.

In easy terms. Its just like on modern gaming consoles. A 60 FPS rate is nice to have (like the default vm.swappiness 30) but it is noticeable when the framerate drops drastically on fast actions or many stuff being rendered. Reducing to a healthy 30 FPS (vm.swappiness 100) makes performance a little slower but the system is more able to render this framerate constantly and a big break down of the framerate is not observed.

If you want to try it out I recommend to do a backup of the file /etc/sysctl.d/vm.conf . You need developer mode enabled and have to edit this file with devel-su rights. Change the vm.swappiness=30 to vm.swappiness=100 . To apply the change either reboot or enter sysctl -p /etc/sysctl.d/vm.conf

Also for all still running the older 1.0.x version and having zram module installed (from warehouse). This change should be ideal as swapping out early onto a compressed swap is much faster than onto a swap partition/file on the internal flash.

Would be interesting if testers could provide feedback for this.