|
Ran
|
Jobs
1
|
Files
22
|
Run time
2s
|
Badge
README BADGES
|
push
travis-ci
MB-21695 - mossStore reuses existing mmap()'ed regions Before this change, when mossStore appended a new footer to the end of the file, it would re-mmap() the entire file. As more footers are appended, the mmap()'ed region would grow larger and larger... [1111] [1111--2222] [1111--2222--3333] Eventually, a huge, contiguous region of virtual address space would be needed, which the OS might not be able to easily provide. Instead, with this change, previous mmap()'ed regions are reused by bumping ref-counts on the older regions, and only the latest appended section of the file is mmap()'ed. [1111] [2222] [3333] So, the OS only needs to find contiguous virtual address space for smaller, more granular regions. This change also simplifies the code by removing the previous complexity of updating older snapshots with the latest "full-file" mmap(), where the code that previously maintained a linked-list of older footers is now removed. Change-Id: Id12666e6c Reviewed-on: http://review.couchbase.org/70368 Reviewed-by: Marty Schoch <marty.schoch@gmail.com> Tested-by: Steve Yen <steve.yen@gmail.com>
2225 of 2652 relevant lines covered (83.9%)
9724.89 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 125.1 | 0 |
83.9 |
Travis Job 125.1 |