PostgreSQLv14 source code compiled on GCCv12 with --enable-debug. And Benchmark environment used as HammerDBv4.1 to test OLTP(TPC-C) on PostgreSQL Here to the goal to identity cache misses(L1, L2 and L3 caches)annotate PostgreSQL source code or Methods() on running PostgreSQL bin's
Tired following commands:
- valgrind --tool=cachegrind ./bin/tclsh8.6 ./hammerdbcli auto test_32vu.tcl (not shown PostgreSQL Methods() or calls)
- valgrind --tool=cachegrind --trace-children=yes ./usr/local/postgresqlv14/bin/postgres -D /usr/local/postgres/data
example(excepted:Cachegrind: Why so many cache misses?)
But the above command not help out.And also tired with other tools like perf. Perf also not helped on it : https://developers.redhat.com/blog/2014/03/10/determining-whether-an-application-has-poor-cache-performance-2#amd_
Please let me know the right way to check annotate source code of cache misses in PostgreSQL by using Valgrind or other tools like perf.