how to create a test case to follow a process on my laptop

76 views Asked by At

I am a newbie and NEED advice/instruction on how to find out what process is bugging down the CPU,MEM and DISK.

have been reading on how to follow process using htop,ps, pstree and strace however, I would like to create a test case (create a loop program that writes to disk) for me to follow on my laptop the CPU usage, MEM and ,more importantly, how to recognize when it is writing to disk.

so far I've got this little loop program I found here and I can see it on Htop,ps,strace but need help figuring out how tho trace it thru the cpu, mem, and disk usage.

NB-PC:~$ cat script/infinite_loop.sh

while true;do echo -n;done

any help will be much appreciated.

0

There are 0 answers