ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Anton Gorlov <stalker@altlinux.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] ...
Date: Mon, 05 Feb 2007 22:21:12 +0300
Message-ID: <45C783A8.3020301@altlinux.ru> (raw)

А юзал ли кто-нибудь

net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_tw_reuse=1 ?
Есть противопоказания? А то уже вроде всё остальное выкрутил на максимум 
в sysctl, а всё равно в логах успешно проскакивает

Feb  5 21:46:27 multimedia kernel: Out of socket memory
Feb  5 21:46:27 multimedia kernel: TCP: too many of orphaned sockets


При этом netstat -nap | grep "TIME_WAIT" пока ниразу не ловил более 
16-20 (раз в 10 минут пускаю скриптик) и соотвествено положение ручек:

cat /etc/sysctl.conf
#net.ipv4.conf.all.rp_filter=1
#net.ipv4.conf.all.send_redirects=0
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.default.forwarding=1
net.ipv4.conf.default.proxy_arp=0
#net.ipv4.conf.default.send_redirects=1
#net.ipv4.ip_forward=1
#kernel.sysrq=1

#added by stalker
# Increase number of incoming connections backlog
#def 1000
net.core.netdev_max_backlog=2048
# def
net.core.dev_weight=64
#def 4096        87380   174760
net.ipv4.tcp_rmem=4096 87380 16777216
#def 4096        16384   131072
net.ipv4.tcp_wmem = 4096 65536 16777216
#def 0
net.ipv4.tcp_rfc1337=1
# Turn off sack
net.ipv4.tcp_sack=0

#def 60
net.ipv4.tcp_fin_timeout=20
#def 9
net.ipv4.tcp_keepalive_probes=5
#def 32768
net.ipv4.tcp_max_orphans=32768
#def 10240
net.core.optmem_max=20480
#def 110592
net.core.rmem_default=16777216
#def 131071
net.core.rmem_max=16777216
#def 110592
net.core.wmem_default=16777216
#def 131071
net.core.wmem_max=16777216
#def 128
net.core.somaxconn=500
#def 0
net.ipv4.tcp_orphan_retries = 1
#def 180000
net.ipv4.tcp_max_tw_buckets=540000
#def 1024
#net.ipv4.tcp_max_tw_buckets_ub=540000

#-- OpenVZ begin --#
# On Hardware Node we generally need
# packet forwarding enabled and proxy arp disabled
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
# Enables source route verification
net.ipv4.conf.all.rp_filter = 1
# Enables the magic-sysrq key
kernel.sysrq = 1
# TCP Explict Congestion Notification
#net.ipv4.tcp_ecn = 0
# we do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
#-- OpenVZ end --#


-- 
   np: silence


             reply	other threads:[~2007-02-05 19:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-05 19:21 Anton Gorlov [this message]
2007-02-05 20:53 ` [Sysadmins] Michael Shigorin
2007-02-06  5:47   ` [Sysadmins] Anton Gorlov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45C783A8.3020301@altlinux.ru \
    --to=stalker@altlinux.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git