{"id":1035,"date":"2019-01-04T16:37:46","date_gmt":"2019-01-04T09:37:46","guid":{"rendered":"https:\/\/www.whplus.com\/blog\/?p=1035"},"modified":"2019-01-21T06:34:38","modified_gmt":"2019-01-20T23:34:38","slug":"tuning-sysctl-conf-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html","title":{"rendered":"Tuning sysctl.conf on CentOS 7"},"content":{"rendered":"\n<p><code>Sysctl<\/code>\u00a0lets the user fine tune the kernel without having to rebuild the kernel. It also will apply the changes immediately, thus the server won&#8217;t have to be rebooted for changes to take effect. To make the changes permanent, you will have to add these values to a configuration file. Use the configuration file CentOS provides by default,\u00a0<code>\/etc\/sysctl.conf<\/code>.<\/p>\n\n\n\n<p>Open the file with your favorite editor.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># sysctl settings are defined through files in\n# \/usr\/lib\/sysctl.d\/, \/run\/sysctl.d\/, and \/etc\/sysctl.d\/.\n#\n# Vendors settings live in \/usr\/lib\/sysctl.d\/.\n# To override a whole file, create a new file with the same in\n# \/etc\/sysctl.d\/ and put new settings there. To override\n# only specific settings, add a file with a lexically later\n# name in \/etc\/sysctl.d\/ and put new settings there.\n#\n# For more information, see sysctl.conf(5) and sysctl.d(5).\n\n# Minimizing the amount of swapping\nvm.swappiness = 20\nvm.dirty_ratio = 80\nvm.dirty_background_ratio = 5\n\n# Increases the size of file handles and inode cache &amp; restricts core dumps\nfs.file-max = 2097152\nfs.suid_dumpable = 0\n\n# Change the amount of incoming connections and incoming connections backlog\nnet.core.somaxconn = 65535\nnet.core.netdev_max_backlog = 262144\n\n# Increase the maximum amount of memory buffers\nnet.core.optmem_max = 25165824\n\n# Increase the default and maximum send\/receive buffers\nnet.core.rmem_default = 31457280\nnet.core.rmem_max = 67108864\nnet.core.wmem_default = 31457280\nnet.core.wmen_max = 67108864\n\n# Enable TCP SYN cookie protection\nnet.ipv4.tcp_syncookies = 1\n\n# Enable IP spoofing protection\nnet.ipv4.conf.all.rp_filter = 1\n\n# Enable ignoring to ICMP requests and broadcasts request\nnet.ipv4.icmp_echo_ignore_all = 1\nnet.ipv4.icmp_echo_ignore_broadcasts = 1\n\n# Enable logging of spoofed packets, source routed packets and redirect packets\nnet.ipv4.conf.all.log_martians = 1\n\n# Disable IP source routing\nnet.ipv4.conf.all.accept_source_route = 0\n\n# Disable ICMP redirect acceptance\nnet.ipv4.conf.all.accept_redirects = 0<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sysctl\u00a0lets the user fine tune the kernel without having to rebuild the kernel. It also will apply the changes immediately, thus the server won&#8217;t have to be rebooted for changes to take effect. To make the changes permanent, you will have to add these values to a configuration file. Use the configuration file CentOS provides\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-1035","post","type-post","status-publish","format-standard","hentry","category-referensi"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Sysctl lets the user fine tune the kernel without having to rebuild the kernel. It also will apply the changes immediately, thus the server won&#039;t have to be rebooted for changes to take effect. To make the changes permanent, you will have to add these values to a configuration file. Use the configuration file CentOS provides\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"whplus\"\/>\n\t<meta name=\"google-site-verification\" content=\"F5J0SGlaGQ2pp3SIm58KggrITtNTptKPB73P9hpRpfY\" \/>\n\t<meta name=\"keywords\" content=\"referensi\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@whplus\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Tuning sysctl.conf on CentOS 7 | Whplus Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Sysctl lets the user fine tune the kernel without having to rebuild the kernel. It also will apply the changes immediately, thus the server won&#039;t have to be rebooted for changes to take effect. To make the changes permanent, you will have to add these values to a configuration file. Use the configuration file CentOS provides\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@whplus\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html#article\",\"name\":\"Tuning sysctl.conf on CentOS 7 | Whplus Blog\",\"headline\":\"Tuning sysctl.conf on CentOS 7\",\"author\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#articleImage\",\"width\":150,\"height\":60},\"datePublished\":\"2019-01-04T16:37:46+07:00\",\"dateModified\":\"2019-01-21T06:34:38+07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html#webpage\"},\"articleSection\":\"Referensi\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.whplus.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/referensi#listItem\",\"name\":\"Referensi\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/referensi#listItem\",\"position\":2,\"name\":\"Referensi\",\"item\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/referensi\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html#listItem\",\"name\":\"Tuning sysctl.conf on CentOS 7\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html#listItem\",\"position\":3,\"name\":\"Tuning sysctl.conf on CentOS 7\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/referensi#listItem\",\"name\":\"Referensi\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\",\"name\":\"Whplus\",\"description\":\"Informasi Seputar Layanan Whplus\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html\\\/#organizationLogo\",\"width\":150,\"height\":60},\"image\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/whplus\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus\",\"name\":\"whplus\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5a5270c9fb35780ddadb175b96b0d198683692a2d67525ef5477ca2b11b18ad3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"whplus\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html#webpage\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html\",\"name\":\"Tuning sysctl.conf on CentOS 7 | Whplus Blog\",\"description\":\"Sysctl lets the user fine tune the kernel without having to rebuild the kernel. It also will apply the changes immediately, thus the server won't have to be rebooted for changes to take effect. To make the changes permanent, you will have to add these values to a configuration file. Use the configuration file CentOS provides\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2019\\\/01\\\/04\\\/tuning-sysctl-conf-on-centos-7.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"datePublished\":\"2019-01-04T16:37:46+07:00\",\"dateModified\":\"2019-01-21T06:34:38+07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/\",\"name\":\"Whplus Blog\",\"description\":\"Informasi Seputar Layanan Whplus\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Tuning sysctl.conf on CentOS 7 | Whplus Blog","description":"Sysctl lets the user fine tune the kernel without having to rebuild the kernel. It also will apply the changes immediately, thus the server won't have to be rebooted for changes to take effect. To make the changes permanent, you will have to add these values to a configuration file. Use the configuration file CentOS provides","canonical_url":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html","robots":"max-image-preview:large","keywords":"referensi","webmasterTools":{"google-site-verification":"F5J0SGlaGQ2pp3SIm58KggrITtNTptKPB73P9hpRpfY","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html#article","name":"Tuning sysctl.conf on CentOS 7 | Whplus Blog","headline":"Tuning sysctl.conf on CentOS 7","author":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"publisher":{"@id":"https:\/\/www.whplus.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png","@id":"https:\/\/www.whplus.com\/blog\/#articleImage","width":150,"height":60},"datePublished":"2019-01-04T16:37:46+07:00","dateModified":"2019-01-21T06:34:38+07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html#webpage"},"isPartOf":{"@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html#webpage"},"articleSection":"Referensi"},{"@type":"BreadcrumbList","@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.whplus.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/referensi#listItem","name":"Referensi"}},{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/referensi#listItem","position":2,"name":"Referensi","item":"https:\/\/www.whplus.com\/blog\/category\/referensi","nextItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html#listItem","name":"Tuning sysctl.conf on CentOS 7"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html#listItem","position":3,"name":"Tuning sysctl.conf on CentOS 7","previousItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/referensi#listItem","name":"Referensi"}}]},{"@type":"Organization","@id":"https:\/\/www.whplus.com\/blog\/#organization","name":"Whplus","description":"Informasi Seputar Layanan Whplus","url":"https:\/\/www.whplus.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png","@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html\/#organizationLogo","width":150,"height":60},"image":{"@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html\/#organizationLogo"},"sameAs":["https:\/\/twitter.com\/whplus"]},{"@type":"Person","@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author","url":"https:\/\/www.whplus.com\/blog\/author\/whplus","name":"whplus","image":{"@type":"ImageObject","@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/5a5270c9fb35780ddadb175b96b0d198683692a2d67525ef5477ca2b11b18ad3?s=96&d=mm&r=g","width":96,"height":96,"caption":"whplus"}},{"@type":"WebPage","@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html#webpage","url":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html","name":"Tuning sysctl.conf on CentOS 7 | Whplus Blog","description":"Sysctl lets the user fine tune the kernel without having to rebuild the kernel. It also will apply the changes immediately, thus the server won't have to be rebooted for changes to take effect. To make the changes permanent, you will have to add these values to a configuration file. Use the configuration file CentOS provides","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.whplus.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.whplus.com\/blog\/2019\/01\/04\/tuning-sysctl-conf-on-centos-7.html#breadcrumblist"},"author":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"creator":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"datePublished":"2019-01-04T16:37:46+07:00","dateModified":"2019-01-21T06:34:38+07:00"},{"@type":"WebSite","@id":"https:\/\/www.whplus.com\/blog\/#website","url":"https:\/\/www.whplus.com\/blog\/","name":"Whplus Blog","description":"Informasi Seputar Layanan Whplus","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.whplus.com\/blog\/#organization"}}]},"twitter:card":"summary","twitter:site":"@whplus","twitter:title":"Tuning sysctl.conf on CentOS 7 | Whplus Blog","twitter:description":"Sysctl lets the user fine tune the kernel without having to rebuild the kernel. It also will apply the changes immediately, thus the server won't have to be rebooted for changes to take effect. To make the changes permanent, you will have to add these values to a configuration file. Use the configuration file CentOS provides","twitter:creator":"@whplus","twitter:image":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png"},"aioseo_meta_data":{"post_id":"1035","title":"Tuning sysctl.conf on CentOS 7 | #site_title","description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-09 02:17:33","updated":"2022-09-13 20:11:03","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=1035"}],"version-history":[{"count":2,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1035\/revisions"}],"predecessor-version":[{"id":1042,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1035\/revisions\/1042"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=1035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=1035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}