<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ravi Karuturi on Medium]]></title>
        <description><![CDATA[Stories by Ravi Karuturi on Medium]]></description>
        <link>https://medium.com/@karturi.ravi?source=rss-5eb26d1e782------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*po4GwpNL1UyMJ2-N.jpg</url>
            <title>Stories by Ravi Karuturi on Medium</title>
            <link>https://medium.com/@karturi.ravi?source=rss-5eb26d1e782------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:41:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karturi.ravi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Debugging linux CPU performance issues]]></title>
            <link>https://medium.com/@karturi.ravi/debugging-linux-cpu-performance-issues-8091db59fe4e?source=rss-5eb26d1e782------2</link>
            <guid isPermaLink="false">https://medium.com/p/8091db59fe4e</guid>
            <dc:creator><![CDATA[Ravi Karuturi]]></dc:creator>
            <pubDate>Wed, 16 Aug 2023 17:55:46 GMT</pubDate>
            <atom:updated>2023-08-16T17:55:46.900Z</atom:updated>
            <content:encoded><![CDATA[<p>Example 1: High CPU Usage by a Process</p><ol><li>Identify the process causing high CPU usage:</li></ol><ul><li>Use the top command to monitor the system&#39;s overall CPU usage and identify the process with the highest CPU consumption.</li></ul><p>Analyze the process in detail:</p><ul><li>Use ps -ef | grep &lt;process_name&gt; to get the process ID (PID) of the problematic process.</li><li>Use top -p &lt;PID&gt; to monitor the CPU usage of the specific process in real-time.</li><li>Use strace -p &lt;PID&gt; to trace system calls made by the process, which can help identify any issues.</li></ul><ol><li>Investigate the process’s threads:</li></ol><ul><li>Use top -H -p &lt;PID&gt; to view individual threads within the process and identify any threads consuming excessive CPU.</li></ul><ol><li>Analyze the process memory usage:</li></ol><ul><li>Use pmap &lt;PID&gt; to analyze the memory usage of the process, including shared and private memory segments.</li></ul><p>Example 2: High CPU Usage by System Processes</p><ol><li>Identify the system processes causing high CPU usage:</li></ol><ul><li>Use the top command to monitor the system&#39;s overall CPU usage and identify any system processes consuming excessive CPU.</li></ul><ol><li>Analyze the process in detail:</li></ol><ul><li>Use ps -ef | grep &lt;process_name&gt; to get the PID of the problematic system process.</li><li>Use top -p &lt;PID&gt; to monitor the CPU usage of the specific system process in real-time.</li></ul><ol><li>Investigate the process’s I/O activity:</li></ol><ul><li>Use iotop to monitor I/O activity by process, which can help identify any I/O-bound processes impacting CPU performance.</li><li>Use lsof -p &lt;PID&gt; to list open files and network connections by the process, which can provide insights into I/O activity.</li></ul><ol><li>Monitor system-wide performance:</li></ol><ul><li>Use netstat to monitor network connections and identify any network-related performance issues.</li><li>Use vmstat to monitor system-wide performance metrics like CPU utilization, memory usage, and I/O activity.</li></ul><p>By using these commands and tools, you can identify the specific processes or system components causing high CPU usage and gather valuable insights for further analysis. Remember to analyze the gathered data, compare with expected behavior, and consider possible optimizations or system tuning to resolve the performance problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8091db59fe4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>