Re: PostgreSQL and Linux CPU's - Mailing list pgsql-performance

From David G. Johnston
Subject Re: PostgreSQL and Linux CPU's
Date
Msg-id CAKFQuwbha9gpUAA+3aW=TC5AKsdX+xVFFVit29sKx4xQvrGK0A@mail.gmail.com
Whole thread Raw
In response to PostgreSQL and Linux CPU's  (Sbob <sbob@quadratum-braccas.com>)
List pgsql-performance
On Thu, Jan 20, 2022 at 4:22 PM Sbob <sbob@quadratum-braccas.com> wrote:
I am looking for information on how PostgreSQL leverages or interfaces
with CPU's on Linux. Does PostgreSQL let Linux do the work? Does it
bypass the OS? Any information or docs you can send my way would be much
appreciated.


PostgreSQL is a user land process in Linux.  Linux doesn't allow itself to be bypassed by user land processes when dealing with the CPU.  That is kind of its main reason for existing...

PostgreSQL uses a process forking model and each process runs on a single thread.

You can probably verify all of that by perusing the PostgreSQL documentation.  Don't know what to recommend regarding Linxu, user land, kernel mode, and CPUs...

David J.

pgsql-performance by date:

Previous
From: Sbob
Date:
Subject: PostgreSQL and Linux CPU's
Next
From: Michael Lewis
Date:
Subject: Re: Slow query fixed by replacing equality with a nested query