testing using multiple threads

22 views
Skip to first unread message

ktechie

unread,
Nov 18, 2011, 9:12:03 AM11/18/11
to xmemcached
I was doing a test of memcached using Contiperf to test by applying
load.
The memcached was populated with Strings as key and value
The keys would be "key_01" value is like "value_01".

The test involved only getting these values iteratively & second test
involved using multiget.

There was a tremendous improvement of using multiget over getting
iteratively.

However one more observation was that, as the number of threads
increased, the performance degradation was also very high.
Since I was doing only get operations, I am not sure why the
performance was degrading in multiples when the threads were
increasing.

We are facing some contention & performance issues, & thats why I ran
this test.

Need some help in understanding if this behaviour is expected or is
there anything I need to do.

dennis zhuang

unread,
Nov 18, 2011, 9:36:59 AM11/18/11
to xmemc...@googlegroups.com
How many threads did you test?Please offer more information about configuration and result.

2011/11/18 ktechie <kirandos...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "xmemcached" group.
To post to this group, send email to xmemc...@googlegroups.com.
To unsubscribe from this group, send email to xmemcached+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xmemcached?hl=en.




--
庄晓丹
Email:        killm...@gmail.com
伯岩(花名)  bo...@taobao.com
Site:           http://fnil.net

淘宝(中国)软件有限公司 / 产品技术部 / Java中间件

ktechie

unread,
Nov 22, 2011, 6:44:47 AM11/22/11
to xmemcached
The Key was of the form "key_xx" and value was "value_xx".

I did the test with multiple combinations.
Find the data in csv files with the headings as below.

No of elements,"No of Memcached
Servers",Threads,Iterations,Iterative/Multi,Average Time(ms)

The values are :

100,1,1,10,I,36
100,1,1,10,M,6
100,1,5,10,I,112
100,1,5,10,M,26
100,1,10,10,I,215
100,1,10,10,M,42
500,1,1,10,I,101
500,1,1,10,M,6.5
500,1,5,10,I,349
500,1,5,10,M,33.5
500,1,10,10,I,697
500,1,10,10,M,52
1000,1,1,10,I,203
1000,1,1,10,M,9
1000,1,5,10,I,474
1000,1,5,10,M,34
1000,1,10,10,I,1128
1000,1,10,10,M,75.5
5000,1,10,10,I,5746
5000,1,10,10,M,318
5000,2,10,10,I,6011
5000,2,10,10,M,313
5000,4,10,10,I,6731
5000,4,10,10,M,293
5000,5,10,10,I,6390
5000,5,10,10,M,287
5000,5,1000,20,I,12162
5000,5,1000,20,M,431

In case this is not clear let me know

On Nov 18, 7:36 pm, dennis zhuang <killme2...@gmail.com> wrote:
> How many threads did you test?Please offer more information about
> configuration and result.
>

> 2011/11/18 ktechie <kirandoshitec...@gmail.com>
>
>
>
>
>
>
>
>
>

On Nov 18, 7:36 pm, dennis zhuang <killme2...@gmail.com> wrote:
> How many threads did you test?Please offer more information about
> configuration and result.
>

> 2011/11/18 ktechie <kirandoshitec...@gmail.com>

> Email: killme2...@gmail.com

dennis

unread,
Nov 24, 2011, 9:41:06 PM11/24/11
to xmemcached
Hi,did you mean you test multi-fetch with 1000 threads? And the
performance degraded.

I think in this situation,you must try to use a connection
pool,because the xmemcached use a single connection by default.In the
high concurrent enviroment,the network IO may be a bottleneck.

ktechie

unread,
Nov 24, 2011, 10:04:39 PM11/24/11
to xmemcached
No it is in following order

No of elements,No of Memcached
Servers,Threads,Iterations,Iterative/Multi,Average Time(ms)

eg : 100,1,1,10,I,36 means
100 elements, 1 Memcached server, 1 Thread, 10 iterations, I -
Iterative, 36ms is average time.

The last two entries are in wrong order
It is 1000 iterations and 20 threads.

Sorry about that...

btw I am using a connection pool of 10.

dennis zhuang

unread,
Nov 24, 2011, 10:12:04 PM11/24/11
to xmemc...@googlegroups.com
How many elements did you multi-fetch at one time?
Email:        killm...@gmail.com

ktechie

unread,
Nov 25, 2011, 7:46:25 AM11/25/11
to xmemcached
I fetched all the elements together.

On Nov 25, 8:12 am, dennis zhuang <killme2...@gmail.com> wrote:
> How many elements did you multi-fetch at one time?
>

Reply all
Reply to author
Forward
0 new messages