Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 10 Jul 2002 19:59:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 10 Jul 2002 19:59:17 -0400 Received: from garrincha.netbank.com.br ([200.203.199.88]:51469 "HELO garrincha.netbank.com.br") by vger.kernel.org with SMTP id ; Wed, 10 Jul 2002 19:59:16 -0400 Date: Wed, 10 Jul 2002 21:01:51 -0300 (BRT) From: Rik van Riel X-X-Sender: riel@imladris.surriel.com To: Karthikeyan Nathillvar cc: linux-kernel@vger.kernel.org Subject: Re: Process Memory Usage In-Reply-To: Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 823 Lines: 24 On Wed, 10 Jul 2002, Karthikeyan Nathillvar wrote: > 2) I tried to read from /proc//statm file. But, the process memory > usage seems to be always in an increasing trend, even though lot of > freeing is going on inside. All the values, size, resident, are always > increasing. Remember that when you call free() glibc may decide to just keep the memory for itself and not give it back to the OS, so the memory is still in use by the process... regards, Rik -- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/