Assignment Two
Assignment Two
1|Page
introduction
Debugging tools in an operating system are essential utilities designed to
assist developers and system administrators in identifying and resolving software
issues. These tools provide various functionalities such as code inspection,
memory analysis, performance monitoring, and error tracking. By offering
insights into program execution and system behavior, debugging tools play a
crucial role in diagnosing and fixing software bugs, optimizing performance, and
ensuring the overall reliability of the operating system and applications running
on it, The most important of these tools are Task Manager in Windows OS and
“top” command in Linux OS.
3. App History Tab: Displays resource usage statistics for Windows Store
apps, so it is useful for monitoring resource consumption of specific apps
over time, thus identify apps that are consuming excessive resources and
impacting system performance.[3]
2|Page
4. Startup Tab: Lists programs configured to start automatically when
Windows boots, so it helps identify excessive and unnecessary startup
programs, and allow disable it to reduce boot time and improve system
performance.[2]
5. Services Tab: Lists all system services along with their status and
resource usage, so helps identify services consuming excessive
resources or causing performance issues and allows users to start, stop,
or restart services to troubleshoot performance problems related to
services.[2]
3|Page
Processes currently running and it’s CPU and Memory usage:
• Apache NetBeans IDE Launcher (CPU usage is 0.1% and memory usage
is 577.9 MB).
• Google Chrome (CPU usage is 4.7% and memory usage is 1328.8 MB).
• Microsoft Edge (CPU usage is 0.7% and memory usage is 1087.4 MB).
• Microsoft Visual Studio 2022 (CPU usage is 0.3% and memory usage is
297.3 MB).
• Microsoft word (CPU usage is 1.0% and memory usage is 77.6 MB).
• Task Manager (CPU usage is 3.1% and memory usage is 69.8 MB).
• WhatsAPP (CPU usage is 0% and memory usage is 100.6 MB).
• There is no non-responsive applications or processes
4|Page
“top” command in my system
“top” command user interface can be divided into two main parts:
This line tells that computer has been up for 30 minutes. The next part of
the line tells that there's currently one user logged in. The next segment
gives the average load on the CPU in the last one minute, five minutes,
and 15 minutes.[5]
• Tasks
This line tells that there are 34 running tasks of which one is running, 33
are sleeping, and none are stopped or in the zombie state. [5]
• CPU
5|Page
➢ wa: 0.0 s of CPU time spent waiting for I/O operations to complete.
➢ hi: 0.0 s of CPU time spent on hardware interruptions.
➢ si: 0.6 s of CPU time spent on software interruptions.
➢ st: 0.0 s of CPU time lost because of VM steal time.[5]
• Memory
This line tells that the total amount of available memory is 7846.1 MiB, the
amount of free memory is 7003.0 MiB, the amount of used memory is
498.3 MiB, and the amount of buffered or cached memory is 344.7 MiB.[5]
• Swap memory
This line tells that the total amount of available swap memory is 2048.0
MiB, the amount of free swap memory is 2048.0 MiB, the amount of used
swap memory is 0.0 MiB, and the amount of avail Mem swap memory is
7119.2 MiB. [5]
6|Page
• S: Status of the process.
• %CPU: Percentage of the CPU used by the process.
• %MEM: Percentage of memory used by the process.
• TIME+: CPU time used by the process (to the hundredth of a second).
• COMMAND: Command used to run the process. [5]
7|Page
performance debugging. Ultimately, the best tool depends on the user's
comfort level and the debugging task at hand.
Conclusion
Operating system debugging tools play a crucial role in diagnosing and
resolving software issues in diverse environments. Whether debugging kernel
modules, user-space applications, or real-time embedded systems, having the
right tools and expertise is essential for efficient troubleshooting. By leveraging
the features and best practices of these tools, developers and system
administrators can streamline the debugging process and ensure the reliability
and performance of their systems.
References
• [1] https://helpdeskgeek.com/windows-11/windows-11-task-manager-in-depth-
guide-and-overview/
• [2] https://easyseo.pro/kb-post/how-to-use-windows-task-manager-to-
improve-your-pcs-performance/
• [3] https://www.lenovo.com/us/en/glossary/task-manager/
• [4] https://phoenixnap.com/kb/top-command-in-linux
• [5] https://www.site24x7.com/learn/linux/top-command.html
Contents
introduction.................................................................................................................................. 2
Windows Task Manager ............................................................................................................ 2
Roles of Task Manager in troubleshooting performance issues............................... 2
Task Manager in my system ................................................................................................ 3
Linux Top Command ................................................................................................................. 4
Roles of Task Manager in troubleshooting performance issues............................... 4
“top” command in my system ............................................................................................ 5
Task Manager VS “top” command ......................................................................................... 7
Similarities................................................................................................................................ 7
Differences ............................................................................................................................... 7
Conclusion ................................................................................................................................... 8
References ................................................................................................................................... 8
8|Page