mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
12 lines
451 B
C++
12 lines
451 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
/// Returns the size in bytes of physical memory (RAM) available to the process. The value can
|
|
/// be smaller than the total available RAM available to the system due to cgroups settings.
|
|
/// Returns 0 on unsupported platform or if it cannot determine the size of physical memory.
|
|
uint64_t getMemoryAmountOrZero();
|
|
|
|
/// Throws exception if it cannot determine the size of physical memory.
|
|
uint64_t getMemoryAmount();
|