From owner-freebsd-questions Fri Oct 29 6:39:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.criterion.canon.co.uk (mailhost.criterion.canon.co.uk [194.223.249.254]) by hub.freebsd.org (Postfix) with ESMTP id 7E783155AD for ; Fri, 29 Oct 1999 06:39:20 -0700 (PDT) (envelope-from adamn@csl.com) Received: from csl.com (beast.criterion.canon.co.uk [194.223.249.3]) by mailhost.criterion.canon.co.uk (8.8.8/8.7.3) with ESMTP id NAA04919 for ; Fri, 29 Oct 1999 13:28:35 GMT Message-ID: <3819A382.1D798D58@csl.com> Date: Fri, 29 Oct 1999 14:39:14 +0100 From: Adam Shaun Nealis Organization: Criterion Software, Ltd. X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 2.2.8-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions Subject: Q: Efficent way to count up resources used by a process. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I may be missing something obvious, but here goes: I'm trying to find out a way to count up the amount of RAM in use in the system at a given time by given processes. Specifically, I'm trying to tune a dedicated web server/MySQL box so I can have as many apache proceses as is "comfortably" possible. The meaning of comfortable is to be determined. I looked at ps, but the only attribute I could find is pmem, which gives only a percentage. And those numbers were like 0.1, or .0. or 0.2, which isn't accurate enough. I also looked at top, but it only gives a pageful at a time, even if I do top -b. I tried a cheat like stty rows=200; top -b but no dice, and that doesn't seem very elegant to me. There have to be techniques and/or utilities in the ports collection, but I haven't come across anything. Cheers, Adam. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message