|
|
|
|
|
by krallin
3680 days ago
|
|
(Note: the following is only applicable to Linux) The default for overcommitting on Linux is heuristic; it doesn't always succeed: if you try and allocate several exabytes or RAM, allocation will definitely fail (in fact, trying to allocate e.g. 2GB of RAM if you only have 1 free will usually fail just the same). There is an option for "always overcommit" (incidentally; the one Redis recommends you use), in which case allocation will always succeed provided the Kernel can represent what you're trying to allocate (what you're describing), but it's definitely not the default Reference: https://www.kernel.org/doc/Documentation/vm/overcommit-accou... |
|