Skip to content

Linux tools for monitoring processes written in bash, python, R, html and javascript

License

Notifications You must be signed in to change notification settings

jschaub30/pid_monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pid_monitor

Profile your workload and share the results in data-rich, interactive charts

Version 1.01

#Requires

  • Linux
  • dstat
  • python
  • (Optional) Some of the advanced monitors (like GPU) use R scripts to parse output data

Start here:

This repository also makes use of:

  • Dygraphs for javascript charts (included).
  • c3.js for javascript charts (included).
  • jquery-csv for csv parsing (included).
  • GNU-time /usr/bin/time

#Try it out

sudo apt-get install -y dstat time
git clone https://github.com/jschaub30/pid_monitor
cd pid_monitor/
cp example.sh your_workload.sh
[ Edit your_workload.sh ]
./your_workload.sh
./pid_webserver.sh
[ (Optional) copy the run directory to your web server ]

When run, these examples will create the following directories:

  • ./rundir/[WORKLOAD-NAME]/[DATETIME]/data/raw # All config and raw data files end up here
  • ./rundir/[WORKLOAD-NAME]/[DATETIME]/scripts # Measurement and analysis scripts
  • ./rundir/[WORKLOAD-NAME]/[DATETIME]/html # For interactive charts

To permanently share all the measurements on your server, you need to enable a web server. On Ubuntu, this is as simple as

sudo apt-get install apache2
cd /var/www/html
sudo ln -sf [location of rundir in pid_monitor directory]

Optional: for GPU profiling, install R and packages

sudo apt-get install r-base  # ubuntu
sudo yum install R-devel     # redhat

Launch R

sudo R

In the r-shell, run the following commands

install.packages('ggplot2')
install.packages('reshape2')
install.packages('dplyr')

About

Linux tools for monitoring processes written in bash, python, R, html and javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published