pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedSettings for a new machine - some guidance sought.
2+ messages / 2 participants
[nested] [flat]
* Settings for a new machine - some guidance sought.
@ 2021-10-30 16:31 SQL Padawan <sql_padawan@protonmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: SQL Padawan @ 2021-10-30 16:31 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Good afternoon everyone,
I have a new laptop - running version 13.4 - simple binary from EnterpriseDB - no install!
I plan to have a dual-boot machine - Windows 125 GB - have to be able to run Tableau which doesn't have a Linux desktop...
Linux - the rest...
======== Spec =====================
- 8 GB RAM
- 256 GB NVMe disk
- Intel Core i5-1135G7 (11th Gen) Processor
The page here:
https://laptoping.com/cpus/product/intel-core-i5-1135g7/
tells me that this CPU has
Number of Cores Quad-core / 2 computing threads per core
===================================
So, I input these parameters into pgtune.
and received output as follows - I'm not simply dumping the output here and expecting y'all to do all of the work! :-)
I looked up each parameter and what it does - I'm not into aimless button-twiddling!
I looked at:
https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server and the EnterpriseDB white papers:
Configuring and Tuning PostgreSQL and EDB Postgres Advanced Server for Window & Linux
and various other sites.
Windows
max_connections = 100 - not important - not a server - it's a single-user machine.
shared_buffers = 2GB
# Default - 128MB - recommendation is in line with Tuning Your PostgreSQL Server - 25% of RAM
effective_cache_size = 6GB
# Default - 4GB - "aggressive" recommendation - this is fine - I want my server to be as performant as possible - I'm not pushed if my brower is sluggish!
maintenance_work_mem = 512MB
# Default - 64MB - says it's OK to set it higher as only one maintenance operation can be happening at any one time due to locking
checkpoint_completion_target = 0.9
# Default - 0.5 - 0.9 the "useful maximum" - note to self - read up on links on the PostgreSQL tuning page!
wal_buffers = 16MB
# Default - 4MB (512 8kB units) = 16MB "upper limit" (repeat note to self)
default_statistics_target = 100
# Default - 100 - seems OK - "reasonable starting point"
random_page_cost = 1.1
# Default - 4 - 4 is for HDDs - 1.1 is for SSDs? I've seen this written in blogs - reduce from 4 for SSDs because of lower SSD penalty for random I/O
============= Puzzle ====================
work_mem = 2621kB
# Default - 4096kb 4MB - This one puzzles me - according to the PostgreSQL tuning page, it should be biggish - so as to avoid spill to disk.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Settings for a new machine - some guidance sought.
@ 2021-11-01 04:42 Laurenz Albe <laurenz.albe@cybertec.at>
parent: SQL Padawan <sql_padawan@protonmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Laurenz Albe @ 2021-11-01 04:42 UTC (permalink / raw)
To: SQL Padawan <sql_padawan@protonmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
On Sat, 2021-10-30 at 16:31 +0000, SQL Padawan wrote:
> I would be grateful if anyone could comment on the suitability or otherwise of any/some/all of these settings.
>
> Good references/URLs/.pdfs/texts much appreciated.
>
> Please let me know if you require any more information.
Without knowing details of the workload, the number of concurrent queries etc.
you can only guess, like pgtune does.
Yours,
Laurenz Albe
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-11-01 04:42 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30 16:31 Settings for a new machine - some guidance sought. SQL Padawan <sql_padawan@protonmail.com>
2021-11-01 04:42 ` Laurenz Albe <laurenz.albe@cybertec.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox