Skip to content

Memprof/parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memprof Parser

The Memprof Parser. Used to analyse data collected by the module and by the library.

WARNING: In order to compile the parser, you MUST have a copy of the Memprof Kernel module in ../module and a copy of the Memprof Library in ../library.

Usage: (To get the scripts, the module and the library referenced in the following code, see https://github.com/Memprof.)

../scripts/profile_app.sh <app>

or 

sudo insmod ../module/memprof.ko 
rm /tmp/data.*
echo b > /proc/memprof_cntl 
LD_PRELOAD=../library/ldlib.so <app> 
echo e > /proc/memprof_cntl 
cat /proc/memprof_ibs > ibs.raw 
cat /proc/memprof_perf > perf.raw 
../library/merge /tmp/data.* 
./parse ibs.raw --data data.processed.raw --perf perf.raw [options, e.g. -M] 

Options

The most important options are:

--top-fun: outputs a list of functions, sorted by the number of memory accesses they have performed 
--top-obj: ouputs the list of objects accessed in memory 
--obj <id>: outputs the memory accesses pattern to the object <id>. <id> can be found using the --top-obj option (it is the first number on each line of the output)
--top-mmap: outputs the list of most accessed mmaps/files (--top-obj is more precise because it splits mmaps into objects)

Note: the parser API has changed since the publication of "MemProf: a Memory Profiler for NUMA Multicore Systems". We now use a much simpler API based on 2 functions: get_object(sample) and get_function(sample) that return respectively the accessed object and the function performing the access. You can also use sample_to_mmap(s) to get the mmap of an object.

About

Memprof parser. Used to analyse output gathered by the module and by the library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages