Slow Response and System Lag

Recently my computer has been responding slowly. It was fine few days ago, but now it always lags. I need to find the cause. Thanks.


Solution 1:

Some troubleshooting ideas :

First, run this command :

sudo apt-get install htop iotop
  • Start a terminal, in it run htop
  • Start another terminal, in it run iotop
  • Start another terminal, it it run tail -f /var/log/kern.log

Wait until the lag occurs, then look at your three terminals :

  • The first one will tell you if a process is hogging the processor
  • The second one will tell you if your hard disk is being thrashed by a process.
  • The third one will tell you if an event has occurred regarding your hardware.