3 ms·
> apt is just annoyingly slow A lot of that is due to aggressive use of fsync. apt tries hard to be robust against power failures when changing the system. W
by invalidator 4y ago
> apt is just annoyingly slow
A lot of that is due to aggressive use of fsync. apt tries hard to be robust against power failures when changing the system.
When using it for something ephemeral (say, part of a CI workflow) you can disable fsync and let it rip. It's still not as fast as apk but it's several times faster than normal.
apt-get -yq install eatmydata
eatmydata apt-get -yq install (all the other things)
- gorgoiler 4y agoWow. You weren’t kidding. I tried apt install ffmpeg in a debian:sid docker container on two different docker hosts: one with slow IO (a cheap VPS with slow, contentious storage); and one with much faster, less over subscribed IO. Fast IO: 27s -> 26s with eatmydata. Basically the same. Slow IO: 280s -> 140s with eatmydata. Literally twice as fast.