Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
bd29cb0e
Commit
bd29cb0e
authored
24 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Update bsdi faq.
parent
3fe3acb8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/FAQ_BSDI
+22
-10
22 additions, 10 deletions
doc/FAQ_BSDI
with
22 additions
and
10 deletions
doc/FAQ_BSDI
+
22
−
10
View file @
bd29cb0e
This outlines how to increase the number of shared memory buffers
This outlines modifications to BSD/OS for running PostgreSQL:
supported by BSD/OS. By default, only 4MB of shared memory is supported
by BSDI.
Keep in mind that shared memory is not pageable. It is locked in RAM.
1) How to increase resource limits
2) How to increase the number of shared memory buffers
Bruce Momjian (pgman@candle.pha.pa.us)
Bruce Momjian (pgman@candle.pha.pa.us)
2000-06-09
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Increase SHMMAXPGS by 1024 for every additional 4MB of shared
1) To increase the amount of malloc'ed memory and files opened by
memory:
PostgreSQL, add this:
:datasize-cur=600M:\
:openfiles-cur=256:
to your /etc/login.conf file.
---------------------------------------------------------------------------
2a) By default, only 4MB of shared memory is supported by BSDI. Keep in
mind that shared memory is not pageable. It is locked in RAM.
To increase the number of buffers supported by the postmaseter, increase
SHMMAXPGS by 1024 for every additional 4MB of shared memory:
/sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages...
/sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages...
The default setting of 1024 is for a maximum of 4MB of shared memory.
The default setting of 1024 is for a maximum of 4MB of shared memory.
For those running 4.1 or later, just recompile the kernel and reboot.
For those running 4.1 or later, just recompile the kernel and reboot.
For those running earlier releases,
there are more steps outlined below
.
For those running earlier releases,
see step 2b
.
---------------------------------------------------------------------------
---------------------------------------------------------------------------
U
se bpatch to find the sysptsize value for
the current kernel.
2b) For 4.01 and earlier, u
se bpatch to find the sysptsize value for
This is computed dynamically at bootup.
the current kernel.
This is computed dynamically at bootup.
$ bpatch -r sysptsize
$ bpatch -r sysptsize
0x9 = 9
0x9 = 9
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment