Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG Concurrecy not calculated correctly #157

Open
GoogleCodeExporter opened this issue Oct 13, 2015 · 0 comments
Open

BUG Concurrecy not calculated correctly #157

GoogleCodeExporter opened this issue Oct 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. download small_status from attachment
2. download aspersa from attachment (extracted AWK script from the original USL 
script)
3. $ awk -f aspersa small_status

What is the expected output? What do you see instead?

Expected:
2.000000 1272.300000

Actual:
1.333333 1272.300000

What version of the product are you using? On what operating system?

I use the HEAD version obtained from: 
http://aspersa.googlecode.com/svn/trunk/usl

$ cat /etc/*-release
CentOS release 6.3 (Final)

Please provide any additional information below.


The throughput (qps) seems to be correctly calculated. However, the concurrency 
seems to be false. Let's see what's in the small_status file:

...
Threads_running 2
...
Threads_running 4
...

We substract the thread that executes SHOW GLOBAL STATUS from each value, this 
gives us 2-1=1 and 4-1=3 respectively. Their average is (1+3)/2=2 and not 1.3333

I set THEADS_MAX, NUM_SLAVES and INTERVAL to 0.

I think the problem is with this line:
concurrency = threads_sum / (samples - skipped + 1);

To get the correct resutls, it should be:
concurrency = threads_sum / (samples - skipped);

It can be reproduced with bigger status file and using the full UCL script (not 
only the AWK part).


Can you please verify this? Thank you!

Original issue reported on code.google.com by [email protected] on 4 Mar 2013 at 6:15

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant