#1 12.02.09 14:48
почему система не видет оперативную память?
Есть сервер. Поставил на него 2 планки памяти по 2 гига (итог 4 гига). В биосе обе планки определились, все нормально (показывает 4 гига).
Загрузился в систему.
В итоге.
cat /proc/meminfo
MemTotal: 3211780 kB
MemFree: 25828 kB
Buffers: 137996 kB
Cached: 2144540 kB
SwapCached: 10932 kB
Active: 2311552 kB
Inactive: 711424 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 3211780 kB
LowFree: 25828 kB
SwapTotal: 4200988 kB
SwapFree: 3938276 kB
Dirty: 24 kB
Writeback: 0 kB
AnonPages: 735852 kB
Mapped: 1042224 kB
Slab: 78892 kB
PageTables: 59036 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 5806876 kB
Committed_AS: 3976148 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 3072 kB
VmallocChunk: 34359734771 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB
Где еще один гиг потерялся?
Дополнительная инфа
uname -a
2.6.18-8.el5 #1 SMP Thu Mar 15 19:46:53 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
CentOS 5
Исправлено kai (12.02.09 14:51)
Offline
#9 13.03.09 00:08
Re: почему система не видет оперативную память?
kai написал(а):
Grub опрделяет максимально возможный обем памяти (3,2 Гб) для 32-х битной системы и передает эти данные ядру.
Matrim написал(а):
можно посмотреть в биосе, включена ли функция memory remap
kai написал(а):
нашел пречину, почему только 3.2 гига из 4х определяется. Это баг grub 0.97 на x86_64 платформах.
откуда такая инфа?
Offline
#10 14.03.09 09:21
Re: почему система не видет оперативную память?
Description of problem:
Sometimes, grub does not recognize the entire e820 memory map, when the map is
not provided by the BIOS in the multiboot information data structure.
Ultimately, this appears to be an over-optimization by the compiler when
building grub, in combination with buggy BIOS.
The result is that some downstream kernels (in my particular case, the Xen
kernel) does not recognize all the memory available on a system.
Version-Release number of selected component (if applicable):
grub-0.97-13
How reproducible:
From the lack of discussion on the Fedora and Xen mailing lists, I presume this
problem is rare in the real world, and may be hard to reproduce.
The machine this happens on for me is has two Dual-Core AMD Opteron 2210 w/16GB
of memory, using an American Megatrends BIOS. Upon boot on an unpatched grub,
Xen only recognizes slightly less than 4GB. The Multiboot information data
structure has flag for the mem_lower/mem_upper fields set (and Xen memory
detection matches the values in these fields), and does not have the flag for
memory map set.
Comment #1 From Peter Peltonen 2007-08-14 08:56:24 EDT
I encountered the same problem with i386 and x86_64 CentOS5 + xen-enabled
kernels. Only 2,9GB of my 6GB RAM was recognized. Non-xen 64bit and 32bit
PAE-kernels saw the memory correctly. After patching grub with this patch and
reinstalling grub (not just the rpm -- grub has to be reinstalled from grub
prompt) all memory was recognized correctly.
Источник: https://bugzilla.redhat.com/show_bug.cgi?id=250299
Исправлено kai (14.03.09 09:25)
Offline

