Skip to content

issues #99: We shouldn't start sysctl if vm.max_map_count is correct#106

Merged
spujadas merged 1 commit intospujadas:masterfrom
MikhailZhukov:master
Jan 19, 2017
Merged

issues #99: We shouldn't start sysctl if vm.max_map_count is correct#106
spujadas merged 1 commit intospujadas:masterfrom
MikhailZhukov:master

Conversation

@MikhailZhukov
Copy link
Copy Markdown
Contributor

I have this trouble too with latest version. I made patch for it. It work for me

@spujadas spujadas merged commit ad0ff73 into spujadas:master Jan 19, 2017
@spujadas
Copy link
Copy Markdown
Owner

Great, tested and working, thanks very much!

@ChuckCottrill
Copy link
Copy Markdown

example,
CURRENT_MAX_MAP_COUNT=sysctl vm.max_map_count | cut -d'=' -f2;
if [ -n "$MAX_MAP_COUNT" -a -f /proc/sys/vm/max_map_count ]; then
if [ $MAX_MAP_COUNT -gt $CURRENT_MAX_MAP_COUNT ]; then
sysctl -q -w vm.max_map_count=$MAX_MAP_COUNT
fi
fi

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

Successfully merging this pull request may close these issues.

3 participants