Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 493982E3173 for ; Tue, 15 Jan 2008 13:05:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 28378-01-5 for ; Tue, 15 Jan 2008 13:05:18 -0400 (AST) Received: from EXCHANGE.wsicorp.com (wsi-135-27.wsi.com [8.8.135.27]) by postgresql.org (Postfix) with ESMTP id 5C5462E329D for ; Tue, 15 Jan 2008 13:05:21 -0400 (AST) Received: from [10.142.113.33] ([10.142.113.33]) by EXCHANGE.wsicorp.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 15 Jan 2008 12:05:20 -0500 Subject: Tuning Postgresql on Windows XP Pro 32 bit [was on HACKERS list] From: Doug Knight To: pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary="=-RQmCxiERleljKPH79LHr" Date: Tue, 15 Jan 2008 12:05:20 -0500 Message-Id: <1200416720.4742.6.camel@arc-dknightlx.wsicorp.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-40.el5) X-OriginalArrivalTime: 15 Jan 2008 17:05:20.0227 (UTC) FILETIME=[CF28EB30:01C85798] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/129 X-Sequence-Number: 28368 --=-RQmCxiERleljKPH79LHr Content-Type: text/plain Content-Transfer-Encoding: 7bit All, I have been asked to move this thread to the performance list. Below is the full discussion to this point. Doug Knight WSI Corp Andover, MA -------- Forwarded Message -------- From: Doug Knight To: munir.usama@gmail.com Cc: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Tuning Postgresql on Windows XP Pro 32 bit Date: Tue, 15 Jan 2008 09:09:16 -0500 We tried reducing the memory footprint of the postgres processes, via shared_buffers (from 30000 on Linux to 3000 on Windows), max_fsm_pages (from 2000250 on Linux to 100000 on Windows), max_fsm_relations (from 20000 on Linux to 5000 on Windows), and max_connections (from 222 on Linux to 100 on Windows). Another variable we played with was effective_cache_size (174000 on Linux, 43700 on Windows). None of these reduced memory usage, or improved performance, significantly. We still see the high page fault rate too. Other things we tried were reducing the number of WAL buffers, and changing the wal_sync_method to opendata_sync, all with minimal effect. I've attached the latest version of our Windows postgresql.conf file. Doug On Mon, 2008-01-07 at 19:49 +0500, Usama Dar wrote: > Doug Knight wrote: > > We are running the binary distribution, version 8.2.5-1, installed on > > Windows XP Pro 32 bit with SP2. We typically run postgres on linux, > > but have a need to run it under windows as well. Our typical admin > > tuning for postgresql.conf doesn't seem to be as applicable for windows. > > > So what have you tuned so far? what are your current postgresql settings > that you have modified? What are your system specs for Hardware, RAM , > CPU etc? > > > On Sun, 2008-01-06 at 18:23 +0500, Usama Dar wrote: > > > > On Jan 3, 2008 8:57 PM, Doug Knight wrote: > > All, > Is there a place where I can find information about tuning > postgresql running on a Windows XP Pro 32 bit system? I > installed using the binary installer. I am seeing a high page > fault delta and total page faults for one of the postgresql > processes. Any help would be great. > > > > > Which version of postgres? the process you are seeing this for is a > user process? > > > > -- > Usama Munir Dar http://www.linkedin.com/in/usamadar > Consultant Architect > Cell:+92 321 5020666 > Skype: usamadar --=-RQmCxiERleljKPH79LHr Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit All,
I have been asked to move this thread to the performance list. Below is the full discussion to this point.

Doug Knight
WSI Corp
Andover, MA

-------- Forwarded Message --------
From: Doug Knight <dknight@wsi.com>
To: munir.usama@gmail.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Tuning Postgresql on Windows XP Pro 32 bit
Date: Tue, 15 Jan 2008 09:09:16 -0500

We tried reducing the memory footprint of the postgres processes, via shared_buffers (from 30000 on Linux to 3000 on Windows), max_fsm_pages (from 2000250 on Linux to 100000 on Windows), max_fsm_relations (from 20000 on Linux to 5000 on Windows), and max_connections (from 222 on Linux to 100 on Windows). Another variable we played with was effective_cache_size  (174000 on Linux, 43700 on Windows). None of these reduced memory usage, or improved performance,  significantly. We still see the high page fault rate too. Other things we tried were reducing the number of WAL buffers, and changing the wal_sync_method to opendata_sync, all with minimal effect. I've attached the latest version of our Windows postgresql.conf file.

Doug



On Mon, 2008-01-07 at 19:49 +0500, Usama Dar wrote:
Doug Knight wrote:
> We are running the binary distribution, version 8.2.5-1, installed on 
> Windows XP Pro 32 bit with SP2. We typically run postgres on linux, 
> but have a need to run it under windows as well. Our typical admin 
> tuning for postgresql.conf doesn't seem to be as applicable for windows.


So what have you tuned so far? what are your current postgresql settings 
that you have modified? What are your system specs for Hardware, RAM , 
CPU etc?


On Sun, 2008-01-06 at 18:23 +0500, Usama Dar wrote:


On Jan 3, 2008 8:57 PM, Doug Knight <dknight@wsi.com> wrote:
All,
Is there a place where I can find information about tuning postgresql running on a Windows XP Pro 32 bit system? I installed using the binary installer. I am seeing a high page fault delta and total page faults for one of the postgresql processes. Any help would be great.



Which version of postgres? the process you are seeing this for is a user process?



--
Usama Munir Dar http://www.linkedin.com/in/usamadar
Consultant Architect
Cell:+92 321 5020666
Skype: usamadar
--=-RQmCxiERleljKPH79LHr--