From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id D05A26B003D for ; Wed, 11 Mar 2009 08:16:40 -0400 (EDT) Received: by bwz18 with SMTP id 18so1910316bwz.38 for ; Wed, 11 Mar 2009 05:16:38 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20090311121123.GA7656@localhost> References: <20090311114353.GA759@localhost> <20090311121123.GA7656@localhost> Date: Wed, 11 Mar 2009 13:16:38 +0100 Message-ID: Subject: Re: Memory usage per memory zone From: jack marrow Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org To: Wu Fengguang Cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" List-ID: 2009/3/11 Wu Fengguang : > On Wed, Mar 11, 2009 at 01:51:32PM +0200, jack marrow wrote: >> 2009/3/11 Wu Fengguang : >> > Hi jack, >> > >> > On Wed, Mar 11, 2009 at 11:41:43AM +0100, jack marrow wrote: >> >> Hello, >> >> >> >> I have a box where the oom-killer is killing processes due to running >> >> out of memory in zone_normal. I can see using slabtop that the inode >> > >> > How do you know that the memory pressure on zone normal stand out alon= e? >> >> For the normal zone only, I see "all_unreclaimable: yes" and 3 megs of f= ree ram: >> >> kernel: Normal free:2576kB min:3728kB low:7456kB high:11184kB >> active:1304kB inactive:128kB present:901120kB pages_scanned:168951 >> all_unreclaimable? yes > > It's normal behavior. =A0Linux kernel tries hard to utilize most of > the free memory for caching files :) With all_unreclaimable =3D yes is normal? > >> >> caches are using up lots of memory and guess this is the problem, so >> >> have cleared them using an echo to drop_caches. >> > >> > It would better be backed by concrete numbers... >> > >> >> >> >> I would quite like to not guess though - is it possible to use slabto= p >> >> (or any other way) to view ram usage per zone so I can pick out the >> >> culprit? >> > >> > /proc/zoneinfo and /proc/vmstat do have some per-zone numbers. >> > Some of them deal with slabs. >> >> Thanks, I'll read up on how to interpret these. >> >> Do you recommend these two files for tracking down memory usage per >> process per zone? > > No, the two interfaces provide system wide counters. =A0We have the well > known tools "ps" and "top" for per-process numbers, hehe. ps and top do not have per-zone numbers. How do I get those? > > Thanks, > Fengguang -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org