From: | Saurabh Nanda <saurabhnanda(at)gmail(dot)com> |
---|---|
To: | Justin Pryzby <pryzby(at)telsasoft(dot)com> |
Cc: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, pgsql-performance(at)lists(dot)postgresql(dot)org |
Subject: | Re: Benchmarking: How to identify bottleneck (limiting factor) and achieve "linear scalability"? |
Date: | 2019-01-27 16:38:55 |
Message-ID: | CAPz=2oF+pVeaxG6RmouZ0idQ31ZSLq+8sXNTS2ggoGoHZtwxpg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
> Do you know which of the settings is causing lower TPS ?
> I suggest to check shared_buffers.
>
I'm trying to find this, but it's taking a lot of time in re-running the
benchmarks changing one config setting at a time. Thanks for the tip
related to shared_buffers.
>
> If you haven't done it, disabling THP and KSM can resolve performance
> issues,
> esp. with large RAM like shared_buffers, at least with older kernels.
>
> https://www.postgresql.org/message-id/20170718180152.GE17566%40telsasoft.com
Is this a well-known performance "hack"? Is there any reason why it is not
mentioned at https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
? Are the stability implications of fiddling with THP and KSM well-known?
Also, wrt KSM, my understand was that when a process forks the process'
memory is anyways "copy on write", right? What other kind of pages would
end-up being de-duplicated by ksmd? (Caveat: This is the first time I'm
hearing about KSM and my knowledge is based off a single reading of
https://www.kernel.org/doc/html/latest/admin-guide/mm/ksm.html )
-- Saurabh.
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Janes | 2019-01-27 17:48:12 | Re: Benchmarking: How to identify bottleneck (limiting factor) and achieve "linear scalability"? |
Previous Message | Justin Pryzby | 2019-01-27 16:04:06 | Re: Benchmarking: How to identify bottleneck (limiting factor) and achieve "linear scalability"? |