[tuto][general][responsiveness] eatmydata: Reduction in synchronization calls, therefore faster software execution

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
User avatar
K-mik@Z
Posts: 17
Joined: Sat May 19, 2018 10:08 am

[tuto][general][responsiveness] eatmydata: Reduction in synchronization calls, therefore faster software execution

#1 Post by K-mik@Z »



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
Then
https://github.com/stewartsmith/libeatmydata

Code: Select all

eatmydata foo
e.g: eatmydata firefox

Simple and effective, enjoy
Last edited by K-mik@Z on Wed Dec 25, 2019 8:39 am, edited 1 time in total.
My tutorials
Sorry by advance for my english, I'm french.
Image "They didn't know it was impossible, so they did it." - Mark Twain

User avatar
Stevo
Developer
Posts: 14451
Joined: Fri Dec 15, 2006 7:07 pm

Re: [tuto][general][responsiveness] eatmydata: Reduction in synchronization calls, therefore faster software execution

#2 Post by Stevo »

I've been using it in my pbuilder package pbuilder chroots, since using it significantly reduces the time it takes the time they need to spin up from just the base tarball and install all of a package's build-depends.

aus9
Posts: 128
Joined: Sat Jul 02, 2016 1:14 am

Re: [tuto][general][responsiveness] eatmydata: Reduction in synchronization calls, therefore faster software execution

#3 Post by aus9 »

@K-mik@Z

Love your tips.....my xmas wish is for you to do more ;)

Post Reply

Return to “Tips & Tricks by users”