From b8c5910232d1428b686716be02b10b2c498cab89 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 8 Aug 2017 20:55:44 -0400 Subject: 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. --- server.c | 5 ----- 1 file changed, 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"); -- cgit 1.4.1