public inbox for [email protected]
help / color / mirror / Atom feedFrom: Dave Cramer <[email protected]>
To: Adrian Grucza <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH] Using mimalloc to improve performance and reduce memory allocation lock contention
Date: Mon, 25 Mar 2024 06:59:25 -0400
Message-ID: <CADK3HHLB15KyoC47Z25kXiyYEPD5CwYTNRjmN9xkrfiD1D6Ojw@mail.gmail.com> (raw)
In-Reply-To: <CADF4wWpfy44sx0yTpcWmkvW_j-3-KCZDwaJnSK3H2+C+90DMCw@mail.gmail.com>
References: <CADF4wWpfy44sx0yTpcWmkvW_j-3-KCZDwaJnSK3H2+C+90DMCw@mail.gmail.com>
On Mon, 25 Mar 2024 at 01:42, Adrian Grucza <[email protected]> wrote:
> Hi,
>
> We have a multi-threaded Windows application that was experiencing delays
> due to high lock contention in memory allocations from the PostgreSQL ODBC
> driver. We tried modifying the driver to use mimalloc
> <https://github.com/microsoft/mimalloc;, which is a memory allocator with
> better performance characteristics. After deploying this change, the delays
> due to lock contention disappeared. It has been running on thousands of our
> production deployments for 9 months without issue.
>
> I've created this pull request
> <https://github.com/postgresql-interfaces/psqlodbc/pull/6; so that others
> can benefit from this change by building the driver with the _MIMALLOC_
> symbol defined and linking to the mimalloc library.
>
> In my patch, the usage of mimalloc is off by default, so it should be safe
> to merge. But I'd like to get people's thoughts on whether it should be
> enabled by default so that people can benefit from this change without
> having to build the driver themselves.
>
Cool,
Thanks, I will have a look
Dave
>
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: [PATCH] Using mimalloc to improve performance and reduce memory allocation lock contention
In-Reply-To: <CADK3HHLB15KyoC47Z25kXiyYEPD5CwYTNRjmN9xkrfiD1D6Ojw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox