Browser lags when browsing websites [high CPU usage]
Hi,
Whenever I open browser (any browser) and load websites (any website), it lags and CPU rate gets hiked. I think its due to the processor of the system. System specs: Intel(R) Pentium(R) 4 CPU 3.00GHz RAM : 2 GiB The modern websites need at least Core i3 processors to handle properly? Or is it some other problem? Thanks |
All websites use Javascript which is inherently single threading. Using a multicore/multithreaded processor won't make an ounce of difference.
Most websites these days are optimised for Google Chrome (or Chromium) and tend to lag on other browsers. If a site is taking a ridiculous amount of time to load, and I'm only interested in the text then I load it on the command line in Lynx instead. |
Which distro and which web browser you are using?
Opening multiple webpages loaded wih flash, scripts, images, videos of huge size with in multiple tabs makes a system unresponsive. It happens in dual core i3 also. Since Pentium is usually single core with propably hyper threading present so it happens with it also. You can raise ram to 4GB. Also use lightweight web browser based on webkit like epiphany or midori. Also open a single or two webpage at a time. Turn off videos, flash and even animated images. |
Quote:
---------- Post added 01-30-15 at 09:20 AM ---------- Quote:
|
Check your swappiness on the command line with the following command;
Code:
cat /proc/sys/vm/swappiness Try setting it to 10 with this command; Code:
sysctl vm.swappiness=10 I suspect your machine is lagging because it is going into swap frequently. Increasing ram can reduce the problem if that is the case but reducing your swappiness can reduce the problem as well. |
There was a old trick for Firefox where temporary files are kept in a shared ram memory (tmpfs).
|
Quote:
Thanks. I can say that there is no issue with swappiness value. My swap is not being used. Just loading from RAM. Also, if I scroll the pages (All the browsers)the CPU usage increases and due to that the browser lags. |
Go to about:config and disable javascript.
You could also try a lighter webkit-based browser (as mentioned, as long as you can live with the webkit bugs) or a light-weight distribution -- the ones based on BusyBox are very undemanding of hardware (SliTaz, TinyCore, etc). |
Quote:
|
How far are you from router?
Are you using wireless or wired? What network are you using. It may be your carrier. |
Seems to be a normal problem, I experienced the same.
http://www.linuxquestions.org/questi...wser+scripting In the mean time I have upgraded to a fanless I7 processor. The lag is gone. Except for Flickr which brings even an I7 to a grinding halt. jlinkels |
Fanless processor are less fast than those with liquid cooling whether be it i7 or not.
|
Put it a bit more subtle: it is true that I7 come in a lot of versions. Both in clock speed and architecture. Mine is a I7 4587T. Whatever that may mean. I have seen comparision charts were other I7 are faster.
Nevertheless this I7 is the perfect processor for me. I am running KDE with full graphic effects. I do not experience any slowness neither in KDE, not in any other desktop application. Except for certain web pages in Firefox. But hey, making a process slow as molasses is not really difficult. I assume Flickr let decode their JPG pictures pixel by pixel in Javascript or so. jlinkels |
Quote:
|
I used the above mentioned swappiness setting ((changing from 60 to 10) on a Dell Inspiriron 1150 (linuxMint) with 512k ram)). It worked Great! So, I set same to 5 and it works even better. I wonder though, could I get similar result with higher swappiness setting (w/o having to try all)? I am unsure just what is the trade-off with this method?
|
All times are GMT -5. The time now is 11:24 AM. |