mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eric Dumazet <dada1@cosmosbay.com>
To: Markus Wenke <M.Wenke@web.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: to many sockets ?
Date: Thu, 5 Oct 2006 10:45:46 +0200	[thread overview]
Message-ID: <200610051045.46919.dada1@cosmosbay.com> (raw)
In-Reply-To: <4524C05D.6080305@web.de>

On Thursday 05 October 2006 10:20, Markus Wenke wrote:
> Eric Dumazet schrieb:

> > Could you post here the result of these commands when your system is
> > using more than 100.000 connections (and before the OOM :) )
>
> Hi,
>
> here the results with 130001 connetions
>
> > cat /proc/meminfo
>
> MemTotal:      3108372 kB
> MemFree:       2114404 kB
> Buffers:          5112 kB
> Cached:          97804 kB
> SwapCached:          0 kB
> Active:         140552 kB
> Inactive:        38948 kB
> HighTotal:     2228160 kB
> HighFree:      2048108 kB
> LowTotal:       880212 kB
> LowFree:         66296 kB

See here ? you have 'only' 880212 kB of LOWMEM, and 66 MB free.
all kernel structures (you can see them in /proc/slabinfo) are lying on this 
zone, no matter you add RAM on your machine (more RAM end up in HighMEM zone, 
wich is basically unused on your setup)

Since you have a 64bits CPU, your best move would be to use a 64bits kernel 
(you can keep all user land in 32bits mode)

With a 64bits kernel, kernel land structures would not be constrained in a 
small area, but can use full RAM.

I'm curious you have so many sockets but few entries in route cache... 
basically all connections come from few machines ?

Eric

  reply	other threads:[~2006-10-05  8:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-04 15:03 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 [this message]
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=200610051045.46919.dada1@cosmosbay.com \
    --to=dada1@cosmosbay.com \
    --cc=M.Wenke@web.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --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

Powered by JetHome