On 06/04/2016 11:28 PM, Sunil Mohan Adapa wrote:
[...]
> 
> The only thing I suspect that can create such a problems in FreedomBox is the
> laptop_mode kernel parameter combined with btrfs filesystem.  This is only a
> guess but I suggest removing it until this bug is reliably solved.  Here are
> some things to think about:

The attached patch proposes removing laptop mode.

-- 
Sunil
From 17840c4395a9cafd0b76d08b2bdb88ceb346d38c Mon Sep 17 00:00:00 2001
From: Sunil Mohan Adapa <su...@medhas.org>
Date: Wed, 15 Jun 2016 08:43:16 +0530
Subject: [PATCH] Don't set laptop mode

As discussed in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826345
these setting may be causing issues with disk corruptions.  Since swap
paritions are not created, setting swapiness=0 is also not necessary.
---
 data/etc/sysctl.d/freedombox.conf | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/data/etc/sysctl.d/freedombox.conf b/data/etc/sysctl.d/freedombox.conf
index f284705..7650592 100644
--- a/data/etc/sysctl.d/freedombox.conf
+++ b/data/etc/sysctl.d/freedombox.conf
@@ -1,9 +1,3 @@
-# Reduce writes to flash drives
-vm.laptop_mode=5
-vm.swappiness=0
-vm.dirty_writeback_centisecs=1500
-vm.dirty_expire_centisecs=1500
-
 # Uncomment the next line to enable packet forwarding for IPv6
 #  Enabling this option disables Stateless Address Autoconfiguration
 #  based on Router Advertisements for this host
-- 
2.8.1

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to