[Techtalk] Help with memory units in top (or other ways to monitor per process system resource consumption)

Wim De Smet kromagg at gmail.com
Sat Jun 13 11:25:49 UTC 2015

With perf you can really drill down into what it's doing (by reading cpu
cycle counters etc, also attaching kernel tracepoints... It's a bit
cumbersome to use, but really powerful.

This links to some good tutorials:


On Fri, Jun 12, 2015 at 10:05 AM Camilla <camillamon at gmail.com> wrote:

> Hi chixxorrs!
> I am running some data analysis processes on a Linux and I need to monitor
> the system resources that these processes consume.
> I am piping batched outputs from top with a 10s delay into a file and then
> checking that. My problem is that top displays the memory in the VIRT
> column in what I assume is megabytes.
> Is there any way to make top toggle the units (ie make it display the mem
> in bytes)? A look in the man pages suggested the -M option flag, but
> unfortunately that only toggles the units in the memory stats in the top
> header.
> Googling has not returned anything productive.
> The nix flavour of the day is Amazon Linux.
> In short:
> 1. Can I change the memory units in top?
> 2. What other ways could I monitor the resource usage of a particular
> process?
> (Prefer shell tools.)
> Kind regards,
> Camilla
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk

More information about the Techtalk mailing list