From 96103d5b56b9f5ad027a2b17b1351bda6ab0f483 Mon Sep 17 00:00:00 2001 From: John Freeman Date: Sun, 9 Jun 2019 07:29:43 +0100 Subject: [PATCH] Fixed OS freezing on low RAM (#575) Reserve more RAM and reduce swap use. --- provisioning/playbook.yml | 4 +++- provisioning/requirements.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/provisioning/playbook.yml b/provisioning/playbook.yml index 5cae2afe..70709d4e 100644 --- a/provisioning/playbook.yml +++ b/provisioning/playbook.yml @@ -97,7 +97,9 @@ lang: en_GB.UTF-8 # Enable compressed RAM swap - - gantsign.zram_config + - role: gantsign.zram_config + zram_config_min_free_kbytes: 131072 + zram_config_swappiness: 5 # Install common command line tools - gantsign.command-line-tools diff --git a/provisioning/requirements.yml b/provisioning/requirements.yml index 71166669..82aa0e04 100644 --- a/provisioning/requirements.yml +++ b/provisioning/requirements.yml @@ -93,4 +93,4 @@ - src: https://github.com/gantsign/ansible-role-xdesktop/archive/4.0.0.tar.gz name: gantsign.xdesktop - src: gantsign.zram_config - version: '2.0.0' + version: '2.1.0'