News for hackers. Stuff that matters.
Re:In Praise of Alpine and APK by invalidator on Monday February 20, 2023 @06:22PM (#34874248)
> 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)
Re:In Praise of Alpine and APK by gorgoiler on Monday February 20, 2023 @11:25PM (#34876574)
Wow. 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.