5

I have a lenovo laptop with ubuntu 14.04 (64 bit) installed on it. It has Intel® Core™ i3-3110M CPU @ 2.40GHz × 4 processor, 4 GiB ram and Nvidia 635 M graphics card. The system works fine under normal operations but it lags, stuck a lot during copying files. Earlier I was using 13.10 and no such problem was with with. Any help would be appreciated.

Sunil Kumar
  • 83
  • 1
  • 2
  • 10

3 Answers3

1

Just do these things

sudo -H gedit /etc/sysctl.conf

Now add these lines at the end of this file

vm.dirty_background_ratio = 5
vm.dirty_ratio = 10

Now save and exit

Then again type in terminal:

sudo sysctl -p

Press enter and whoaaa! It's done: no more lag.

muru
  • 207,228
0

Looking at the top output you provided in the comments you have one problem (not enough cache memory) that can be divided into two sub-problems:

  1. chromium.
  2. compiz

The cheap solution:

  1. Easiest to solve. Chromium is known to be a memory hog: uninstall it and use FireFox instead.
  2. A bit more complex to solve.

    a. Make a system backup! If you don't know how, read What's a good backup strategy for 1 PC (You've now officially become user type 4 instead of being user type 3)

    b. sudo apt-get install compizconfig-settings-manager (aka CCSM)

    c. Go to the dash and type "Compiz" and the CCSM icon should come up.

    d. And now it's up to you: turn off anything you don't use! E.g. if you don't use multiple desktops, turn off "Expo" and "Desktop wall" (and that's why you have to take a back-up: you're on your own here; I don't know what you use and what not)

The expensive solution

Buy more RAM. Double it (at least). :-(

Fabby
  • 35,017
0

I found that disabling the transparent huge pages feature does help.

Check if it is enabled:

cat /sys/kernel/mm/transparent_hugepage/enabled
  • enabled: [always] madvise never
  • disabled: always madvise [never]

To disable do:

sudo su -c 'echo never >/sys/kernel/mm/transparent_hugepage/enabled'

To [re]enable do:

sudo su -c 'echo always >/sys/kernel/mm/transparent_hugepage/enabled'

More info at: https://access.redhat.com/solutions/46111

Amadu Bah
  • 146