[CONC-79] Performance issue with c client library Created: 2014-02-14 Updated: 2014-03-03 Resolved: 2014-03-02 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Ashwin | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | performance | ||
| Environment: |
Linux |
||
| Attachments: |
|
| Description |
|
Performance issue with client library when used with more connections. Logging resource consumption output using getrusage() http://linux.die.net/man/2/getrusage With 400 threads, each thread querying 1000 times here is the result: user time (ms): 25589 Since there a lot of context switches involved and high system time, degraded performance can be observed when used for long periods of time. The same test with MySQL client results in user time (ms): 21503 How to reproduce: 1. initializes client library, mysql_library_init(). every thread does the following: Attaching a sample code that describes the problem: To use the sample application: P.S: I am using the rev 117 for testing. |
| Comments |
| Comment by Georg Richter [ 2014-03-02 ] |
|
fixed in rev. 119 |