[SERVER-6603] Performance -- remove remapLock code from Windows build Created: 26/Jul/12  Updated: 11/Jul/16  Resolved: 01/Aug/12

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 2.2.0-rc0
Fix Version/s: 2.2.0-rc1

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: Windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: Windows
Participants:

 Description   

A "remapLock" critical section was added to the Windows version to try to prevent MapViewOfFileEx failures, but we were unable to make the code bulletproof using this method and eventually solved it a different way. Performance tests show that this code cause a 3% loss of performance on some tests, so we should just remove this code to get this performance back.



 Comments   
Comment by auto [ 01/Aug/12 ]

Author:

{u'date': u'2012-07-26T06:08:17-07:00', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-6603 remove remapLock and hook functions (Windows)

Remove the code that tried to lock out allocation of virtual memory
while the Windows version of remapPrivateView was remapping a memory-
mapped file. It didn't solve the problem but did affect performance.
Branch: master
https://github.com/mongodb/mongo/commit/790a4f7b7097be14709f37729e716862102078dc

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