From: | Brian McCane <bmccane(at)mccons(dot)net> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: performance issues |
Date: | 2001-06-16 20:51:29 |
Message-ID: | Pine.BSF.3.96.1010616154901.85663A-100000@fw.mccons.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-sql |
On Thu, 14 Jun 2001, Bruce Momjian wrote:
> > 2. If you are on a platform where the kernel thinks it can swap out
> > parts of shared memory (which is most platforms, these days), it's
> > counterproductive to make your shared mem large enough that it's not
> > all being used heavily. If the kernel decides to swap out some buffer
> > space, you have a net loss in performance, because you just wasted
> > disk I/O (especially if the page in the buffer is dirty --- it'll
> > eventually have to be read in again, then written out again, to no
> > purpose).
>
> FYI, FreeBSD had the ability to disable shared memory swapping with a
> sysctl setting, while BSD/OS does not swap out shared memory.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
I was going to mention this but had to get to my database machine to find
it first. The command is:
sysctl -w kern.ipc.shm_use_phys=1
This is supposed to make shared memory use physical memory, but I don't
think it is a an absolute rule. If you use too much memory, it will still
swap I believe.
- brian
From | Date | Subject | |
---|---|---|---|
Next Message | W. van den Akker | 2001-06-17 12:51:34 | Re: User rights |
Previous Message | Felipe Carasso | 2001-06-16 17:35:47 | Full backup |
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2001-06-16 22:23:23 | Re: not null - trivial, unexpected behavior |
Previous Message | Tom Lane | 2001-06-16 16:54:53 | Re: [HACKERS] Postgres |