Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 1995 08:42:53 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        CVS-commiters@freefall.cdrom.com, cvs-usrsbin@freefall.cdrom.com, phk@freefall.cdrom.com
Subject:   Re: cvs commit: src/usr.sbin/kvm_mkdb kvm_mkdb.c nlist.c
Message-ID:  <199501102142.IAA25273@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified:    usr.sbin/kvm_mkdb kvm_mkdb.c nlist.c
>  Log:
>  Speed kvm_mkdb up by a factor 5 or thereabout.  Rewrote all the fseek/fread
>  nonsense to use a mmap'ed file instead and told the DB/hash what we are up to.
>  
>  dev_mkdb could maybe benefit from the same treatment.

I speeded it up by a factor of 10 or thereabouts by removing write-through
of full blocks in ufs.  (kvm, and potentially anything that does a lot of
random access, writes to the same blocks many times.)  Your fix works
because there is no way to tell when an mmap'ed block is full, so the
write-through pessimization cannot be applied.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199501102142.IAA25273>