Tools for working with container types, command data operations, and concise exception handling
Project description
Monitor Memory
==============
This package creates a command-line utility that will run a command
and also run a daemon monitoring memory use as the command runs. The
daemon uses the `ps` command to check memory use, so this will only
work on `UNIX`-like systems.
I've found this functionality to be particularly useful in batch
processing jobs that run in docker containers, because the output
of `ps aux` isolates only processes running in-container. So by
recording max memory use, you can track how large of containers you
need.
Usage::
pip install monitor_memory
monitor_memory <some command>
All arguments after the command are forwarded to the command, as is standard
input. So, for example, to run an arbitrary bash script you can use a
here-document::
monitor_memory bash << \EOF_
NAME="me"
echo ${NAME}
EOF_
==============
This package creates a command-line utility that will run a command
and also run a daemon monitoring memory use as the command runs. The
daemon uses the `ps` command to check memory use, so this will only
work on `UNIX`-like systems.
I've found this functionality to be particularly useful in batch
processing jobs that run in docker containers, because the output
of `ps aux` isolates only processes running in-container. So by
recording max memory use, you can track how large of containers you
need.
Usage::
pip install monitor_memory
monitor_memory <some command>
All arguments after the command are forwarded to the command, as is standard
input. So, for example, to run an arbitrary bash script you can use a
here-document::
monitor_memory bash << \EOF_
NAME="me"
echo ${NAME}
EOF_
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
monitor_memory-0.0.1.tar.gz
(4.4 kB
view details)
File details
Details for the file monitor_memory-0.0.1.tar.gz
.
File metadata
- Download URL: monitor_memory-0.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a29678721056e21645415450bf8afdb29b0411670b769c1af97eeb1cd56e8a5 |
|
MD5 | ce6fd1436994cedb41d880c8773ae2d2 |
|
BLAKE2b-256 | 27fa9c2d49bc0a88b7e325ee86ad680519fe1f82a364d8575f83d06ad0ba286a |