diff options
author | June McEnroe <june@causal.agency> | 2017-08-08 20:55:44 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-08-08 20:55:44 -0400 |
commit | 881f64ddfbc6141ac7ed2eacf7bc0de1f49bc67f (patch) | |
tree | f301d8417fc514ead50ac6a1a079092cf27c32a9 /server.c | |
parent | Completely retry if a send fails during a broadcast (diff) | |
download | torus-881f64ddfbc6141ac7ed2eacf7bc0de1f49bc67f.tar.gz torus-881f64ddfbc6141ac7ed2eacf7bc0de1f49bc67f.zip |
Remove MADV_NOSYNC
I don't think this has any benefit. It just takes longer to stop the server because it flushes all the pages then.
Diffstat (limited to '')
-rwxr-xr-x | server.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/server.c b/server.c index 2fcdff7..c3ae650 100755 --- a/server.c +++ b/server.c @@ -38,11 +38,6 @@ static void tilesMap(void) { error = madvise(tiles, TILES_SIZE, MADV_RANDOM); if (error) err(EX_OSERR, "madvise"); -#ifdef MADV_NOSYNC - error = madvise(tiles, TILES_SIZE, MADV_NOSYNC); - if (error) err(EX_OSERR, "madvise"); -#endif - #ifdef MADV_NOCORE error = madvise(tiles, TILES_SIZE, MADV_NOCORE); if (error) err(EX_OSERR, "madvise"); |