HomeFreeBSD

Remove O_SYNC from the options passed to dbmopen().

Description

Remove O_SYNC from the options passed to dbmopen().

The services db is created as a temporary file that is moved over the
existing file after completion. Thus there is no need to immediately
flush all created db records to the temporary file.

This speeds up creation of the services db by a factor of 500 on my
ZFS based /var/db filesytem (from 110 seconds to 0.235 seconds).

MFC after: 1 week

Details

Provenance
seAuthored on Feb 10 2016, 9:40 AM
Parents
rG907fe1165552: Update of the Allwinner drivers to:
Branches
Unknown
Tags
Unknown

Event Timeline