[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Add a snippet to set nice level in etc/default/tor
Update of /home/or/cvsroot/tor/debian
In directory moria.mit.edu:/tmp/cvs-serv15712
Modified Files:
changelog tor.default tor.init
Log Message:
Add a snippet to set nice level in etc/default/tor
Index: changelog
===================================================================
RCS file: /home/or/cvsroot/tor/debian/changelog,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- changelog 4 Feb 2005 00:11:50 -0000 1.97
+++ changelog 4 Feb 2005 12:25:39 -0000 1.98
@@ -5,8 +5,9 @@
* Add libevent-dev to build-depends.
* Update URL to tor in debian/control and debian/copyright.
* Add a snippet to disable epoll in etc/default/tor, commented out.
+ * Add a snippet to set nice level in etc/default/tor.
- -- Peter Palfrader <weasel@xxxxxxxxxx> Thu, 3 Feb 2005 12:20:07 +0100
+ -- Peter Palfrader <weasel@xxxxxxxxxx> Fri, 4 Feb 2005 13:24:47 +0100
tor (0.0.9.4-1) unstable; urgency=low
Index: tor.default
===================================================================
RCS file: /home/or/cvsroot/tor/debian/tor.default,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- tor.default 3 Feb 2005 11:27:56 -0000 1.6
+++ tor.default 4 Feb 2005 12:25:39 -0000 1.7
@@ -15,6 +15,16 @@
MAX_FILEDESCRIPTORS=4096
#
+# If tor is seriously hogging your CPU, taking away too much cycles from
+# other system resources, then you can renice tor. See nice(1) for a
+# bit more information. Another way to limit the CPU usage of an Onion
+# Router is to set a lower BandwidthRate, as CPU usage is mostly a function
+# of the amount of traffic flowing through your node. Consult the torrc(5)
+# manual page for more information on setting BandwidthRate.
+#
+# NICE="--nicelevel 5"
+
+#
# Sometimes epoll is broken. This happens to be the case on
# at least the maintainer's desktop box running Linux 2.6.11-rc1
# on adm64.
Index: tor.init
===================================================================
RCS file: /home/or/cvsroot/tor/debian/tor.init,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- tor.init 2 Feb 2005 06:49:07 -0000 1.11
+++ tor.init 4 Feb 2005 12:25:39 -0000 1.12
@@ -11,6 +11,7 @@
WAITFORDAEMON=35
ARGS=""
MAX_FILEDESCRIPTORS=4096
+NICE=""
test -x $DAEMON || exit 0
@@ -54,6 +55,7 @@
start-stop-daemon --start --quiet --oknodo \
--chuid debian-tor:debian-tor \
--pidfile $TORPID \
+ $NICE \
--exec $DAEMON -- $ARGS
echo "done."
fi