Skip to content

Optimize MongoDB with TRIM command (published paper in EDB 2016)

License

Notifications You must be signed in to change notification settings

FlashSQL/mongo-trim

Repository files navigation

mongo-trim

Optimize MongoDB with TRIM command (published paper in EDB 2016)

Author: Trong-Dat Nguyen ([email protected])

Build from source code:

First, make the "build" directory in your MONGO_HOME

$ mkdir build

Next, to build only the server:

$ scons mongod -j40 

To build all core components

$ scons core -j40

See docs/building.md for more detail

Hardware requirements

  • Samsung 840 Pro - With the modified firmware supports Multi-streamed technique. OR
  • Samsung PM953 2.5" NVMe PCIe

Using Macros:

TDN_TRIM4: the TRIM command optimization. Save replaced ranges in the inner data structure. When the number of discard ranges reaches a threshold, invoke the __trim_ranges() thread.

TDN_TRIM4_2: similar with TDN_TRIM4, differences is saving discard ranges instead of replaced ranges