Change the default advise mode to "discard"

This avoids to swap out other process memory.
This commit is contained in:
Andrea Mazzoleni 2017-11-24 20:52:05 +01:00
parent b9740e06f4
commit 701b0e67e1
2 changed files with 4 additions and 1 deletions

View file

@ -538,7 +538,7 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
state->file_mode = state->opt.file_mode;
} else {
/* default mode, if nothing is specified */
state->file_mode = ADVISE_FLUSH;
state->file_mode = ADVISE_DISCARD;
}
/* store current command */