Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 11:09:14 -0400
From:      Vivek Khera <khera@kcilink.com>
To:        Curt Sampson <cjs@cynic.net>
Cc:        stable@freebsd.org, <pgsql-general@postgresql.org>
Subject:   Re: [GENERAL] was there a change in FreeBSD SHM implementation from 4.4 to 4.6? (postgres trouble)
Message-ID:  <15661.40858.819829.49331@onceler.kciLink.com>
In-Reply-To: <Pine.NEB.4.44.0207111221000.436-100000@angelic.cynic.net>
References:  <15660.31149.224797.969563@onceler.kciLink.com> <Pine.NEB.4.44.0207111221000.436-100000@angelic.cynic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "CS" == Curt Sampson <cjs@cynic.net> writes:

>> For those familiar with postgres, I was using shared_buffers=100000
>> with 4.4, but had to back that down to 32000 for 4.6.  This is
>> obviously impacting performance...

CS> Yes, I'm sure your performance improved. By going from 780 MB to
CS> 25 MB of shared memory, you just increased the amount of data the
CS> OS can buffer from about 1.1 GB to 1.8 GB. You've just increased
CS> your cache size by about 60%.

Actually performance went down.  Way down.  I disagree with your
argument that increasing the cache will help, since the cache is not
needed if you don't pushd out your SHM pages in the first place and
need to reload them quickly.

What it turned out to be was that SHMMAX was larger than my SHMALL.
Why the kernel let me build it that way without warnings is a hole in
the config system, but not fatal.  Bumping up SHMALL fixed my issue,
and now my performance is back to normal.

Perhaps Postgres could identify the smaller of SHMMAX and SHMALL when
reporting the failure to get the memory, and indicate which one is too
small.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15661.40858.819829.49331>