systune-0.5.7/0000755000000000000000000000000011621573441010127 5ustar systune-0.5.7/systune.80000644000000000000000000000312010204740601011714 0ustar .\" Manual 1999 by Piotr Roszatycki .\" Hey Emacs! This file is -*- nroff -*- source. .TH SYSTUNE 8 "20 Apr 1999" "Debian Project" "Debian GNU/Linux" .SH NAME systune \- Kernel tuning through the /proc filesystem. .SH SYNOPSIS .B systune [ .BI "\-c, \-\-config " configfile ] [ .BI "\-h, \-\-help" ] [ .BI "\-v, \-\-verbose" ] .SH DESCRIPTION This program writes kernel parameters, previously saved in a configuration file, to the /proc filesystem. This enables kernel performance to be adjusted without recompiling the kernel. .SH OPTIONS .TP .BI "\-c, \-\-config " configfile Specify an alternative config file. The default is .I /etc/systune.conf . .TP .BI "\-h, \-\-help" Print a short explanation of syntax to standard output. .TP .BI "-v, \-\-verbose" Verbose mode: cause non-existent paths in the configuration to generate error output to standard error. Without this option, erroneous paths are discarded silently. .SH CONFIGURATION FILE FORMAT Each definition takes a single line, in the form .IR path : definition , where .IR path must begin with .BR /proc/sys/ . Paths beginning with any other sequence are silently ignored. .PP Comments are introduced by the character #. The whole line from the # character onwards is discarded, together with any whitespace immediately preceding it. .PP Blank lines are ignored. .SH FILES .TP .I /etc/systune.conf A file with saved kernel parameters. It is possible to generate this file with the .B systunedump (8) command. .SH SEE ALSO .BR systunedump (8). .SH AUTHOR Piotr Roszatycki . .SH THANKS Daniel Podlejski, Oliver Elphick. systune-0.5.7/README0000644000000000000000000000033210204740601010773 0ustar systune for DEBIAN ------------------ The systune utility is for tuning the running kernel through the sysctl interface (/proc filesystem) Daniel Podlejski , Tue, 8 Dec 1998 12:00:18 +0100 systune-0.5.7/systunedump.80000644000000000000000000000374510204740601012617 0ustar .\" Manual 1999 by Piotr Roszatycki .\" Hey Emacs! This file is -*- nroff -*- source. .TH SYSTUNEDUMP 8 "20 Apr 1999" "Debian Project" "Debian GNU/Linux" .SH NAME systunedump \- Dumps /proc files for kernel tuning. .SH SYNOPSIS .B systunedump [ .BI \-c, \-\-config " configfile ] [ .BI "\-h, \-\-help" ] [ .BI "-p, \-\-path " dumppath ] [ .BI "-v, \-\-verbose" ] .SH DESCRIPTION This program dumps elements of the /proc filesystem to standard output in a format which, if redirected to a file, can be used by the .B systune(8) utility. Common usage: .BI "systunedump > " /etc/systune.conf .BI "systunedump \-\-config " /etc/systune.kernel20.dump " > " .BI "/etc/systune.kernel20.conf" .BI "systunedump \-\-config " /dev/null " \-\-path " /proc/sys/vm " > " .BI "/etc/systune.conf" .SH OPTIONS .TP .BI "\-c, \-\-config " configfile Specify an alternative configuration file. The default is .I /etc/systune.dump . .TP .BI "\-h, \-\-help" Print a short explanation of the command syntax. .TP .BI "\-p, \-\-path " dumppath Add the specified path to any items already listed in the configuration file. Items in the path must be separated by whitespace. All items in the path must begin .BR /proc/sys/ . .TP .BI "\-v, \-\-verbose" Verbose mode: allow non-existent items in the path and configuration file to produce errors to standard error. Without this option, erroneous paths are discarded silently. .SH FILES .TP .I /etc/systune.dump A file containing a list of paths to dump. Each pathname must begin with .BR /proc/sys/ . Comments, introduced by #, can be included; the whole line from the comment character onwards is discarded, together with any whitespace immediately preceding it. .PP The configuration file can be a file, such as .IR /etc/systune.conf , that contains previously dumped data; the definition part of each line, after and including the colon, is discarded. .SH SEE ALSO .B systune (8). .SH AUTHOR Piotr Roszatycki . .SH THANKS Daniel Podlejski, Oliver Elphick. systune-0.5.7/systune.dump0000644000000000000000000000015710204740601012521 0ustar # /etc/systune.dump # Format: # # # ... # String after ':' character is ignored /proc/sys/ systune-0.5.7/COPYING0000644000000000000000000000142210204740601011147 0ustar Copyright (C) 1998 Daniel Podlejski (C) 1999 Piotr Roszatycki This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. systune-0.5.7/systunedump0000755000000000000000000000435710204740601012454 0ustar #!/bin/sh # Copyright (C) 1998 Daniel Podlejski # 1999 Piotr Roszatycki # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 dated June, 1991. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. help () { cat << EOT systunedump 0.5 - Kernel tuning utility Usage: $0 [-c|--config ] [-p|--path ] [-h|--help] Parameters: -c|--config - alternative config file; the default is /etc/systune.dump -h|--help - this help text -p|--path - path to be included in the dump, in addition to the items listed in EOT } CONF=/etc/systune.dump while [ $# -gt 0 ]; do case "$1" in --config|-c) CONF=$2 shift shift ;; --help|-h) help exit 0 ;; --path|-p) DUMP="$DUMP $2" shift shift ;; --verbose|-v) VERBOSE="yes" shift ;; esac done test -f $CONF || exit 0 DUMP="$DUMP $(cat $CONF | sed 's/[ ]*#.*$//' | sed 's/:.*//' )" #space+tab for dump in $DUMP; do if [ -e "$dump" -a "${dump#/proc/sys/}" != "$dump" ]; then for sysctlname in $(find $dump -type f -perm -600); do # don't check if file is writable when verbose mode if [ -n "$VERBOSE" ]; then sysctlcontent=$(cat $sysctlname) else test -w "$sysctlname" && sysctlcontent=$(cat $sysctlname \ 2> /dev/null) fi test -n "$sysctlcontent" && test -n "$sysctlname" && \ echo "$sysctlname:$sysctlcontent" done else if [ -n "$VERBOSE" ]; then # generate error echo -n "" > $dump fi fi done exit 0 systune-0.5.7/Makefile0000644000000000000000000000064710204740601011564 0ustar # systune-0.5 .PHONY: clean build install all: build clean: -rm -f build-stamp build: build-stamp build-stamp: touch build-stamp install: install-stamp install-stamp: install -m 0755 -d $(ROOT)/usr/sbin/ install -m 0755 systune $(ROOT)/usr/sbin/ install -m 0755 systunedump $(ROOT)/usr/sbin/ install -m 0755 -d $(ROOT)/etc/ install -m 0644 systune.conf $(ROOT)/etc/ install -m 0644 systune.dump $(ROOT)/etc/ systune-0.5.7/systune.conf0000644000000000000000000000251310204740601012477 0ustar # /etc/systune.conf # Format: # : # : # ... # Filesystem tuning # defaults*10 for kernel 2.0 /proc/sys/kernel/file-max:10240 /proc/sys/kernel/inode-max:30720 # defaults*10 for kernel 2.2 /proc/sys/fs/file-max:40960 /proc/sys/fs/inode-max:81920 # VM tuning # More aggresive buffering, usable for servers /proc/sys/vm/bdflush:100 5000 640 2560 150 30000 5000 1884 2 # Network tuning # Maximal number of remembered connection requests for heavy loaded server /proc/sys/net/ipv4/tcp_max_syn_backlog:8192 # Number of TCP retries, less for fast recovery /proc/sys/net/ipv4/tcp_retries1:2 # Timeout about 8 sec. for outgoing SYN packets /proc/sys/net/ipv4/tcp_syn_retries:1 # More open sockets /proc/sys/net/ipv4/ip_local_port_range:10000 65000 # Disable select acknowledgments (SACKs). /proc/sys/net/ipv4/tcp_sack:0 # Disable timestamps as defined in RFC1323. /proc/sys/net/ipv4/tcp_timestamps:0 # Network settings # IP forwarding /proc/sys/net/ipv4/ip_forward:1 # domain name #/proc/sys/kernel/domainname:my.domain.com # Enable syncookies /proc/sys/net/ipv4/tcp_syncookies:1 # Don't respond for broadcast ICMP /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts:1 # FreeBSD isn't RFC1122 compatible /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses:1 # ECN doesn't work everywhere /proc/sys/net/ipv4/tcp_ecn:0 systune-0.5.7/systune0000755000000000000000000000374610204740601011567 0ustar #!/bin/sh # Copyright (C) 1998 Daniel Podlejski # 1999 Piotr Roszatycki # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 dated June, 1991. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. help () { cat << EOT systune 0.5 - Kernel tuning utility Usage: $0 [-c|--config ] Parameters: -c|--config - alternative config file, default is /etc/systune.conf -h|--help - this help text -v|--verbose - verbose mode EOT } CONF=/etc/systune.conf while [ "$#" -gt 0 ]; do case "$1" in --config|-c) CONF=$2 shift shift ;; --help|-h) help exit 0 ;; --verbose|-v) VERBOSE="yes" shift ;; esac done if [ -f $CONF ]; then # '\n' is an only separator IFS="$(echo)" cat $CONF | sed 's/[ ]*#.*$//' | while read sysctl; do #space+tab if [ "${sysctl#/proc/sys/}" != "$sysctl" ]; then sysctlname=$(echo $sysctl | cut -d: -f1) sysctlcontent=$(echo $sysctl | cut -d\: -f2-) # don't check if file exists when verbose mode if [ -n "$VERBOSE" ]; then test -n "$sysctlname" && test -n "$sysctlcontent" && \ echo "$sysctlcontent" > $sysctlname else test -w "$sysctlname" && test -n "$sysctlcontent" && \ (echo "$sysctlcontent" > $sysctlname) 2> /dev/null fi fi done fi exit 0 systune-0.5.7/debian/0000755000000000000000000000000011621573441011351 5ustar systune-0.5.7/debian/compat0000644000000000000000000000000211621570607012550 0ustar 8 systune-0.5.7/debian/copyright0000644000000000000000000000066311621570745013315 0ustar This is a prepackaged version of kernel tuning through the /proc file system. It was Debianised by Piotr Roszatycki . Copyright and licence notice: Copyright (C) 1998 Daniel Podlejski (C) 1999 Piotr Roszatycki On any Debian system, you can find the complete text of the GNU GPL (GNU General Public License) in the file /usr/share/common-licenses/GPL systune-0.5.7/debian/systune.manpages0000644000000000000000000000003011621573206014570 0ustar systune.8 systunedump.8 systune-0.5.7/debian/systune.init0000644000000000000000000000132611621571253013751 0ustar #!/bin/sh # # /etc/init.d/systune # update-rc.d systune start 50 2 3 4 5 . PACKAGE="systune" SOURCE="systune" set -e ### BEGIN INIT INFO # Provides: systune # Required-Start: $remote_fs $syslog # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin PROGRAM=/usr/sbin/systune NAME=systune DESC="tuning kernel" test -f $PROGRAM || exit 0 set -e case "$1" in start) echo -n "Configuring kernel parameters..." $PROGRAM echo " done" ;; stop) ;; reload|restart|force-reload) $0 start ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|reload|restart|force-reload}" >&2 exit 1 ;; esac exit 0 systune-0.5.7/debian/systune.examples0000644000000000000000000000003111621573311014611 0ustar systune.conf systune.dumpsystune-0.5.7/debian/control0000644000000000000000000000116111621572015012747 0ustar Source: systune Maintainer: Debian QA Group Section: admin Priority: optional Standards-Version: 3.9.2 Build-Depends: debhelper (>= 8) Package: systune Architecture: all Depends: ${misc:Depends} Description: kernel tuning through the /proc file system This program writes kernel parameters, previously saved in a configuration file, to the /proc filesystem. This enables kernel performance to be adjusted without recompiling the kernel. . systune can be alternative to sysctl(8). It is also started after the most daemons and other init.d scripts, so it can be used as "second stage" sysctl. systune-0.5.7/debian/systune.install0000644000000000000000000000005111621573433014450 0ustar systune /usr/sbin/ systunedump /usr/sbin/systune-0.5.7/debian/changelog0000644000000000000000000000707111621572125013226 0ustar systune (0.5.7) unstable; urgency=low * QA upload. * debian/control: Set maintainer to Debian QA Group. * Replace yada with debhelper. (Closes: #636894) * debian/copyright: Add copyright file from previous generated package. -- Tim Retout Sat, 13 Aug 2011 22:46:34 +0100 systune (0.5.6-0.1) unstable; urgency=low * Non-maintainer upload to solve release goal. * Add LSB dependency header to init.d scripts (Closes: #466651). -- Petter Reinholdtsen Sat, 29 Mar 2008 17:05:46 +0100 systune (0.5.6) unstable; urgency=medium * Start the systune script in init script. Closes: #328683. -- Piotr Roszatycki Fri, 23 Sep 2005 16:11:30 +0200 systune (0.5.5) unstable; urgency=low * Rebuilt with the latest yada. Doesn't install /usr/doc symlink. * New yada uses invoke-rc.d. Closes: #200635. * Fixed typo in package description. * Changed init script message. Closes: #164155. -- Piotr Roszatycki Wed, 31 Aug 2005 13:22:32 +0200 systune (0.5.4) frozen unstable; urgency=low * Clean up the source package * More examples in default systune.conf * More clear package description, closes: #133979 -- Piotr Roszatycki Thu, 11 Apr 2002 12:55:56 +0200 systune (0.5.3) frozen unstable; urgency=low * Some minor changes in debian/packages * Removed systune.kernel??.conf examples * Files in /etc directory are no longer conffiles and are moved to /examples directory. * All options in /etc/systune.conf are commented, systune doesn't reconfigure kernel on installation, closes: #47940. * make clean works good * The version number in main binaries are fixed now. * yada 0.8 -- Piotr Roszatycki Thu, 27 Jan 2000 19:20:49 +0100 systune (0.5.2) unstable; urgency=low * /usr/doc backward compatibility * This is Debian native package, so version number wasn't legal (closes: #44170) -- Piotr Roszatycki Sun, 26 Sep 1999 11:41:19 +0200 systune (0.5-1) unstable; urgency=low * Fixed another bashism: echo -ne ..., thanks to Joel Klecker (closes: #42608) -- Piotr Roszatycki Mon, 9 Aug 1999 16:55:02 +0200 systune (0.4-1) unstable; urgency=low * Standards-Version: 3.0.1.0 * Included full copyright info -- Piotr Roszatycki Thu, 5 Aug 1999 23:58:31 +0200 systune (0.3-3) unstable; urgency=low * Escaped "update-rc\.d" in yada for lintian * Included missed manpages -- Piotr Roszatycki Tue, 11 May 1999 23:25:26 +0200 systune (0.3-2) unstable; urgency=low * Fixed some typos * yada technology -- Piotr Roszatycki Mon, 7 May 1999 01:56:03 +0200 systune (0.3-1) unstable; urgency=low * Included some examples * Changed architecture (Any -> All) * Changed description in control file * Fixed init script * Fixed dh_installinit * Many fixes done by Oliver Elphick * Included more detailed information about copyright * Rewritten manual pages * Fixed systunedump and systune (a few misspelings) -- Piotr Roszatycki Mon, 26 Apr 1999 22:22:38 +0200 systune (0.2-1) unstable; urgency=low * Included man pages * Rebuilt systune and systunedump script * debhelper technology * New standard: 2.5.0.0 * New maintainer -- Piotr Roszatycki Sat, 17 Apr 1999 08:05:36 +0200 systune (0.1-1) unstable; urgency=low * Initial Release. -- Daniel Podlejski Tue, 8 Dec 1998 12:00:18 +0100 systune-0.5.7/debian/rules0000755000000000000000000000007111621573377012437 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_install: