Merge "Add #!/bin/bash to /etc/rc.local"
This commit is contained in:
commit
d250c1ad2d
@ -7,6 +7,8 @@ set -e
|
|||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
cat > "/etc/rc.local" << _EOF_
|
cat > "/etc/rc.local" << _EOF_
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Make sure to disable Linux kernel feature transparent huge pages,
|
# Make sure to disable Linux kernel feature transparent huge pages,
|
||||||
# it will affect greatly both memory usage and latency in a negative way.
|
# it will affect greatly both memory usage and latency in a negative way.
|
||||||
# See: http://docs.mongodb.org/manual/tutorial/transparent-huge-pages/
|
# See: http://docs.mongodb.org/manual/tutorial/transparent-huge-pages/
|
||||||
|
@ -14,6 +14,8 @@ vm.overcommit_memory=0
|
|||||||
_EOF_
|
_EOF_
|
||||||
|
|
||||||
cat > "/etc/rc.local" << _EOF_
|
cat > "/etc/rc.local" << _EOF_
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# See 'http://www.postgresql.org/docs/9.3/static/kernel-resources.html'
|
# See 'http://www.postgresql.org/docs/9.3/static/kernel-resources.html'
|
||||||
# Disable Linux kernel transparent huge pages. This feature is not supported by
|
# Disable Linux kernel transparent huge pages. This feature is not supported by
|
||||||
# by Postgres 9.3 and may negatively impact performance of the database.
|
# by Postgres 9.3 and may negatively impact performance of the database.
|
||||||
|
@ -17,6 +17,8 @@ vm.nr_hugepages=64
|
|||||||
_EOF_
|
_EOF_
|
||||||
|
|
||||||
cat > "/etc/rc.local" << _EOF_
|
cat > "/etc/rc.local" << _EOF_
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# See 'http://www.postgresql.org/docs/9.4/static/kernel-resources.html'
|
# See 'http://www.postgresql.org/docs/9.4/static/kernel-resources.html'
|
||||||
# Postgres 9.4 added support for THP. Using huge pages reduces overhead when
|
# Postgres 9.4 added support for THP. Using huge pages reduces overhead when
|
||||||
# using large contiguous chunks of memory, like PostgreSQL does.
|
# using large contiguous chunks of memory, like PostgreSQL does.
|
||||||
|
@ -21,6 +21,8 @@ net.core.somaxconn=1024
|
|||||||
_EOF_
|
_EOF_
|
||||||
|
|
||||||
cat > "/etc/rc.local" << _EOF_
|
cat > "/etc/rc.local" << _EOF_
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Make sure to disable Linux kernel feature transparent huge pages,
|
# Make sure to disable Linux kernel feature transparent huge pages,
|
||||||
# it will affect greatly both memory usage and latency in a negative way.
|
# it will affect greatly both memory usage and latency in a negative way.
|
||||||
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
|
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
|
||||||
|
@ -41,6 +41,8 @@ TMPDIR=/tmp JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 make
|
|||||||
cd
|
cd
|
||||||
|
|
||||||
cat > "/etc/rc.local" << _EOF_
|
cat > "/etc/rc.local" << _EOF_
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Vertica requires THP to be turned off
|
# Vertica requires THP to be turned off
|
||||||
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
|
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
|
||||||
echo never > /sys/kernel/mm/transparent_hugepage/defrag
|
echo never > /sys/kernel/mm/transparent_hugepage/defrag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user