[PATCH] dtrace probes for memory manager
Zdenek Kotala <zdenek.kotala@sun.com>
From: Zdenek Kotala <Zdenek.Kotala@Sun.COM>
To: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2009-11-13T20:58:56Z
Lists: pgsql-hackers
Attachments
- dtrace_mem.patch (text/x-patch) patch
Attached patch contains new dtrace probes for memory management. Main purpose is to analyze memory footprint - for example how many memory needs transaction, peak memory per context, when memory block is reused or when it is allocate by malloc and so on. There are three groups of probes: 1) general memory context operation: mcxt-alloc mcxt-create mcxt-delete mcxt-free mcxt-realloc mcxt-reset 2) AllocSet operations (called from mcxt) aset-alloc aset-delete aset-free aset-realloc aset-reset 3) AllocSet Block operations. aset-block-free aset-block-new aset-block-realloc aset-block-reset Zdenek