Skip to content

liewegas/Clinic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clinicceph

Repo for Ceph Clinic 2014, created by combining two separate clinic repos. Pardon .gitignore and git history oddness.

cephntp.py

This file contains a script that creates configuration files for clknetsim simulations and then runs the simulation. There are a number of different possible configurations, including configurations that draw from real latency data and ones that run multiple simulations while varying certain parameters. Details for how to run the file and how to configure the simulations are specified in the file comments.

clinicsimplots.py

This file contains a number of functions that analyze output from the clknetsim simulations and produces plots and statistics about that data. It requires data from: 1) log.timeoffset 2) log.ntp_offset 3) log.ntp_maxerror 4) log.packetdelays which are all created by clknetsim. The filepaths need to be specified in the file, using the global filename variables. The plots are saved in the directory that contains clinicsimplots.py. The plots and stats that are generated are specified in the function comments.

diagnostics.py

This file contains a script to plot diagnostics information from cluster data. Usage of this file is as follows:

python diagnostics.py -i <inputfile> [-f | -t]

Where the input is a JSON file, the -f command is for use with freqOffset JSON files, and -t is for use with timestamps JSON files for plotting latency values.

This file also outputs 6 files, scatterplots for each type of node (burnupi, mira, and plana), and histograms for each type. The types of nodes can be changed within the file.

cleanJson.py

This file contains a script to clean invalid lines from JSON files containing cluster data for either freqOffset or timestamp information. Usage is as follows:

python cleanJson.py -i inputFile.json -o outputFile.json [-f | -t]

where the inputFile.json is the JSON file to be cleaned, outputFile.json is the name of the newly created cleaned JSON file, -f command is for use with freqOffset JSON files and -t is for use with timestamps JSON files. This also makes a file of the invalid lines in badlines.txt (this name can be changed within the file).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published