[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: |
|
||||
| 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: |