From: | Matthew Rice <matt(at)starnix(dot)com> |
---|---|
To: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
Cc: | gbittar(at)iqa(dot)cc, pgsql-general(at)postgresql(dot)org |
Subject: | Re: shared memory settings: SHMMAX and SHMALL |
Date: | 2001-03-15 12:53:17 |
Message-ID: | lv8zm7w5vm.fsf@sol.starnix.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> > If I have 512MB of memory in my system, excluding swap
> > space,
> > what values do I want to set for SHMMAX and SHMALL?
>
> That depeneds on your kernel implemetaion and hardware. I found
> followings in /usr/include/asm/shmparam.h on my Linux box.
>
> here PAGE_SIZE == 4096. So I guess we cannot have more than 128MB for
> the shared memory on this platform if above comment is correct.
You can recompile the kernel with the new defaults or just change them on
a live system (kernel 2.2.x or higher) with something like:
echo 419430400 >/proc/sys/kernel/shmall
echo 419430400 >/proc/sys/kernel/shmmax
You pick the numbers, of course.
--
matthew rice <matt(at)starnix(dot)com> starnix inc.
tollfree: 1-87-pro-linux thornhill, ontario, canada
http://www.starnix.com professional linux services & products
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Sawtell | 2001-03-15 13:21:14 | Minor disaster after upgrading with cvs. |
Previous Message | Russell Hires | 2001-03-15 12:50:03 | Re: Re: Prompt question |