[JAVA-220] CLONE -performance impact with multiple concurrent queries Created: 27/Nov/10  Updated: 27/Nov/10  Resolved: 27/Nov/10

Status: Closed
Project: Java Driver
Component/s: Performance
Affects Version/s: 2.3
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: uwe schaefer Assignee: Eliot Horowitz (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 10.04 x64, mongodb-unstable 20101028, mongo-java-driver 2.3, quadcore, 3.2G RAM



 Description   

when running my testcase (attachment)
i get these values back:

========================================================================================
Testname: 1 Thread
	# of Threads:   1
	# of Loops:     400
	# of values:     400
	Average Returned Values:  100
	Average Time:   53ms
========================================================================================
========================================================================================
Testname: 5 Thread
	# of Threads:   5
	# of Loops:     800
	# of values:     4000
	Average Returned Values:  100
	Average Time:   196ms
========================================================================================
========================================================================================
Testname: 10 Thread
	# of Threads:   10
	# of Loops:     40
	# of values:     400
	Average Returned Values:  100
	Average Time:   458ms
========================================================================================
========================================================================================
Testname: 20 Thread
	# of Threads:   20
	# of Loops:     20
	# of values:     400
	Average Returned Values:  100
	Average Time:   1020ms
========================================================================================
 

so 20 threads use approx 988ms per query,
one thread uses approx 53ms, so 20 concurrent requests seem to increase the query time by factor 20 ...
is this to be expected? is this a known issue? can we tweak it somewhere?



 Comments   
Comment by uwe schaefer [ 27/Nov/10 ]

sorry for cloning, i thought i could reopen a clone. i go back to JAVA-207 and add comments there... so please delete this clone.

Generated at Thu Feb 08 08:51:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.