What is for
Basically its a PRELOAD library that redirects all sync and fsync system calls to "/dev/null"... saving non-crucial I/O (which is ideal for extending the life of your HDD/SSD)
From the man page
eatmydata runs a command in the environment where data-to-disk synchronization calls (like fsync(), fdatasync(), sync(), msync() and open() O_SYNC / O_DSYNC flags) have no effect. LD_PRELOAD library libeatmydata overrides respective C library calls with custom functions that don't trigger synchronization but return success nevertheless.
DO NOT use libeatmydata on software where you care about what it stores. It's called libEAT-MY-DATA for a reason.
(like office suite)
Usage
First, install it
Code: Select all
sudo apt-get install -y eatmydata
https://github.com/stewartsmith/libeatmydata
Code: Select all
eatmydata foo
Simple and effective, enjoy