{"id":2816,"date":"2017-07-20T14:55:58","date_gmt":"2017-07-20T13:55:58","guid":{"rendered":"http:\/\/blog.fh-kaernten.at\/ingmarsretro\/?p=2816"},"modified":"2021-02-16T14:20:52","modified_gmt":"2021-02-16T13:20:52","slug":"raspberry-pi-os-tuning","status":"publish","type":"post","link":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/2017\/07\/20\/raspberry-pi-os-tuning\/","title":{"rendered":"Raspberry PI &#8211;  OS tuning"},"content":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2816\" class=\"pvc_stats all  \" data-element-id=\"2816\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p style=\"text-align: justify\">Der Raspberry PI wird mittlerweile ja in vielen Anwendungen im Dauerbetrieb eingesetzt und hat dort unterschiedlichste Aufgaben zu erf\u00fcllen. Manchmal ist er ein Webserver, eine Wettersensorstation, ein NAS, oder eine Steuerung. Was auch immer. Doch meist hat ein Raspberry Board nur eine dieser Aufgaben zu erf\u00fcllen. Die Betriebssysteme bieten jedoch wesentlich mehr Funktionen und Features an, die nicht unbedingt f\u00fcr alle Anwendungen ben\u00f6tigt werden, aber trotzdem mitlaufen und Prozesszeit ben\u00f6tigen, oder die SD-Karte mit unn\u00f6tigen Schreibzyklen belasten. Das l\u00e4sst sich aber \u00e4ndern.<\/p>\n<p style=\"text-align: justify\">Mein Kollege <a href=\"http:\/\/blog.fh-kaernten.at\/wehr\/\">Mario Wehr<\/a> hat eine Sammlung an Optimierungen zusammengestellt, die ich hier mit seiner Genehmigung ver\u00f6ffentlichen darf.<\/p>\n<p><strong>Xserver\/Windomanager disablen<\/strong><br \/>\n<em>cmd: raspi-config Menp -&gt; Boot Optins -&gt; Desltop\/CLI -&gt; Console only with Login<\/em><\/p>\n<p><strong>GPU Shared MEM auf 16MB<\/strong><br \/>\n<em>cmd: raspi-config Men\u00fc -&gt; Advanced Config -&gt; Memory Split -&gt;16MB<\/em><\/p>\n<p><strong>Interfaces Disable<\/strong><br \/>\n<em>cmd: raspi-config Men\u00fc -&gt; Interfaced -&gt; Alle Interfaces disablen<\/em><\/p>\n<p><strong>Entfernen nicht ben\u00f6tigter Kernelmodule<\/strong><br \/>\nBringt: Mehr Speicher f\u00fcr Userspace.<br \/>\nSchnellerer Boot.<\/p>\n<p>Kernel module werden unter:<br \/>\n<em>\/etc\/modprobe.d\/{files}<br \/>\n<\/em>ge-Blacklistet.<\/p>\n<p><strong>IPV6 disable<\/strong><\/p>\n<p>File: ipv6.conf<br \/>\n<em>alias net-pf-10 off<\/em><br \/>\n<em>alias ipv6 off<\/em><\/p>\n<p>File: raspi-blacklist.conf<br \/>\n<em>blacklist ipv6<\/em><\/p>\n<p><strong>Sound disable<br \/>\n<\/strong><br \/>\nFile: raspi-blacklist.conf<\/p>\n<p><em>blacklist snd_bcm2835<\/em><br \/>\n<em>blacklist snd_soc_bcm2708_i2s<\/em><br \/>\n<em>blacklist snd_soc_core<\/em><br \/>\n<em>blacklist snd_compress<\/em><br \/>\n<em>blacklist snd_pcm<\/em><br \/>\n<em>blacklist snd_page_alloc<\/em><br \/>\n<em>blacklist snd_seq<\/em><br \/>\n<em>blacklist snd_seq_device<\/em><br \/>\n<em>blacklist snd_timer<\/em><br \/>\n<em>blacklist snd<\/em><\/p>\n<p><strong>Bluetooth disable<\/strong><\/p>\n<p>File: raspi-blacklist.conf<strong><br \/>\n<\/strong><em>blacklist btbcm<\/em><br \/>\n<em>blacklist hci_uart<\/em><\/p>\n<p>File: \/boot\/config<strong><br \/>\n<\/strong><em>dtoverlay=pi3-disable-bt<\/em><\/p>\n<p>cmd: systemctl disable hciuart<strong><br \/>\n<\/strong><\/p>\n<p><strong>UIO disable<\/strong><\/p>\n<p>File: raspi-blacklist.conf<br \/>\n<em>blacklist uio_pdrv_genirq<\/em><br \/>\n<em>blacklist uio<\/em><\/p>\n<p><strong>Verschieben von \/Temp \/Log ins Ram<br \/>\n<\/strong>Bringt: Die SD h\u00e4lt um einiges l\u00e4nger Schnellerer Boot<\/p>\n<p>File: \/etc\/fstab<strong><br \/>\n<\/strong><em>tmpfs \/tmp tmpfs defaults,size=8M 0 0<\/em><br \/>\n<em>tmpfs \/var\/tmp tmpfs defaults,size=8M 0 0<\/em><br \/>\n<em>tmpfs \/var\/log tmpfs defaults,size=8M 0 0<\/em><strong><br \/>\n<\/strong><\/p>\n<p><strong>Log anpassen<br \/>\n<\/strong>Bis auf Kernel\/Daemon k\u00f6nnen alle Logs abgeschalten werden.<br \/>\nFile: \/etc\/rsyslog<strong><br \/>\n<\/strong><em>#cron.* \/var\/log\/cron.log<\/em><br \/>\n<em>daemon.* -\/var\/log\/daemon.log<\/em><br \/>\n<em>kern.* -\/var\/log\/kern.log<\/em><br \/>\n<em>#lpr.* -\/var\/log\/lpr.log<\/em><br \/>\n<em>#mail.* -\/var\/log\/mail.log<\/em><br \/>\n<em>#user.* -\/var\/log\/user.log<\/em><br \/>\n<em>#mail.info -\/var\/log\/mail.info<\/em><br \/>\n<em>#mail.warn -\/var\/log\/mail.warn<\/em><br \/>\n<em>#mail.err \/var\/log\/mail.err<\/em><\/p>\n<p><strong>Log-Rotating<\/strong><br \/>\nDa der tmpfs Space klein ist -&gt; logrotate auf 1 bzw daliy<strong><br \/>\n<\/strong><em>File: \/etc\/logrotate -&gt; \/etc\/logrotate.d\/{files}<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2816\" class=\"pvc_stats all  \" data-element-id=\"2816\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>Der Raspberry PI wird mittlerweile ja in vielen Anwendungen im Dauerbetrieb eingesetzt und hat dort unterschiedlichste Aufgaben zu erf\u00fcllen. Manchmal ist er ein Webserver, eine Wettersensorstation, ein NAS, oder eine Steuerung. Was auch immer. Doch meist hat ein Raspberry Board nur eine dieser Aufgaben zu erf\u00fcllen. Die Betriebssysteme bieten jedoch wesentlich mehr Funktionen und Features&hellip; <br \/> <a class=\"read-more\" href=\"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/2017\/07\/20\/raspberry-pi-os-tuning\/\">Weiterlesen<\/a><\/p>\n","protected":false},"author":86,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[57,1186],"tags":[875,341,876,871,873,874,872],"class_list":["post-2816","post","type-post","status-publish","format-standard","hentry","category-elektronikbastler","category-raspberrypi","tag-raspberry-os-optimieren","tag-raspberry-pi","tag-raspberry-pi-24-7","tag-raspberry-pi-optimieren","tag-raspberry-pi-os-tuning","tag-raspberry-schneller-machen","tag-raspberry-tuning"],"a3_pvc":{"activated":true,"total_views":107,"today_views":0},"_links":{"self":[{"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/posts\/2816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/users\/86"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/comments?post=2816"}],"version-history":[{"count":0,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/posts\/2816\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/media?parent=2816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/categories?post=2816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/ingmarsretro\/wp-json\/wp\/v2\/tags?post=2816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}