public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Markus Wenke <M.Wenke@web.de>
To: linux-kernel@vger.kernel.org
Subject: to many sockets ?
Date: Wed, 04 Oct 2006 17:03:42 +0200	[thread overview]
Message-ID: <4523CD4E.10806@web.de> (raw)

Hi,

I wrote a program which handles incomming sockets asynchron.
It can handle up to 140000 connections simultaneously while every 
connection send some bytes in both directions continuously.

But if I want to connect more than the 140000 connection  my application 
has been killed by the oom-killer, but the System has enough memory.

If I use a patched Xen-Kernel (2.6.16.21-0.13-xen, only the kernel, no 
xend) it can handle up to 200000 connections.


Is there a kernel param, or something else to tune the kernel, that it 
can handle more Connections?

Or can I determine how many connections can my really System accept 
before the oom-killer kills my app?


please send me an email, for getting the /var/log/messages


thanks in advance

Markus Wenke

here my System:
////////////////////////////////////////////////////////////////////////////
setrlimit: RLIMIT_NOFILE = 500000

////////////////////////////////////////////////////////////////////////////
~# uname -a
Linux test1 2.6.18-bigsmp #3 SMP Wed Oct 4 15:18:40 CEST 2006 i686 
athlon i386 GNU/Linux

////////////////////////////////////////////////////////////////////////////
~# free:
             total       used       free     shared    buffers     cached
Mem:       3108372     193788    2914584          0       5520     107068
-/+ buffers/cache:      81200    3027172
Swap:      2104472          0    2104472

////////////////////////////////////////////////////////////////////////////
~ # cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 35
model name      : Dual Core AMD Opteron(tm) Processor 170
stepping        : 2
cpu MHz         : 1000.000
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
 lm 3dnowext 3dnow pni lahf_lm cmp_legacy ts fid vid ttp
bogomips        : 2011.55

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 35
model name      : Dual Core AMD Opteron(tm) Processor 170
stepping        : 2
cpu MHz         : 1000.000
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
 lm 3dnowext 3dnow pni lahf_lm cmp_legacy ts fid vid ttp
bogomips        : 2011.55



             reply	other threads:[~2006-10-04 15:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-04 15:03 Markus Wenke [this message]
2006-10-04 16:33 ` to many sockets ? Alan Cox
2006-10-05  7:14   ` Markus Wenke
2006-10-05  7:58     ` Eric Dumazet
2006-10-05  8:20       ` Markus Wenke
2006-10-05  8:45         ` Eric Dumazet
2006-10-05  9:16           ` Markus Wenke
2006-10-05 21:30     ` Alan Cox
2006-10-06  5:32       ` Markus Wenke

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=4523CD4E.10806@web.de \
    --to=m.wenke@web.de \
    --cc=linux-kernel@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox