{"id":138,"date":"2011-04-27T15:10:54","date_gmt":"2011-04-27T15:10:54","guid":{"rendered":"http:\/\/www.plugged.in\/?p=138"},"modified":"2011-04-27T15:10:54","modified_gmt":"2011-04-27T15:10:54","slug":"run-tmp-from-memory-for-faster-performance","status":"publish","type":"post","link":"https:\/\/www.veriteknik.net.tr\/en\/run-tmp-from-memory-for-faster-performance\/","title":{"rendered":"Run \/tmp from memory for faster performance"},"content":{"rendered":"<p style=\"text-align: justify;\">Running <strong>\/tmp<\/strong> partition makes great performance enhancements as soon as you store temprorary information, please be aware that you mustn&#8217;t store valuable data as a reboot will flush all the data inside.<\/p>\n<p style=\"text-align: justify;\"><strong>\/tmp &amp; \/var\/tmp runs faster from RAM, <\/strong>to do so:<\/p>\n<blockquote>\n<div>vi \/etc\/fstab<\/div>\n<\/blockquote>\n<div style=\"text-align: justify;\">Switch to Insert mode by pressing I or INSERT button on keyboard and comment out \/tmp partition if you already have one with a # and enter the information below:<\/div>\n<blockquote>\n<div>tmpfs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/tmp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tmpfs\u00a0\u00a0 defaults,noatime,mode=1777 0 0<br \/>\ntmpfs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/var\/tmp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tmpfs defaults,noatime,mode=1777 0 0<\/div>\n<\/blockquote>\n<p style=\"text-align: justify;\">save the file by pressing<strong> ESC and SHIFT ZZ<\/strong> or <strong>ESC + wq<\/strong> and type &#8220;<strong>mount -a<\/strong>&#8221; to apply the changes immediately. You can check the results by typing &#8220;<strong>df -h<\/strong>&#8221; and you will see something similar to below one:<\/p>\n<blockquote>\n<div>Filesystem\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Size\u00a0 Used Avail Use% Mounted on<br \/>\n\/dev\/hdb5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 50G\u00a0 5.0G\u00a0\u00a0 43G\u00a0 11% \/<br \/>\n\/dev\/hdb1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 99M\u00a0\u00a0 24M\u00a0\u00a0 71M\u00a0 25% \/boot<br \/>\ntmpfs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.5G\u00a0\u00a0\u00a0\u00a0 0\u00a0 1.5G\u00a0\u00a0 0% \/dev\/shm<br \/>\n<strong>tmpfs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.5G\u00a0\u00a0\u00a0\u00a0 0\u00a0 1.5G\u00a0\u00a0 0% \/tmp<\/strong><br \/>\n<strong>tmpfs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.5G\u00a0\u00a0\u00a0\u00a0 0\u00a0 1.5G\u00a0\u00a0 0% \/var\/tmp<\/strong><\/div>\n<\/blockquote>\n<div>Please note that, all your data and sessions will be gone when you switch to\/from ramfs.<\/div>\n<div><strong><span style=\"color: #ff0000;\"><strong>IMPORTANT NOTE:<\/strong><\/span> <\/strong>This document is prepared for CentOS 5.6 and ment to work with other versions and distros.Never assume the directory structures exist in your system as written in the document. Never blindly follow security instructions \u2014 read, review, compare, apply as it fits your system.<strong><br \/>\n<\/strong><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Running \/tmp partition makes great performance enhancements as soon as you store temprorary information, please be aware that you mustn&#8217;t store valuable data as a reboot will flush all the data inside. \/tmp &amp; \/var\/tmp runs faster from RAM, to do so: vi \/etc\/fstab Switch to Insert mode by pressing I or INSERT button on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[413],"tags":[428,429,430,431],"yst_prominent_words":[1656,682,1741,1822,1817,1826,1821,1816,1813,1823,952,1825,1819,1820,1815,1812,1811,1824,1818,1814],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-linux-optimization","tag-tmp","tag-ram","tag-ramfs","tag-session"],"jetpack_featured_media_url":"","uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"ckaraca","author_link":"https:\/\/www.veriteknik.net.tr\/en\/author\/ckaraca\/"},"uagb_comment_info":0,"uagb_excerpt":"Running \/tmp partition makes great performance enhancements as soon as you store temprorary information, please be aware that you mustn&#8217;t store valuable data as a reboot will flush all the data inside. \/tmp &amp; \/var\/tmp runs faster from RAM, to do so: vi \/etc\/fstab Switch to Insert mode by pressing I or INSERT button on&hellip;","_links":{"self":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":0,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/tags?post=138"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/yst_prominent_words?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}