{"id":53,"date":"2012-11-25T10:15:27","date_gmt":"2012-11-25T10:15:27","guid":{"rendered":"http:\/\/blog.nicovs.be\/?p=53"},"modified":"2012-12-07T21:45:52","modified_gmt":"2012-12-07T21:45:52","slug":"increase-a-tmpfs-mounted-drive","status":"publish","type":"post","link":"https:\/\/www.nicovs.be\/?p=53","title":{"rendered":"Increase size of a tmpfs mounted drive"},"content":{"rendered":"<p>When you are using a tmpfs drive to speed up certain files\/folders (eg var\/cache from a Magento webshop), and your assigned amount of memory is too small, you can easily increase this by doing\u00a0\u00a0the following:<\/p>\n<p>Modify your tmpfs mount in \/etc\/fstab to look something like this: (let&#8217;s say that I&#8217;ve changed the size of 64M to 128M<\/p>\n<pre class=\"lang:default decode:true\">tmpfs \/var\/www\/webshop\/wwwroot\/var\/cache tmpfs size=128M,mode=0777,uid=33,gid=33 0 0<\/pre>\n<p>You can then remount the tmpfs drive by typing<\/p>\n<pre class=\"lang:default decode:true\">mount -o remount tmpfs<\/pre>\n<p>To verify, simply type<\/p>\n<pre class=\"lang:default decode:true\">df -h<\/pre>\n<p>Note: Be careful not too increase it too much! Your system will deadlock since the Out-Of-Memory handler can not free up that space if needed<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you are using a tmpfs drive to speed up certain files\/folders (eg var\/cache from a Magento webshop), and your assigned amount of memory is too small, you can easily increase this by doing\u00a0\u00a0the following: Modify your tmpfs mount in \/etc\/fstab to look something like this: (let&#8217;s say that I&#8217;ve changed the size of 64M [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,8,6],"tags":[11,10,9,80],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-debian","category-performance","category-ubuntu","tag-debian-2","tag-performance-2","tag-tmpfs","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=53"}],"version-history":[{"count":9,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}