Hi,

On Mon, 14 Feb 2011, Mike Hommey wrote:
> The manual page says:
>   unsafe-io: Do not perform safe I/O operations when unpacking. Currently
>   this implies not performing file system syncs before file renames, (...)
> 
> While this is stricly true, there are still two fsync()s occuring on each
> package unpack, making the whole thing still slow when installing many
> packages at a time.
> 
> These happen for /var/lib/dpkg/updates and /var/lib/dpkg/tmp.ci.

This is on purpose.

The status database has always been synced IIRC. There might be one
fsync() more on the directory containing status information but that
should not make it much slower than what it used to be... at least not
compared to many fsync() for unpacked files.

We want to always ensure the consistency of the internal database.
Use eatmydata if you really want no fsync(), but we don't want to make
it too easy for users to corrupt the database.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to