Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2601  / 1 Year ago, mon, january 16, 2023, 11:19:00

I use Firefox and Microsoft edge and both of them are laggy. My internet is fine and page loading is fine but everything is slow and laggy. I can’t watch videos using 720p60 and higher because of this.


I tried turning hardware acceleration off and on, but it seems to make no difference.


Specs:



  • Intel i5 650

  • Intel HD graphics card

  • HDD with 1 terabyte disk space

  • 8GB RAM


Swap size is 2GB.


I'm using Ubuntu 20.04 with desktop environment of LXQt, Budgie, Cinnamon, GNOME 3, GNOME classic and awesome window manager.


What could be the problem, and how can I fix it?


More From » 20.04

 Answers
5

After talking with the OP in comments, I suspect this issue is related to swap.


Solutions that I recommend



  • First, increase the swap size to 8 GB or whatever you prefer



  • Decrease the swappiness value to 10




Why should you do this?


Well... I think the issue occurs due to swappiness


The OP's swappiness was way too much which lead to using that small 2 GB swap size. So after increasing the swap size we also decreased the swappiness value so that there should be no error in future, thus the problem was solved.


How to increase swap


What is swap?


Swap can be defined as Virtual memory. Virtual memory means ram only. But In virtual memory, Ram is used in a storage medium like Hard disk or SSD or On which your OS is installed. Whenever the Ram is full It will store the Ram files in the allocated space for swap. It is not as fast as a Normal ram but its speed depend on the speed of your storage medium

How to configure swappiness


What is swappiness?



The Linux kernel provides a tweakable setting that controls how often the swap file is used, called swappiness.

A swappiness setting of zero means that the disk will be avoided unless necessary (you run out of memory), while a swappiness setting of 100 means that programs will be swapped to the disk almost instantly.


The Ubuntu system comes with a default of 60, meaning that the swap file will be used fairly often if the memory usage is around half of my RAM. You can check your own system's swappiness value by running:


$ cat /proc/sys/vm/swappiness
60


[#982] Tuesday, January 17, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
berlorful

Total Points: 346
Total Questions: 90
Total Answers: 99

Location: Monaco
Member since Tue, Nov 30, 2021
2 Years ago
berlorful questions
Thu, Sep 2, 21, 10:12, 3 Years ago
Sun, May 9, 21, 20:55, 3 Years ago
Mon, Aug 29, 22, 05:43, 2 Years ago
Sun, Sep 12, 21, 17:12, 3 Years ago
;