<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rott1st</author_name>
  <author_url>https://blog.hatena.ne.jp/rott1st/</author_url>
  <blog_title>mahler.jp Programming Tips Blog</blog_title>
  <blog_url>https://rott1st.hatenablog.com/</blog_url>
  <categories>
    <anon>Raspberry Pi</anon>
    <anon>Python</anon>
  </categories>
  <description>while Trueを使い、何かの処理をひたすらクルクル回す自作Pythonプログラムを作成したとします。 そうすると、topコマンドで見てもわかるように、大した処理をしてないのにCPU負荷が高いことがわかります。 さらにvcgencmd measure_tempでCPU温度を見ると、うなぎ登りに上昇していることがわかります。 これを回避するために処理に影響がない場所で1msecでもいいからsleepを挟んでやります。 そうすると、CPU負荷、温度が下がるのがわかるでしょう。 ランキングに参加しています。下記バナーをクリックしていただけるとありがたいです。ランキング参加中プログラミング</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frott1st.hatenablog.com%2Fentry%2F2024%2F07%2F23%2F161554&quot; title=&quot;ラズパイのCPU負荷、温度を下げる - mahler.jp Programming Tips Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.image.st-hatena.com/image/square/adad63b72f1d6545b2ba2538c3fc2923b2fd5989/backend=imagemagick;height=80;version=1;width=80/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Fcircle%2Fofficial-circle-icon%2Fcomputers.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-07-23 16:15:54</published>
  <title>ラズパイのCPU負荷、温度を下げる</title>
  <type>rich</type>
  <url>https://rott1st.hatenablog.com/entry/2024/07/23/161554</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
