Generating memory trace from Postgres backend process - Mailing list pgsql-hackers

From Muneeb Anwar
Subject Generating memory trace from Postgres backend process
Date
Msg-id CAHjT0+4ThHYjKFKXJppCO8hkc8Cn3amTiFOSsmuzFr83BA3kYw@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi,
Has anyone tried generating a dynamic memory trace of a backend Postgres process while it's running a query?

I want to characterize the memory access pattern of the Postgres database engine when it's running any given query. The usual way to do this would be to attach a dynamic instrumentation tool like DynamoRIO or Intel Pin to the backend process running the query (?). How could I find the exact backend process to attach to? Also, if there's any prior experience with generating such memory traces, it would be helpful to know what tools were used.

best regards,
Muneeb Khan

pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: remaining sql/json patches
Next
From: Fabien COELHO
Date:
Subject: Re: LLVM 16 (opaque pointers)