Opened 8 years ago

Last modified 8 years ago

#1530 closed enhancement

Support gperftools in rasserver — at Version 1

Reported by: Dimitar Misev Owned by: Dimitar Misev
Priority: major Milestone: 9.4
Component: rasserver Version: development
Keywords: Cc: bbell, Vlad Merticariu
Complexity: Medium

Description (last modified by Dimitar Misev)

gperftools provide CPU and HEAP use/check profilers. It would be good to make them optionally active in rasserver.

To turn on use cmake option -DENABLE_PROFILING=ON

This will link in the tcmalloc and profiler libs, and activate code in source:servercomm/servercomm2.cc that on SELECT / INSERT / UPDATE queries produces the following files (XXXXXX is a random string):

  • /tmp/rasdaman_query_select.XXXXXX.pprof
  • /tmp/rasdaman_query_select.XXXXXX.pprof.000n.heap
  • /tmp/rasdaman_query_insert.XXXXXX.pprof
  • /tmp/rasdaman_query_insert.XXXXXX.pprof.000n.heap
  • /tmp/rasdaman_query_update.XXXXXX.pprof
  • /tmp/rasdaman_query_update.XXXXXX.pprof.000n.heap

.pprof files are CPU profiling results, and .heap are the HEAP memory profiling results. These files can be analyzed with pprof, e.g:

pprof --gv $RMANHOME/bin/rasserver /tmp/rasdaman_query_select.XXXXXX.0022.heap

Change History (1)

comment:1 by Dimitar Misev, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.