Welcome! Log In Create A New Profile

Advanced

compiling memcache without threads on multi-core system

Posted by manoher tadakokkula 
manoher tadakokkula
compiling memcache without threads on multi-core system
September 22, 2010 03:40PM
Hi,

I am trying to compile source to install memcached. i have a dual-core
system.
when i did ./configure && make && make install , i think it is installing
threaded version.

Running memached daemon shows, pstree displays as 5*memcached.. hence i
think its running 5 threads..

My questions are :
Docs file threads.txt says, by default it is compiled as single-threaded
appication, how come i got threaded version?
how can i compile the source without threads ?
In threaded version , why am i seeing 5 threads? Docs say -t default value
is 4 , what am i missing ?

thanks in advance,
Manoher T
Paul Lindner
Re: compiling memcache without threads on multi-core system
September 22, 2010 05:00PM
memcache only compiles in a threaded mode these days. The docs are out of
date.

The 5th thread you see is probably a supervisor, the other 4 are worker
threads.

On Wed, Sep 22, 2010 at 6:30 AM, manoher tadakokkula <manoher.t@gmail.com>wrote:

> Hi,
>
> I am trying to compile source to install memcached. i have a dual-core
> system.
> when i did ./configure && make && make install , i think it is installing
> threaded version.
>
> Running memached daemon shows, pstree displays as 5*memcached.. hence i
> think its running 5 threads..
>
> My questions are :
> Docs file threads.txt says, by default it is compiled as single-threaded
> appication, how come i got threaded version?
> how can i compile the source without threads ?
> In threaded version , why am i seeing 5 threads? Docs say -t default value
> is 4 , what am i missing ?
>
> thanks in advance,
> Manoher T
>
>
>


--
Paul Lindner -- lindner@inuus.com -- linkedin.com/in/plindner
Trond Norbye
Re: compiling memcache without threads on multi-core system
September 22, 2010 05:10PM
The last thread is the thread running the clock and accepting new connections.

Cheers

Trond

Sent from my iPhone

On 22. sep. 2010, at 16:50, Paul Lindner <lindner@inuus.com> wrote:

> memcache only compiles in a threaded mode these days. The docs are out of date.
>
> The 5th thread you see is probably a supervisor, the other 4 are worker threads.
>
> On Wed, Sep 22, 2010 at 6:30 AM, manoher tadakokkula <manoher.t@gmail.com> wrote:
> Hi,
>
> I am trying to compile source to install memcached. i have a dual-core system.
> when i did ./configure && make && make install , i think it is installing threaded version.
>
> Running memached daemon shows, pstree displays as 5*memcached.. hence i think its running 5 threads..
>
> My questions are :
> Docs file threads.txt says, by default it is compiled as single-threaded appication, how come i got threaded version?
> how can i compile the source without threads ?
> In threaded version , why am i seeing 5 threads? Docs say -t default value is 4 , what am i missing ?
>
> thanks in advance,
> Manoher T
>
>
>
>
>
> --
> Paul Lindner -- lindner@inuus.com -- linkedin.com/in/plindner
manoher tadakokkula
Re: compiling memcache without threads on multi-core system
September 24, 2010 09:00AM
one more question, what is the recommendation for number of worker threads
for single-core and dual-core systems ?

-manoher

On Wed, Sep 22, 2010 at 8:37 PM, Trond Norbye <trond.norbye@gmail.com>wrote:

> The last thread is the thread running the clock and accepting new
> connections.
>
> Cheers
>
> Trond
>
> Sent from my iPhone
>
> On 22. sep. 2010, at 16:50, Paul Lindner <lindner@inuus.com> wrote:
>
> memcache only compiles in a threaded mode these days. The docs are out of
> date.
>
> The 5th thread you see is probably a supervisor, the other 4 are worker
> threads.
>
> On Wed, Sep 22, 2010 at 6:30 AM, manoher tadakokkula <<manoher.t@gmail.com>
> manoher.t@gmail.com> wrote:
>
>> Hi,
>>
>> I am trying to compile source to install memcached. i have a dual-core
>> system.
>> when i did ./configure && make && make install , i think it is installing
>> threaded version.
>>
>> Running memached daemon shows, pstree displays as 5*memcached.. hence i
>> think its running 5 threads..
>>
>> My questions are :
>> Docs file threads.txt says, by default it is compiled as single-threaded
>> appication, how come i got threaded version?
>> how can i compile the source without threads ?
>> In threaded version , why am i seeing 5 threads? Docs say -t default value
>> is 4 , what am i missing ?
>>
>> thanks in advance,
>> Manoher T
>>
>>
>>
>
>
> --
> Paul Lindner -- <lindner@inuus.com>lindner@inuus.com -- http://linkedin.com/in/plindner
> linkedin.com/in/plindner
>
>
Paul Lindner
Re: compiling memcache without threads on multi-core system
September 24, 2010 09:20AM
A good rule of thumb is one thread per core, but you should run your own
benchmarks on your hardware.

However I can pretty much guarantee you'll run into other bottlenecks before
you have to worry about your CPU usage.

On Thu, Sep 23, 2010 at 11:59 PM, manoher tadakokkula
<manoher.t@gmail.com>wrote:

> one more question, what is the recommendation for number of worker threads
> for single-core and dual-core systems ?
>
> -manoher
>
>
> On Wed, Sep 22, 2010 at 8:37 PM, Trond Norbye <trond.norbye@gmail.com>wrote:
>
>> The last thread is the thread running the clock and accepting new
>> connections.
>>
>> Cheers
>>
>> Trond
>>
>> Sent from my iPhone
>>
>> On 22. sep. 2010, at 16:50, Paul Lindner <lindner@inuus.com> wrote:
>>
>> memcache only compiles in a threaded mode these days. The docs are out of
>> date.
>>
>> The 5th thread you see is probably a supervisor, the other 4 are worker
>> threads.
>>
>> On Wed, Sep 22, 2010 at 6:30 AM, manoher tadakokkula <<manoher.t@gmail.com>
>> manoher.t@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am trying to compile source to install memcached. i have a dual-core
>>> system.
>>> when i did ./configure && make && make install , i think it is installing
>>> threaded version.
>>>
>>> Running memached daemon shows, pstree displays as 5*memcached.. hence i
>>> think its running 5 threads..
>>>
>>> My questions are :
>>> Docs file threads.txt says, by default it is compiled as single-threaded
>>> appication, how come i got threaded version?
>>> how can i compile the source without threads ?
>>> In threaded version , why am i seeing 5 threads? Docs say -t default
>>> value is 4 , what am i missing ?
>>>
>>> thanks in advance,
>>> Manoher T
>>>
>>>
>>>
>>
>>
>> --
>> Paul Lindner -- <lindner@inuus.com>lindner@inuus.com -- http://linkedin.com/in/plindner
>> linkedin.com/in/plindner
>>
>>
>


--
Paul Lindner -- lindner@inuus.com -- linkedin.com/in/plindner
Matt Ingenthron
Re: compiling memcache without threads on multi-core system
September 24, 2010 10:00AM
On 9/24/10 12:10 AM, Paul Lindner wrote:
> A good rule of thumb is one thread per core, but you should run your
> own benchmarks on your hardware.

+1

This is a good general rule of thumb overall, though the old general
rule is go up to 4x number of CPUs if tuning for throughput, and just at
or slightly below if tuning for latency. You'll get both pretty well
OOTB with one thread per core.
>
> However I can pretty much guarantee you'll run into other bottlenecks
> before you have to worry about your CPU usage.

Likely network.


>
> On Thu, Sep 23, 2010 at 11:59 PM, manoher tadakokkula
> <manoher.t@gmail.com <mailto:manoher.t@gmail.com>> wrote:
>
> one more question, what is the recommendation for number of worker
> threads for single-core and dual-core systems ?
>
> -manoher
>
>
> On Wed, Sep 22, 2010 at 8:37 PM, Trond Norbye
> <trond.norbye@gmail.com <mailto:trond.norbye@gmail.com>> wrote:
>
> The last thread is the thread running the clock and accepting
> new connections.
>
> Cheers
>
> Trond
>
> Sent from my iPhone
>
> On 22. sep. 2010, at 16:50, Paul Lindner <lindner@inuus.com
> <mailto:lindner@inuus.com>> wrote:
>
>> memcache only compiles in a threaded mode these days. The
>> docs are out of date.
>>
>> The 5th thread you see is probably a supervisor, the other 4
>> are worker threads.
>>
>> On Wed, Sep 22, 2010 at 6:30 AM, manoher tadakokkula
>> <manoher.t@gmail.com <mailto:manoher.t@gmail.com>> wrote:
>>
>> Hi,
>>
>> I am trying to compile source to install memcached. i
>> have a dual-core system.
>> when i did ./configure && make && make install , i think
>> it is installing threaded version.
>>
>> Running memached daemon shows, pstree displays as
>> 5*memcached.. hence i think its running 5 threads..
>>
>> My questions are :
>> Docs file threads.txt says, by default it is compiled as
>> single-threaded appication, how come i got threaded version?
>> how can i compile the source without threads ?
>> In threaded version , why am i seeing 5 threads? Docs say
>> -t default value is 4 , what am i missing ?
>>
>> thanks in advance,
>> Manoher T
>>
>>
>>
>>
>>
>> --
>> Paul Lindner -- lindner@inuus.com <mailto:lindner@inuus.com>
>> -- linkedin.com/in/plindner http://linkedin.com/in/plindner
>
>
>
>
>
> --
> Paul Lindner -- lindner@inuus.com <mailto:lindner@inuus.com> --
> linkedin.com/in/plindner http://linkedin.com/in/plindner
Sorry, only registered users may post in this forum.

Click here to login