[SERVER-14129] Use fsync instead of msync for SmartOS Created: 02/Jun/14 Updated: 11/Jul/16 Resolved: 04/Sep/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Performance, Storage |
| Affects Version/s: | None |
| Fix Version/s: | 2.7.6 |
| Type: | Improvement | Priority: | Critical - P2 |
| Reporter: | Bruce Lucas (Inactive) | Assignee: | Mark Benvenuto |
| Resolution: | Done | Votes: | 0 |
| Labels: | community-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
On SmartOS msync is implemented in a very inefficient manner - it has to scan every page of the mapped region to determine which files to sync. This uses a lot of CPU time for large dbs and
On the other hand fsync of the underlying file descriptor is much more efficient, doing only the work necessary to flush the dirty pages. |
| Comments |
| Comment by Githook User [ 29/Aug/14 ] |
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: |
| Comment by Githook User [ 29/Aug/14 ] |
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: |