Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 580  / 1 Year ago, fri, march 17, 2023, 7:52:56

I had attached my laptop specifications. I use chromium browser, microsoft teams for work. In an 8 hrs of work, my laptop slowly becomes slower by around 3 - 4hrs of work.


When I restart my laptop, it gets speed. How to resolve this without restarting everytime? Do I need to clean ram memory frequently?


enter image description here


enter image description here


enter image description here


More From » ram

 Answers
5

You have too little RAM, and too little SWAP. Ultimately you should add more RAM.


Let's try and compensate by increasing your /swapfile from 2G to 4G...


Note: Incorrect use of the rm and dd commands can cause data loss. Suggest copy/paste.


In the terminal...


sudo swapoff -a           # turn off swap
sudo rm -i /swapfile # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile # set proper file protections
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # turn on swap
free -h # confirm 4G RAM and 4G swap

Edit /etc/fstab, using sudo -H gedit /etc/fstab or sudo pico /etc/fstab.


Confirm this /swapfile line in /etc/fstab... and confirm no other “swap” lines... use SPACES in this line... confirm NO TABS...


/swapfile  none  swap  sw  0  0



reboot                    # reboot and verify operation

[#1257] Saturday, March 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
raacket

Total Points: 198
Total Questions: 114
Total Answers: 111

Location: Czech Republic
Member since Mon, May 15, 2023
1 Year ago
;