[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: threads and concurrency
- To: Quanah Gibson-Mount <quanah@zimbra.com>
- Subject: Re: threads and concurrency
- From: Omer Faruk SEN <omerfsen@gmail.com>
- Date: Sun, 20 Feb 2011 08:26:45 +0200
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=qycJLLeydTFdUrevre29kTovAHk3hXuEM3+mJe2mUiY=; b=d0c67jKKIUzYB6NlcH7mvSlhNpU2h0a3ino//xw8Lscmg2SFaugPiJeOyKLcO07Zgw UD2eUh3OO7u7Cj3WqbXvwHlCgXp9OZ89x0uV7AeRfsXg5pTqXoXDoDv6HNvsMIt+rL5X xnYTBQWmbXBaqjYo4HeWxd1a1ZQrwr9IYYkBI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pIb4SefFit8zqFb5yCMQ1uNs8PDhSonSDOZ6eEdUrukdA02cWgVLr3MC+x6GIuGJOP JrpCI1GC8HOJ7MbOM58sE0+LmyLv/vI/JIlEIbtjB7Cr8zTmiDXTtoBV9Hz3F93utByo z5EdtJtLYEWXacBnF6JtwzKxWofjsNWjlkiVA=
- In-reply-to: <C7E4A34553436FDBFEDB53E1@192.168.1.2>
- References: <AANLkTi=3Jdvc10sNdpv1AYZgjrsSKPV0jad+zGimNXGx@mail.gmail.com> <4D607D5A.5090508@symas.com> <C7E4A34553436FDBFEDB53E1@192.168.1.2>
Hi,
This system has 32 GB of RAM additionally OS is RHEL 5. And this
system is 16 core. I see new threads are created as the load increases
and I have re-checked my system and thread count is now 28. So I think
at most 32 threads is fine for me
Regards.
On Sun, Feb 20, 2011 at 5:03 AM, Quanah Gibson-Mount <quanah@zimbra.com> wrote:
> --On Saturday, February 19, 2011 6:32 PM -0800 Howard Chu <hyc@symas.com>
> wrote:
>
>> Omer Faruk SEN wrote:
>>>
>>> Hi ,
>>>
>>> I have and ldap server (openldap-2.4.23 ) in slapd.conf I set
>>>
>>> concurrency 8192
>>> threads 256
>
>> Keep in mind that each thread uses a thread stack of 4MB on 32 bit
>> systems, 8MB on 64 bit systems. So you're looking at 1-2GB of RAM
>> dedicated to the threads with a setting like this. Make sure you don't
>> configure more threads than you have RAM for...
>
> I would add that your threads setting is likely a rather insane value unless
> you have 256*4 cores (1024 core box). You generally don't need to set the
> threads value higher than 8 or 16.
>
> --Quanah
>
>
> --
>
> Quanah Gibson-Mount
> Sr. Member of Technical Staff
> Zimbra, Inc
> A Division of VMware, Inc.
> --------------------
> Zimbra :: the leader in open source messaging and collaboration
>