[SERVER-22100] memory pressure from find/getMore buffer preallocation causes concurrency suite slowness on Windows DEBUG Created: 07/Jan/16  Updated: 18/Nov/16  Resolved: 11/Jan/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.2.3, 3.3.1

Type: Bug Priority: Major - P3
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-21969 Long running concurrency tests can ti... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: QuInt E (01/11/16), Integration F (02/01/16)
Participants:
Linked BF Score: 0

 Description   

The additional memory pressure from find/getMore buffer preallocation, in conjunction with the overhead CRT heap debugging, causes the concurrency suite (fsm_all_replicated.js) to time out frequently.

NOTE: This problem only affects DEBUG builds on Windows, so it is not a problem in production.



 Comments   
Comment by Githook User [ 15/Jan/16 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: SERVER-22100 do not preallocate find/getMore response buffers on Windows DEBUG

(cherry picked from commit 9cce8846424654653e9449c134fadbe56a7c5df1)
Branch: v3.2
https://github.com/mongodb/mongo/commit/48a29450239d88607842cb7f2eb7d34d89bbcb1f

Comment by Githook User [ 11/Jan/16 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: SERVER-22100 do not preallocate find/getMore response buffers on Windows DEBUG
Branch: master
https://github.com/mongodb/mongo/commit/9cce8846424654653e9449c134fadbe56a7c5df1

Comment by Adam Midvidy [ 11/Jan/16 ]

I'm still investigating the root cause of the slowdown but the patch I submitted for CR does fix the problem. The downside is that we run slightly different code in debug builds, which may cause issues down the line.

Generated at Thu Feb 08 03:59:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.