Opened 6 months ago

Closed 6 months ago

#1530 closed enhancement (fixed)

Support gperftools in rasserver

Reported by: dmisev Owned by: dmisev
Priority: major Milestone: 9.4
Component: rasserver Version: development
Keywords: Cc: bbell, vmerticariu
Complexity: Medium

Description (last modified by dmisev)

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/ 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 (2)

comment:1 Changed 6 months ago by dmisev

  • Description modified (diff)

comment:2 Changed 6 months ago by dmisev

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.