Skip to content

Instantly share code, notes, and snippets.

@sebhtml
Created November 24, 2014 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebhtml/5ba50e2a292ff80d4fb5 to your computer and use it in GitHub Desktop.
Save sebhtml/5ba50e2a292ff80d4fb5 to your computer and use it in GitHub Desktop.
[boisvert@cetuslac1 biosal]$ git diff
diff --git a/core/system/memory.c b/core/system/memory.c
index 534dd24..c1282f1 100644
--- a/core/system/memory.c
+++ b/core/system/memory.c
@@ -628,12 +628,12 @@ void core_memory_initialize_memory_subsystem()
*/
#ifdef __bgq__
- /*
- * Configuration suggested by Hal Finkel:
+ /*
+ * Configuration suggested by Hal Finkel in the HACC code.
+ */
mallopt(M_MMAP_THRESHOLD, sysconf(_SC_PAGESIZE));
mallopt(M_TRIM_THRESHOLD, 0);
mallopt(M_TOP_PAD, 0);
- */
/*
* According to the glibc 2.12.2 patch ( https://repo.anl-external.org/viewvc/bgq-driver/V1R1M1/toolchain/glibc-2.12.2.diff?revision=1&content-type=text%2Fplain&pathrev=4 ),
@@ -647,8 +647,10 @@ void core_memory_initialize_memory_subsystem()
* is 128 * 1024 in the glibc.
*/
+ /*
mallopt(M_MMAP_THRESHOLD, 128 * 1024);
mallopt(M_TRIM_THRESHOLD, 128 * 1024);
mallopt(M_TOP_PAD, 128 * 1024);
+ */
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment