Get fragmentation distribution of a filesystem, which implements FIEMAP
as an IO system call.
-
GCC
-
CMake
-
R (optional)
$ R --no-save <<< "install.packages(c('argparser', 'tidyverse', 'svglite'))"
$ mkdir build/
$ cd build/
$ cmake build ../
$ make
The aggregator fraggy.agg
only needs a path as a sole parameter. It prints
the CSV directly to standard output. Output redirection on the shell is
required to write into a file.
$ ./fraggy.agg /mnt/filesystem > frag_distribution.csv
To run the analyzer and visualizer a minimum of one CSV from fraggy.agg
is
required. The number of distributions to be compared is not limited. To set
ordinary labels to each file the optional parameter -l | --label
can be used.
They must match the number of given input files.
More information can be found on the program's help page -h | --help
.
$ ./fraggy.anlz \
--prefix "disk1_ext4_" \
--output "./results" \
--input "./frag_distribution1.csv" "./frag_distribution2.csv" \
--label "fragmented" "defragmented"