summaryrefslogtreecommitdiff
path: root/slabs.h
diff options
context:
space:
mode:
authorTrond Norbye <Trond.Norbye@sun.com>2008-02-25 16:56:45 +0000
committerTrond Norbye <Trond.Norbye@sun.com>2008-02-25 16:56:45 +0000
commita6b35b4444795765d27556c6eeff7a4eed4b458d (patch)
tree9b1a90cc4883fd5f7a392cdb164ff5d0f4f431f6 /slabs.h
parentc12ebb2b330f552a5108571f39a14aeabb376190 (diff)
downloadmemcached-a6b35b4444795765d27556c6eeff7a4eed4b458d.tar.gz
Enable use of large memory pages (Trond Norbye) <Trond.Norbye@Sun.COM>
Initial support for solaris. git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@724 b0b603af-a30f-0410-a34e-baf09ae79d0b
Diffstat (limited to 'slabs.h')
-rw-r--r--slabs.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/slabs.h b/slabs.h
index 63fef13..55ac62f 100644
--- a/slabs.h
+++ b/slabs.h
@@ -2,8 +2,11 @@
/** Init the subsystem. 1st argument is the limit on no. of bytes to allocate,
0 if no limit. 2nd argument is the growth factor; each slab will use a chunk
- size equal to the previous slab's chunk size times this factor. */
-void slabs_init(const size_t limit, const double factor);
+ size equal to the previous slab's chunk size times this factor.
+ 3rd argument specifies if the slab allocator should allocate all memory
+ up front (if true), or allocate memory in chunks as it is needed (if false)
+*/
+void slabs_init(const size_t limit, const double factor, const bool prealloc);
/**