Linux Exercise Here are some things that you will want to try: • Run htop and/or
ID: 3919779 • Letter: L
Question
Linux Exercise
Here are some things that you will want to try:
• Run htop and/or the other commands you learned in lab 7 (top, free, vmstat, proc/meminfo)
• Note memory usage on your machine
• Open several applications and make a note of the statistics in the applications
• Close an application or two and see what happens to the memory usage
• Open many applications and/or load the CPU with an intensive application like a game
that is running, or video and watch the results.
• Try to understand why RAM and Swap memory behave as they do.
After you have made your observations about memory usage, try the following:
Open many programs to load up memory and cache. Note the cache size. Then, close the programs and look at the cache. It may not have changed because garbage collection has not yet happened. Now, manually clear the cache by using the following command.
sudo bash -c “sync; echo 3 > /proc/sys/vm/drop_caches”
Observe the memory statistics after running the command and explain your findings.
Explanation / Answer
* htop is used to monitor system process. It can be run by just writing htop command. It is didiived into 3 sections. It tells about CPU, memory usage,RAM info & process information.
top command is used to check memory & cpu usage process wise. this command is run by just writing top.
vmstat give statistics of the memory usage. It is generally written as vmstat -s
proc/meminfo gives the information related to the kernal. generally proc file does not contain actual files rather it has virtual files.
As i run my hadoop commands i can observe that my swap memory & cache memory keeps on changing. The buffer also increases & the cpu percentage also changes. Swap memory has more space compared to Memory.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.