Displaying 1 result from an estimated 1 matches for "ac_delay".
2003 Apr 11
14
PATCH: Forcible delaying of UFS (soft)updates
...xt part --------------
#!/bin/sh
#
# Copyright (c) 2003 Marko Zec
#
#include /usr/share/examples/bsd-style-copyright
#
#
# /etc/rc.syncdelay
#
# Adjust disk syncing policy and delay on battery powered systems.
# Invoked automatically by apmd(8) when power state change or resume
# events occur.
#
AC_DELAY=0 # no delayed syncing
BAT_DELAY=600 # sync every 10 minutes
if [ `apm -a` -eq 1 ]; then
# AC powered mode
sysctl vfs.sync_extdelay=$AC_DELAY
else
# Battery powered mode
# Allow delayed syncing only if enough battery capacity is available
if [ `apm -l` -gt 3 ]; then
sysctl vfs.sync_extdelay...