[SERVER-39681] The `storage_mobile_record_store_test` takes long time to run in debug mode Created: 20/Feb/19 Updated: 27/Oct/23 Resolved: 02/Apr/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kaloian Manassiev | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Storage Execution
|
| Operating System: | ALL |
| Participants: |
| Description |
|
The storage index/record store unit-tests seem to take quite a bit of time, but `storage_mobile_record_store_test` is especially slow, sometimes taking almost 10 minutes on debug builds. Building the server with this command line:
Produces these run times, which are the highest of all the unit-tests that execute:
|
| Comments |
| Comment by Kaloian Manassiev [ 22/Feb/19 ] | ||||||||||||||||||
|
I am able to reproduce it on my Windows box. Majority of the time is spent in this loop, which populates the record store. The call stack where majority of the time is spent looks like this:
It looks like that winSync calls osFlushFileBuffers and I am wondering whether this is contributing to the long run time? | ||||||||||||||||||
| Comment by Eric Milkie [ 21/Feb/19 ] | ||||||||||||||||||
|
I still can't repro the slowness; it also looks like the Evergreen builders do not take this long to run this test. If you could, an output of a profiler would be helpful to determine where your particular machine is having trouble. | ||||||||||||||||||
| Comment by Kaloian Manassiev [ 20/Feb/19 ] | ||||||||||||||||||
|
I updated the description with the command line that I used to build the test. | ||||||||||||||||||
| Comment by Eric Milkie [ 20/Feb/19 ] | ||||||||||||||||||
|
I ran it in debug mode on my machine and it takes 1.265 seconds. Can you help me reproduce your slowness? | ||||||||||||||||||
| Comment by Eric Milkie [ 20/Feb/19 ] | ||||||||||||||||||
|
It runs in 0.692 seconds in release mode on my machine, so there must be something about the debug mode checking that is slowing it down. |