pmem is a small command line utility for all Linux und Unix operating systems to display
memory information of running processes. To do this, pmem reads the memory information
that are provided by the /proc file systems. Therefore, pmem does not work on operating
systems that do not maintain this files system.
Download
To download the latest version click on the link here:
pmem-1.1.2.tar.gz (2006/07/23)
To install pmem just untar the source package and run make. This will create the binary
pmem-1.1.2. Run configure, make and finally make install to install the binary in
/urs/local. You can also set another installation directory by calling configure with the
option --prefix=/foo/bar.
Summary of the installation process:
1. tar xzf pmem-version.tar.gz
2. cd pmem-version
3. ./configure [--prefix=...]
3. make
4. make install
Usage of pmem 1.1.2:
pmem must be called with one or more process ids of the processes for which the memory
usage should be display. By default pmem displays the resident memory of the process
in bytes. But the behaviour of pmem can be influenced by the following arguments:
| -z | displays the size |
| -s | displays the shared memory |
| -k | displays the memory usage in kilobytes |
| -m | displays the memory usage in megabytes |
| -d | displays all memory information available |
| -l | log memory usage of given pids |
| -i <n> | log interval in milliseconds [default: 100] |
| -g <f> | write a gnuplot command file into plot.gnu |
| -h | displays the help |
| -v | displays the version |
On success pmem returns with the exit code 0, otherwise 1.
Example: To log the memory usage of a process and create a gnuplot file out of the data:
./pmem -l pids -i 100 -g data >data
gnuplot plot.gnu (creates the graph plot.ps)
For further information, bug reports or feature requests you should send an email to
the author Daniel Etzold at
detzold at gmx dot de.
Heuschnupfen, Allergie, Pollenallergie
Handy, Elektrosmog, Gefahren
Plagiarism search engine, search documents
|