• Mike Hibler's avatar
    Add client '-f' option for using O_DIRECT open mode for the output device. · 46a62612
    Mike Hibler authored
    On Linux, device IO goes through the buffer cache by default. This makes
    frisbee run really fast...until it closes the output device. Then it sits
    for minutes while it flushes disk data out of the cache. This is
    technically okay, but wasteful, since frisbee allocates its own memory
    for caching disk write data. By using direct IO on the output device,
    writes do not go through the cache.
    
    Aren't two caches better than one? No. They can compete for memory and it
    just causes an extra data copy. Frisbee is faster when using O_DIRECT.
    
    Note that this change is complicated somewhat because Linux requires that
    the IO buffer for an O_DIRECT opened file be sector aligned. So we play
    some games to do this.
    
    This should have no effect on FreeBSD where device writes don't go through
    the buffer cache.
    46a62612
Name
Last commit
Last update
..
GNUmakefile.in Loading commit data...
IDEAS Loading commit data...
Makefile-linux.sa Loading commit data...
Makefile.sa Loading commit data...
README Loading commit data...
README.mserver Loading commit data...
README.sa Loading commit data...
TODO Loading commit data...
client.c Loading commit data...
config.c Loading commit data...
config_emulab.c Loading commit data...
config_null.c Loading commit data...
configdefs.h Loading commit data...
decls.h Loading commit data...
event.c Loading commit data...
event.h Loading commit data...
frisuploadd_emulab.in Loading commit data...
frisuploader.c Loading commit data...
frisuploader.sh Loading commit data...
log.c Loading commit data...
log.h Loading commit data...
mserver.c Loading commit data...
network.c Loading commit data...
queue.h Loading commit data...
server.c Loading commit data...
trace-parse.pl Loading commit data...
trace.c Loading commit data...
trace.h Loading commit data...
upload.c Loading commit data...
uploadio.c Loading commit data...
uploadio.h Loading commit data...
utils.c Loading commit data...
utils.h Loading commit data...