]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Run fadvise with mmap file (#10142)
authorsdong <siying.d@fb.com>
Fri, 10 Jun 2022 23:34:01 +0000 (16:34 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 10 Jun 2022 23:34:01 +0000 (16:34 -0700)
commit80afa776607a21895f207babb8722c04414590e9
treefb2b52660bd4e3a6251936626f16e8c5a65059db
parent1777e5f7e9a891b04ba9130623ebba6344838e26
Run fadvise with mmap file (#10142)

Summary:
Right now with mmap file, we don't run fadvise following users' requests. There is no reason for that so this diff does that.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10142

Test Plan:
A simple readrandom against files with page cache dropped shows latency improvement from 7.8 us to 2.8:

./db_bench -use_existing_db --benchmarks=readrandom --num=100

Reviewed By: anand1976

Differential Revision: D37074975

fbshipit-source-id: ccc72bcac1b5fd634eb8fa2b6a5d9afe332e0bf6
env/io_posix.cc
env/io_posix.h