[SERVER-13185] too much (virtual) memory allocated on getmore under edge condition Created: 13/Mar/14  Updated: 11/Jul/16  Resolved: 13/Mar/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.0.0
Fix Version/s: 2.7.0

Type: Improvement Priority: Minor - P4
Reporter: Dwight Merriman Assignee: Dwight Merriman
Resolution: Done Votes: 0
Labels: cap-ticket-needed
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Tested
Backwards Compatibility: Fully Compatible
Participants:

 Description   

large BufBuilder (4mb) is malloc'd ahead of acquiring DBRead lock. if thousands of clients, waiting on a slow write, the allocated bytes would be gigabytes.

this would mostly just be virtual memory i guess, but still not a good thing. (and behavior could vary by operating system virtual memory manager)



 Comments   
Comment by Dwight Merriman [ 13/Mar/14 ]

maybe backport. not sure if necessary, but definitely could be done.

Comment by Githook User [ 13/Mar/14 ]

Author:

{u'username': u'dwight', u'name': u'Dwight', u'email': u'dwight@10gen.com'}

Message: SERVER-13185 allocate large buffer in getmore after lock acquisition
Branch: master
https://github.com/mongodb/mongo/commit/f40515fa26c91760117593f31e406dc022ea5fff

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