Re: Memory usage per memory zone

From: Wu Fengguang
Date: Thu Mar 12 2009 - 07:52:42 EST


On Thu, Mar 12, 2009 at 01:38:46PM +0200, jack marrow wrote:
> > Can you paste the /proc/meminfo after doing 'echo 3 > drop_caches'?
>
> http://pastebin.com/mce24730
>
> >> I thought the kernel dropped caches if a program needs the ram?
> >
> > Sure, but something is unreclaimable... Maybe some process is taking a
> > lot of shared memory(shm)? What's the output of `lsof`?
>
> I can't paste that, but I expect oracle is using it.

Oh well...

But from the meminfo, there are 1.2G mapped pages. That could be a big
trouble for reclaiming. Recent kernels can better handle this situation.

Thanks,
Fengguang
---

# cat /proc/meminfo
MemTotal: 3895404 kB
MemFree: 2472656 kB
Buffers: 412 kB
Cached: 239716 kB
SwapCached: 202652 kB
Active: 1275212 kB
Inactive: 34584 kB
HighTotal: 3014592 kB
HighFree: 1684032 kB
LowTotal: 880812 kB
LowFree: 788624 kB
SwapTotal: 2040212 kB
SwapFree: 1626756 kB
Dirty: 104 kB
Writeback: 0 kB
Mapped: 1247000 kB
Slab: 80040 kB
CommitLimit: 3987912 kB
Committed_AS: 8189040 kB
PageTables: 18792 kB
VmallocTotal: 106488 kB
VmallocUsed: 3072 kB
VmallocChunk: 102980 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
--
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/