blob: 1a715d40008342de3ba7b482e9d99330366f6d61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* mem.h
*
* Copyright (C) 2010
* Red Hat, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MEM_H_
#define _MEM_H_
#if defined(__powerpc64__) || defined(__sparc__)
#define MIN_RAM 1024*1024 // 1 GB
#define GUI_INSTALL_EXTRA_RAM 512*1024 // 512 MB
#else
#define MIN_RAM 256 * 1024 // 256 MB
#define GUI_INSTALL_EXTRA_RAM 128 * 1024 // 128 MB
#endif
#define URL_INSTALL_EXTRA_RAM 128 * 1024 // 128 MB
#define MIN_GUI_RAM MIN_RAM + GUI_INSTALL_EXTRA_RAM
#define EARLY_SWAP_RAM 512 * 1024 // 512 MB
int totalMemory(void);
#endif /* _MEM_H_ */
|