Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning on vm.overcommit #74

Open
DharveshAtish opened this issue Jun 22, 2020 · 0 comments
Open

Warning on vm.overcommit #74

DharveshAtish opened this issue Jun 22, 2020 · 0 comments

Comments

@DharveshAtish
Copy link

the script postgresqltuner.pl suggestion about vm.overcommit_ratio is inexact.
example of line warning about vm.overcommit_ratio :
[BAD] vm.overcommit_ratio is too low, you will not be able to use more than (50/100)*RAM+SWAP for applications

/proc/sys/vm/overcommit_memory in my env at that time is set to 0 , and this setting is only used when overcommit_memory = 2.

2: The Linux kernel will not overcommit memory, and only allocate as much memory as defined in overcommit_ratio.

Expected Behavior

Current Behavior

Possible Solution

check /proc/sys/vm/overcommit_memory if set to 2 before throwing warning about vm.overcommit_ratio is too low or high.

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • PostgreSQL version: 9.3.5
  • Operating System and version: CentOS release 6.10 Kernel 2.6.32-754.25.1.el6.x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant