Strange memory usage with Opteron/NUMA
From: Russell Garrett
Date: Thu Nov 17 2005 - 11:42:21 EST
We have several dual-Opteron/8GB RAM systems, all of which run an
application (MySQL) which allocates a fixed block of 6.5GB of RAM,
and looking at ps confirms this. However, when running the kernel
(2.6.14.2) with the K8_NUMA option enabled, 2GB of swap is used (on
top of the 6.5GB of physical memory), although the process only
claims to be using 6.5GB in total. Additionally, the kernel is
definitely swapping this imaginary memory in and out.
Switching the K8_NUMA option off eliminates this.
Here is an example ps line:
mysql 2395 3.5 85.1 7296648 6921696 ? S Nov15 101:03 /usr/
local/mysql/bin/mysqld --basedir=/usr/local/mysql --datad
And the associated /proc/meminfo contents:
MemTotal: 8126276 kB
MemFree: 27664 kB
Buffers: 3644 kB
Cached: 1042952 kB
SwapCached: 2681912 kB
Active: 6938484 kB
Inactive: 1051096 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 8126276 kB
LowFree: 27664 kB
SwapTotal: 5831552 kB
SwapFree: 2915596 kB
Dirty: 896 kB
Writeback: 664 kB
Mapped: 6929904 kB
Slab: 80720 kB
CommitLimit: 9894688 kB
Committed_AS: 7352452 kB
PageTables: 14592 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 3312 kB
VmallocChunk: 34359734971 kB
Thanks in advance,
Russ Garrett
russ@xxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/