netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Catalin(ux) M. BOIE" <catab@embedromix.ro>
To: "Joseph Mack NA3T" <jmack@wm7d.net>
Cc: "Catalin M. BOIE" <catab@embedromix.ro>,
	netdev@vger.kernel.org, lvs-devel@vger.kernel.org
Subject: Re: [PATCH] IPVS: Allow boot time change of hash size.
Date: Fri, 28 Nov 2008 01:49:31 -0700 (MST)	[thread overview]
Message-ID: <55785.91.201.80.240.1227862171.squirrel@mail.embedromix.ro> (raw)
In-Reply-To: <Pine.LNX.4.64.0811270754290.32640@wm7d.net>


> On Wed, 26 Nov 2008, Catalin(ux) M. BOIE wrote:
>
>>> Why do you need to change the hash size? We really don't
>>> recommend anyone do this under normal circumstances
>>
>> As it is written in the help, to lower the collisions in
>> the case of a lot of concurrent connections. Or am I
>> missing something?
>
> not sure how big the collision problem is (have you measured
> an effect?) but Ratz put out the results of a back of the
> envelope calculation that the current value for the hash
> table size would work on the currect fastest machines with
> 3G of memory

Hello, Joe!

No, I did not measure it, but, I read the help text:

Note the table size must be power of 2. The table size will be the
value of 2 to the your input number power. The number to choose is
from 8 to 20, the default number is 12, which means the table size
is 4096. Don't input the number too small, otherwise you will lose
performance on it. You can adapt the table size yourself, according
to your virtual server application. It is good to set the table size
not far less than the number of connections per second multiplying
average lasting time of connection in the table.  For example, your
virtual server gets 200 connections per second, the connection lasts
for 200 seconds in average in the connection table, the table size
should be not far less than 200x200, it is good to set the table
size 32768 (2**15).

The help is wrong or I am missing something?

> Joe
>
> --
> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> jmack (at) wm7d (dot) net - azimuthal equidistant map
> generator at http://www.wm7d.net/azproj.shtml
> Homepage http://www.austintek.com/ It's GNU/Linux!
>


-- 
Catalin(ux) M. BOIE
http://kernel.embedromix.ro/


  reply	other threads:[~2008-11-28  8:49 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-26 13:36 [PATCH] IPVS: Allow boot time change of hash size Catalin(ux) M. BOIE
2008-11-26 14:40 ` Joseph Mack NA3T
2008-11-26 23:27   ` David Miller
2008-11-27  7:05     ` Catalin(ux) M. BOIE
2008-11-27  7:37       ` David Miller
2008-11-27  6:58   ` Catalin(ux) M. BOIE
2008-11-27 15:58     ` Joseph Mack NA3T
2008-11-28  8:49       ` Catalin(ux) M. BOIE [this message]
2008-11-28 14:55         ` Joseph Mack NA3T
2008-12-02 15:34           ` Catalin(ux) M. BOIE
2008-12-02 22:51             ` David Miller
2008-12-02 23:16               ` Catalin(ux) M. BOIE
2008-12-03  0:37                 ` David Miller
2009-12-28 18:49                   ` Mark Bergsma
2009-12-29  1:34                     ` Simon Horman
2010-01-04 13:57                       ` Patrick McHardy
2010-01-04 23:24                         ` Simon Horman
2010-01-05 11:02                           ` Mark Bergsma
2010-01-06 15:25                             ` Catalin(ux) M. BOIE
2010-01-05  0:20                     ` Simon Horman
2010-01-05  4:56                       ` Patrick McHardy
2008-12-03 21:11                 ` Graeme Fowler
2008-12-04  7:47                   ` Catalin(ux) M. BOIE

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=55785.91.201.80.240.1227862171.squirrel@mail.embedromix.ro \
    --to=catab@embedromix.ro \
    --cc=jmack@wm7d.net \
    --cc=lvs-devel@vger.kernel.org \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).