{"id":337,"date":"2012-03-28T15:43:20","date_gmt":"2012-03-28T13:43:20","guid":{"rendered":"http:\/\/blog.the-leviathan.ch\/?p=337"},"modified":"2012-03-28T15:50:32","modified_gmt":"2012-03-28T13:50:32","slug":"gentoo-emerging-with-ramfs","status":"publish","type":"post","link":"https:\/\/blog.the-leviathan.ch\/?p=337","title":{"rendered":"Gentoo: Emerging with RAMFS"},"content":{"rendered":"<p>Hi<\/p>\n<p>bash_vi asked me to write a short resume about how to emerge programs by using the ramfs for speedup.<br \/>\nHere&#8217;s how to do so:<\/p>\n<p><code> mount -t ramfs -o size=2g ramfs \/var\/tmp\/portage\/ <\/code><\/p>\n<ul>\n<li>The &#8220;-t ramfs&#8221; is obviously self explainatory.<\/li>\n<li>The &#8220;-o size&#8221; tells the ramfs driver how much space of the RAM should be reserved for this specific mount point.<\/li>\n<li>&#8220;\/var\/tmp\/portage\/&#8221; is the place where portage usually unpacks the source boundles and begins to compile them.<\/li>\n<\/ul>\n<p>You can also put it into your <code> \/etc\/fstab <\/code> in order to keep it for each reboot with<br \/>\n<code>echo -e \"ramfs\\t\/var\/tmp\/portage\/\\tramfs\\tsize=2g\\t0\\t0\" >> \/etc\/fstab <\/code><\/p>\n<p>Now you can compile your stuff within RAMFS<\/p>\n<p>Links:<\/p>\n<ul>\n<li>http:\/\/de.gentoo-wiki.com\/wiki\/Emerge_beschleunigen<\/li>\n<li>http:\/\/www.thegeekstuff.com\/2008\/11\/overview-of-ramfs-and-tmpfs-on-linux\/<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Hi bash_vi asked me to write a short resume about how to emerge programs by using the ramfs for speedup. Here&#8217;s how to do so: mount -t ramfs -o size=2g ramfs \/var\/tmp\/portage\/ The &#8220;-t ramfs&#8221; is obviously self explainatory. The &#8220;-o size&#8221; tells the ramfs driver how much space of the RAM should be reserved &hellip; <a href=\"https:\/\/blog.the-leviathan.ch\/?p=337\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Gentoo: Emerging with RAMFS<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-337","post","type-post","status-publish","format-standard","hentry","category-daily","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=337"}],"version-history":[{"count":7,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":345,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/337\/revisions\/345"}],"wp:attachment":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}