Re: Why so slow?

2012-08-22 Thread Rob Coli
On Sun, Aug 19, 2012 at 11:09 AM, Peter Morris mrpmor...@gmail.com wrote: Is the Windows community edition crippled for network use perhaps, or could the problem be something else? It's not crippled but it underperforms Cassandra on Linux. Cassandra contains various Linux specific optimizations

Re: Why so slow?

2012-08-21 Thread aaron morton
@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Monday, August 20, 2012 10:03 AM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Re: Why so slow? Are you

Re: Why so slow?

2012-08-20 Thread Peter Morris
Thanks, I shall get onto the developer of the library :) On Sun, Aug 19, 2012 at 10:13 PM, Peter Schuller peter.schul...@infidyne.com wrote: You're almost certainly using a client that doesn't set TCP_NODELAY on the thrift TCP socket. The nagle algorithm is enabled, leading to 200 ms

Re: Why so slow?

2012-08-20 Thread Peter Morris
I've set NoDelay = true on the socket, and although it is much better it is still only giving me 500 record inserts per second over a 1Gbps crossover cable - (I now also get 200 record inserts per second over wireless.) I would expect the cross over to have much better performance than this. Any

Re: Why so slow?

2012-08-20 Thread Hiller, Dean
-To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Monday, August 20, 2012 4:49 AM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Re: Why so slow

Re: Why so slow?

2012-08-20 Thread Peter Morris
@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Monday, August 20, 2012 4:49 AM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Re: Why so slow

Re: Why so slow?

2012-08-20 Thread Hiller, Dean
@cassandra.apache.org Date: Monday, August 20, 2012 9:29 AM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Re: Why so slow? I'm assessing how quickly on average I can deal with a single request. I cannot believe

Re: Why so slow?

2012-08-20 Thread Peter Morris
My misunderstanding, thanks for correcting me! On Mon, Aug 20, 2012 at 4:32 PM, Hiller, Dean dean.hil...@nrel.gov wrote: There is latency and throughput. These are two totally different things even for MySQL. If you are single threaded, each request (even with MySql) has to be delayed by

Re: Why so slow?

2012-08-20 Thread Carlos Carrasco
Are you inserting in bulk? Try to increase the amount of mutations you send in a single batch, otherwise you are just measuring the TCP roundtrip time. On 20 August 2012 17:36, Peter Morris mrpmor...@gmail.com wrote: My misunderstanding, thanks for correcting me! On Mon, Aug 20, 2012 at 4:32

Re: Why so slow?

2012-08-20 Thread Hiller, Dean
@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Re: Why so slow? Are you inserting in bulk? Try to increase the amount of mutations you send in a single batch, otherwise you are just measuring the TCP roundtrip time. On 20 August 2012 17:36, Peter Morris mrpmor...@gmail.commailto:mrpmor...@gmail.com wrote

Why so slow?

2012-08-19 Thread Peter Morris
Hi all I have a Windows 7 machine (64 bit) with DataStax community server installed. Running a benchmark app on the server gives me 7000 inserts per second. Running the same app on a networked client gives me only 5 inserts per second. The two computers are connected directly via a cross over

Re: Why so slow?

2012-08-19 Thread Dave Brosius
Are you using multiple client threads? You might want to try the stress tool in the distribution. On 08/19/2012 02:09 PM, Peter Morris wrote: Hi all I have a Windows 7 machine (64 bit) with DataStax community server installed. Running a benchmark app on the server gives me 7000 inserts

Re: Why so slow?

2012-08-19 Thread Peter Morris
No I am using a single thread. My aim at this point is to see how quickly I can connect, post, then complete. I just find it bizarre that it goes from 7000 per second down to 5! On Sun, Aug 19, 2012 at 8:22 PM, Dave Brosius dbros...@mebigfatguy.comwrote: Are you using multiple client

Re: Why so slow?

2012-08-19 Thread Peter Schuller
You're almost certainly using a client that doesn't set TCP_NODELAY on the thrift TCP socket. The nagle algorithm is enabled, leading to 200 ms latency for each, and thus 5 requests/second. http://en.wikipedia.org/wiki/Nagle's_algorithm -- / Peter Schuller (@scode,