forked from FeatureBaseDB/featurebase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
define map size separately for 32 and 64 bit systems
- Loading branch information
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package pilosa | ||
|
||
// DefaultMapSize is the default size of mapped memory for the translate store. | ||
// It is passed as an int to syscall.Mmap and so must be < 2^31 | ||
const DefaultMapSize = (1 << 31) - 1 // 2GB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// +build !386 | ||
|
||
package pilosa | ||
|
||
// DefaultMapSize is the default size of mapped memory for the translate store. | ||
// It is passed as an int to syscall.Mmap and so can only be larger than 2^31 on | ||
// 64bit systems. | ||
const DefaultMapSize = 10 * (1 << 30) // 10GB |