Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 1999 14:39:14 +0100
From:      Adam Shaun Nealis <adamn@csl.com>
To:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Q: Efficent way to count up resources used by a process.
Message-ID:  <3819A382.1D798D58@csl.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3819A382.1D798D58>