Generating memory trace from Postgres backend process

From: Muneeb Anwar <muneebanwar(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Generating memory trace from Postgres backend process
Date: 2023-08-15 09:18:29
Message-ID: CAHjT0+4ThHYjKFKXJppCO8hkc8Cn3amTiFOSsmuzFr83BA3kYw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2023-08-15 09:26:55 Re: LLVM 16 (opaque pointers)
Previous Message jian he 2023-08-15 08:58:01 Re: remaining sql/json patches