summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-10-29 11:06:52 -0400
committerEliot Horowitz <eliot@10gen.com>2010-10-29 11:06:52 -0400
commitfc15fa95207ae9e340992ef17f23bbde08252cf6 (patch)
treeab3fa072b297859baab1b0eaf247368d08c7fcbc
parent6157d16b47d62294b94295ce45308a693471cc81 (diff)
downloadmongo-fc15fa95207ae9e340992ef17f23bbde08252cf6.tar.gz
Warn when useing --noprealloc that it can reduce performance SERVER-1903
-rw-r--r--db/db.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 8d9dae07b55..6763ee545ee 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -695,7 +695,7 @@ int main(int argc, char* argv[], char *envp[] )
("rest","turn on simple rest api")
("jsonp","allow JSONP access via http (has security implications)")
("noscripting", "disable scripting engine")
- ("noprealloc", "disable data file preallocation")
+ ("noprealloc", "disable data file preallocation - will often hurt performance")
("smallfiles", "use a smaller default file size")
("nssize", po::value<int>()->default_value(16), ".ns file size (in MB) for new databases")
("diaglog", po::value<int>(), "0=off 1=W 2=R 3=both 7=W+some reads")
@@ -866,6 +866,7 @@ int main(int argc, char* argv[], char *envp[] )
}
if (params.count("noprealloc")) {
cmdLine.prealloc = false;
+ cout << "note: noprealloc may hurt performance in many applications" << endl;
}
if (params.count("smallfiles")) {
cmdLine.smallfiles = true;