Date: Wed, 10 Feb 2016 10:29:25 -0800 (PST) From: Don Lewis <truckman@FreeBSD.org> To: se@FreeBSD.org Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r295465 - head/usr.sbin/services_mkdb Message-ID: <201602101829.u1AITPwX018751@gw.catspoiler.org> In-Reply-To: <201602100940.u1A9ejb6086175@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10 Feb, Stefan Esser wrote: > Author: se > Date: Wed Feb 10 09:40:45 2016 > New Revision: 295465 > URL: https://svnweb.freebsd.org/changeset/base/295465 > > Log: > 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). Thanks! I was wondering why this was so s...l...o...w...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602101829.u1AITPwX018751>