• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

couchbase / moss / 125
83%

Build:
DEFAULT BRANCH: master
Ran 28 Nov 2016 08:12PM UTC
Jobs 1
Files 22
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
125

push

travis-ci

steveyen
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

Jobs
ID Job ID Ran Files Coverage
1 125.1 28 Nov 2016 08:12PM UTC 0
83.9
Travis Job 125.1
Source Files on build 125
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #125
  • e0239a13 on github
  • Prev Build on master (#124)
  • Next Build on master (#126)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc