From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-148158-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 7A79B1381F3
	for <garchives@archives.gentoo.org>; Fri, 14 Jun 2013 06:21:32 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 5A8F8E09E5;
	Fri, 14 Jun 2013 06:21:17 +0000 (UTC)
Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 18B6CE0967
	for <gentoo-user@lists.gentoo.org>; Fri, 14 Jun 2013 06:21:15 +0000 (UTC)
Received: by mail-we0-f179.google.com with SMTP id w59so126671wes.24
        for <gentoo-user@lists.gentoo.org>; Thu, 13 Jun 2013 23:21:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=WS07emt5UHA9n+uAELiRILX9MUczkP4t8A8B0gIXsPY=;
        b=CJ8CcO3AW4Q/aV1j3+Zy/DPxNmTOHAQYZH3s1F5XH3zoedK/u3VfenKeWOjJZQvK0R
         MkbGzC31KhU/nhVPCQze/BcuHcQISSWHCG0QmKR2F0B+9ZfXPZKnA8xCXbXfbP2lkyn2
         PN2o/5Jk1F/44jV3qYujhglssOT6KcTagudjX/iONx94MGFpwo7Vafg/aXsLdIekCwN2
         JvkEU+BUpuMeY7AgWNlwr6XPvQJdBf92bKj1Y6HKoWEyxGdWo7qObLBz97J9pdnNcjLH
         q5jZNBnxitzxuiLbAOnX0SUBf96rednn40QBwpl56zBwrwGxRZnQ1V6MDYOD+mrLN5kU
         GX9g==
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
X-Received: by 10.180.184.2 with SMTP id eq2mr443226wic.50.1371190874500; Thu,
 13 Jun 2013 23:21:14 -0700 (PDT)
Received: by 10.194.135.242 with HTTP; Thu, 13 Jun 2013 23:21:14 -0700 (PDT)
In-Reply-To: <20130613122435.GR3387@server>
References: <CAN0CFw3BNeK_9=6y-5GLM5Ct89z5X4AwAf7Od8Xv9Y-HW97z+g@mail.gmail.com>
	<20130613122435.GR3387@server>
Date: Thu, 13 Jun 2013 23:21:14 -0700
Message-ID: <CAN0CFw3QZ-ukw+MauBR+YE35E=Q2BOBmcFAEFV+gR8eHq_1WEQ@mail.gmail.com>
Subject: Re: [gentoo-user] managing RAM usage
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=ISO-8859-1
X-Archives-Salt: cb3bc5c1-88b2-4ef8-a048-4a2334afd635
X-Archives-Hash: cbad28e72d4fa356d839e4f87283a2f5

>> I'm trying to maximize the number of servers I can run on my machine
>> without running out of physical RAM.  I noticed something strange when
>> comparing top and free statistics:
>>
>> top says each PID associated with a particular server has a RES of
>> about 100M.  Does that mean each running instance of that server
>> reserves 100MB?  Since there are 20 of these servers running, this
>> seems contradictory to the output from free which indicates less than
>> 1GB used -/+ buffers/cache.
>>
>> Is there any way to monitor RAM usage over time to see how close I'm
>> getting to using all of my physical RAM?
>>
>> - Grant
>
> Check out my friend's information here http://koltsoff.com/pub/ures/ and the
> accompanying Meminfo script (linked at bottom of ^ web page).
> --
> Happy Penguin Computers               >')

Thanks for that info.  The answer to this question seems pretty
indefinite.  I'm now logging 'free' to a file once per minute so I can
see how real-world traffic affects overall memory usage.  Still I
would need to see the system with processed forked all the way to
MaxClients to know how close it gets to OOM.

- Grant