{"id":171,"date":"2012-02-15T21:04:52","date_gmt":"2012-02-15T08:04:52","guid":{"rendered":"https:\/\/blog.shade.sh\/?p=171"},"modified":"2023-04-22T20:04:28","modified_gmt":"2023-04-22T18:04:28","slug":"linux-arbeitsspeicher-freigeben","status":"publish","type":"post","link":"https:\/\/blog.shade.sh\/index.php\/archive\/171","title":{"rendered":"Linux Arbeitsspeicher manuell freigeben"},"content":{"rendered":"\n<p>Manchmal versagt das Linux interne Speichermanagement, so kommt es mir zumindest vor. Dann helfen nur ein Reboot oder ein paar Befehle um den Arbeitsspeicher wieder zu leeren. Also Reboot oder:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> sync ; sync ; sync ; echo 3 &gt; \/proc\/sys\/vm\/drop_caches<\/pre>\n\n\n\n<p>Dieser Befehl sorgt daf\u00fcr dass jeglicher Inhalt der sich noch im Cache befindet auf Platte geschrieben wird, danach werden mit dem Echo Befehl die Pagecaches, Dentries und Inodes geleert. Manchmal kommt es vor dass auch noch Swap in Benutzung ist, obwohl genug freier Speicher vorhanden ist, das kann mit:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> sync ; sync ; sync ; swapoff -a &amp;&amp; swapon -a<\/pre>\n\n\n\n<p>bereinigt werden. Wie gesagt, normalerweise funktioniert das Speichermanagement von Linux problemlos, manchmal kann man jedoch Hand anlegen.<\/p>\n\n\n\n<p><strong>WICHTIGER HINWEIS<\/strong>: Diese Befehle nur dann ausf\u00fchren wenn wirklich noch genug Speicher zur Verf\u00fcgung steht. Andernfalls kann es dazu f\u00fchren dass der Rechner einfach abst\u00fcrzt.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Manchmal versagt das Linux interne Speichermanagement, so kommt es mir zumindest vor. Dann helfen nur ein Reboot oder ein paar Befehle um den Arbeitsspeicher wieder zu leeren. Also Reboot oder: sync ; sync ; sync ; echo 3 &gt; \/proc\/sys\/vm\/drop_caches &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/blog.shade.sh\/index.php\/archive\/171\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":179,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,5],"tags":[64,11,417],"class_list":["post-171","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein","category-linux","tag-arbeitsspeicher","tag-linux-2","tag-ram"],"_links":{"self":[{"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":13,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":2097,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/posts\/171\/revisions\/2097"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/media\/179"}],"wp:attachment":[{"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}