2
* Copyright 2011 (c) 10gen Inc.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Affero General Public License, version 3,
6
* as published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Affero General Public License for more details.
13
* You should have received a copy of the GNU Affero General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
26
Get the amount of physical memory available on the host.
28
This should only be used for "advisory" purposes, and not as a hard
29
value, because this could be deceptive on virtual hosts, and because
30
this will return zero on platforms that do not support it.
32
@returns amount of physical memory, or zero
34
static size_t getPhysicalRam();
37
// don't instantiate this class
38
SystemInfo(); // no implementation
2
* Copyright 2011 (c) 10gen Inc.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Affero General Public License, version 3,
6
* as published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Affero General Public License for more details.
13
* You should have received a copy of the GNU Affero General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
26
Get the amount of physical memory available on the host.
28
This should only be used for "advisory" purposes, and not as a hard
29
value, because this could be deceptive on virtual hosts, and because
30
this will return zero on platforms that do not support it.
32
@returns amount of physical memory, or zero
34
static size_t getPhysicalRam();
37
// don't instantiate this class
38
SystemInfo(); // no implementation