So as a conclusion for my old 2Gb laptop, I've set zram to twice of amount of physical RAM (/usr/bin/init-zram-swapping), and have added this parameters to /etc/sysctl.d/99-sysctl.conf:
vm.min_free_kbytes=128000 vm.overcommit_memory=2 vm.overcommit_ratio=90
And seems it work for me. And I have to say that I don't have physical swap and have /tmp and /var/tmp mounted to ram disk.
So as a conclusion for my old 2Gb laptop, I've set zram to twice of amount of physical RAM (/usr/bin/ init-zram- swapping) , and have added this parameters to /etc/sysctl. d/99-sysctl. conf:
vm.min_ free_kbytes= 128000 memory= 2 ratio=90
vm.overcommit_
vm.overcommit_
And seems it work for me. And I have to say that I don't have physical swap and have /tmp and /var/tmp mounted to ram disk.