Re: Problems with PG 9.3

From: Dhruv Shukla <dhruvshukla82(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: Kevin Grittner <kgrittn(at)ymail(dot)com>, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, "jayknowsunix(at)gmail(dot)com" <jayknowsunix(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Problems with PG 9.3
Date: 2014-08-26 19:44:11
Message-ID: CAFiWeJD=YbDLW86g7FwV2piUNDKEY7PK1Me6Zf12g6QY8Lq0Mw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Here are all the changes

max_connections =1000 -> 200
work_mem =4GB -> 1GB
temp_mem =2GB -> 1GB
shared_buffers =80GB -> 70GB
maintenance_work_mem = 16GB -> 2GB
effective_cache_size =130GB -> 180GB
max_locks_per_transaction =64 -> 128
autovacuum_max_workers = 3 -> 12
checkpoint_segments = 64 -> 256

-Dhruv

On Tue, Aug 26, 2014 at 2:37 PM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
wrote:

> On Tue, Aug 26, 2014 at 1:32 PM, Dhruv Shukla <dhruvshukla82(at)gmail(dot)com>
> wrote:
> > Scott,
> > Thanks for such a valuable information. I will have a look into it and
> have
> > it debugged.
> >
> > But now things have started slowing down really. Some programs have
> started
> > to throw errors like
> >
> > ERROR: DB COPY failed: DBD::Pg::db pg_endcopy
> > failed: ERROR: out of shared memory
> > HINT: You might need to increase max_locks_per_transaction.
> >
> >
> > These were things which were working before with higher memory settings.
> And
> > some are just running slow, slow means literally slow even though they
> are
> > connected via netstat and all.
>
> OK increasing max locks per transaction is pretty safe. What did you
> change shared_mem from and too? Setting it a bit higher isn't terribly
> dangerous, like work_mem x max_conns can be.
>

--
Regards
Dhruv
404-551-2578

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2014-08-26 20:26:09 Re: Problems with PG 9.3
Previous Message Scott Marlowe 2014-08-26 19:37:40 Re: Problems with PG 9.3