public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* to many sockets ?
@ 2006-10-04 15:03 Markus Wenke
  2006-10-04 16:33 ` Alan Cox
  0 siblings, 1 reply; 9+ messages in thread
From: Markus Wenke @ 2006-10-04 15:03 UTC (permalink / raw)
  To: linux-kernel

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-10-06  5:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-04 15:03 to many sockets ? Markus Wenke
2006-10-04 16:33 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox