Increase zfs transaction timeout.

The goal here is to improve battery life by not waking up the CPU as often, but until I get the touchpad interrupt issue resolved, the difference won't be noticeable.
This commit is contained in:
Tom Alexander 2023-03-05 09:28:35 -05:00
parent 68ef17de4d
commit 14d80f5075
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 13 additions and 5 deletions

View File

@ -5,6 +5,9 @@ set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# TODO: Maybe I should be reading hw.acpi.thermal.tz0.temperature
# TODO: I could get the number of cores with kern.smp.cpus
SLEEP_INTERVAL=${SLEEP_INTERVAL:-30}
while true; do

View File

@ -0,0 +1 @@
vfs.zfs.txg.timeout=20

View File

@ -1,5 +1,9 @@
# - name: Install packages
# package:
# name:
# - foo
# state: present
- name: Install loader.conf
copy:
src: "files/{{ item }}_loader.conf"
dest: "/boot/loader.conf.d/{{ item }}.conf"
mode: 0644
owner: root
group: wheel
loop:
- increase_transaction_timeout