Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Simplified the implementation to not support file extension and truncation on mmapped files. Reads and writes destined to the outside of the mapped buffer default to the system call path. * Added stats to measure how much I/O is done via mmap vs system calls * Remap the mapped region if the file is extended via a write beyond the end of the file. * Only mmap files that are of type data or log. Code refactoring. Minor bug fixes. * Introduce remapping the mmapped region if we extended the file size via the write system call. Do not remap every time we have the opportunity, but only occasionally, to avoid the overhead. * Enable fh_extend and remap the region upon file extension. * Enable I/O via MMAP for all data files via a runtime option mmap_all. * Add low-level testing of mmap_all configuration at 5%. Co-authored-by: Sasha Fedorova <sasha.fedorova@10gen.com> Co-authored-by: Sasha Fedorova <sasha@mongodb.com> Co-authored-by: Keith Bostic <keith.bostic@mongodb.com>
- Loading branch information
1 parent
1648fdd
commit a168e98
Showing
18 changed files
with
933 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.