summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/putw.c
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2004-07-04 19:13:58 +0000
committercperciva <cperciva@FreeBSD.org>2004-07-04 19:13:58 +0000
commit7662db4aa1781530b9ac3f043b3602cbf141b788 (patch)
tree886efee3e841be9fd6551f1dd7f2fa8878edc1d6 /lib/libc/stdio/putw.c
parent4def32ce29e18bf1097e7a4117193834a6e7e99a (diff)
downloadFreeBSD-src-7662db4aa1781530b9ac3f043b3602cbf141b788.zip
FreeBSD-src-7662db4aa1781530b9ac3f043b3602cbf141b788.tar.gz
Where syslogd would have fsync()ed a file in the past, instead set a flag
FFLAG_NEEDSYNC and fsync the file when select() next returns zero. This dramatically speeds up the process of logging large amounts of data, while leaving the essential semantics (that data can be expected to be on disk if we crash) unchanged. In my tests, this speeds up the rc phase of booting by 18-20%. [1] YES PLEASE! by: phk [1]
Diffstat (limited to 'lib/libc/stdio/putw.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud