Improving browsing performance


62 posts   Page 3 of 3   1, 2, 3
by sam_p_lay » Sat Jan 19, 2013 11:41 am
Thanks Alexander - I'll give that a shot now!
Posts: 51
Joined: Fri Jan 11, 2013 12:15 am
by sam_p_lay » Sat Jan 19, 2013 11:48 am
I think I'm just doing something wrong here because since trying Openbox I'm now back in a situation where my .xinitrc isn't working. /home/pi/.xinitrc (or ~/.xinitrc ;-)):

Code: Select all
twm&
lxterminal
Posts: 51
Joined: Fri Jan 11, 2013 12:15 am
by sam_p_lay » Sat Jan 19, 2013 12:14 pm
OK looks like I had to re-run raspi-config again to disable booting to desktop. And I had no space before my & before, so I'm getting a bit farther now :-) Black screen, no cursor, nothing happening. Ctrl+Alt+Backspace gives a whole load of:

twm: error: font for charset (whatever) is missing

I outputted the errors:

Xsession: X session started for pi at Sat Jan 19 11:58:53 GMT 2013
Obt-Message: Xinerama extension is not present on the server
Openbox-Message: Unable to find a valid menu file "/usr/share/lxde/openbox/menu.xml"
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 26403 requests (26400 known processed) with 0 events remaining.
XIO: fatal IO error 4 (Interrupted system call) on X server ":0"
after 36 requests (36 known processed) with 0 events remaining.
pcmanfm: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Xsession: X session started for pi at Sat Jan 19 12:08:49 GMT 2013
Obt-Message: Xinerama extension is not present on the server
Openbox-Message: Unable to find a valid menu file "/usr/share/lxde/openbox/menu.xml"

(pcmanfm:2350): Gtk-WARNING **: Radio group does not contain an action with value '0'

Looks like this all gets outputted to a .xsession-errors file anyway but still, I learned :-)
Posts: 51
Joined: Fri Jan 11, 2013 12:15 am
by sam_p_lay » Sat Jan 19, 2013 12:21 pm
It's actually:

twm: warning: font for charset (whatever) is lacking

If my .xinitrc was:

Code: Select all
twm 2>&1 twm-errors.txt &
lxterminal


Would that create a twm error log? Just for curiosity - you've got the error there anyway ^ :-)
Posts: 51
Joined: Fri Jan 11, 2013 12:15 am
by rurwin » Sat Jan 19, 2013 2:03 pm
Here's a working one. I just started X, dropped the lxterminal on the screen and exited it.
Code: Select all
X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian
Current Operating System: Linux raspberrypi 3.6.11+ #358 PREEMPT Tue Jan 15 00:45:33 GMT 2013 armv6l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0x2 bcm2708.serial=0x5cc9e5c9 smsc95xx.macaddr=B8:27:EB:C9:E5:C9 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0xec00000 vc_mem.mem_size=0x10000000  dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
Build Date: 10 December 2012  05:45:57AM
xorg-server 2:1.12.4-4 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.26.0
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 19 13:56:55 2013
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
twm: warning: font for charset ISO8859-2 is lacking.
twm: warning: font for charset ISO8859-3 is lacking.
twm: warning: font for charset ISO8859-4 is lacking.
twm: warning: font for charset ISO8859-5 is lacking.
twm: warning: font for charset KOI8-R is lacking.
twm: warning: font for charset ISO8859-7 is lacking.
twm: warning: font for charset ISO8859-9 is lacking.
twm: warning: font for charset ISO8859-13 is lacking.
twm: warning: font for charset ISO8859-14 is lacking.
twm: warning: font for charset ISO8859-15 is lacking.
twm: warning: font for charset JISX0208.1983-0 is lacking.
twm: warning: font for charset KSC5601.1987-0 is lacking.
twm: warning: font for charset GB2312.1980-0 is lacking.
twm: warning: font for charset JISX0201.1976-0 is lacking.
twm: warning: font for charset ISO10646-1 is lacking.
twm: warning: font for charset ISO8859-2 is lacking.
twm: warning: font for charset ISO8859-3 is lacking.
twm: warning: font for charset ISO8859-4 is lacking.
twm: warning: font for charset ISO8859-5 is lacking.
twm: warning: font for charset KOI8-R is lacking.
twm: warning: font for charset ISO8859-7 is lacking.
twm: warning: font for charset ISO8859-9 is lacking.
twm: warning: font for charset ISO8859-13 is lacking.
twm: warning: font for charset ISO8859-14 is lacking.
twm: warning: font for charset ISO8859-15 is lacking.
twm: warning: font for charset JISX0208.1983-0 is lacking.
twm: warning: font for charset KSC5601.1987-0 is lacking.
twm: warning: font for charset GB2312.1980-0 is lacking.
twm: warning: font for charset JISX0201.1976-0 is lacking.
twm: warning: font for charset ISO10646-1 is lacking.
twm: warning: font for charset ISO8859-2 is lacking.
twm: warning: font for charset ISO8859-3 is lacking.
twm: warning: font for charset ISO8859-4 is lacking.
twm: warning: font for charset ISO8859-5 is lacking.
twm: warning: font for charset KOI8-R is lacking.
twm: warning: font for charset ISO8859-7 is lacking.
twm: warning: font for charset ISO8859-9 is lacking.
twm: warning: font for charset ISO8859-13 is lacking.
twm: warning: font for charset ISO8859-14 is lacking.
twm: warning: font for charset ISO8859-15 is lacking.
twm: warning: font for charset JISX0208.1983-0 is lacking.
twm: warning: font for charset KSC5601.1987-0 is lacking.
twm: warning: font for charset GB2312.1980-0 is lacking.
twm: warning: font for charset JISX0201.1976-0 is lacking.
twm: warning: font for charset ISO10646-1 is lacking.
twm: warning: font for charset ISO8859-2 is lacking.
twm: warning: font for charset ISO8859-3 is lacking.
twm: warning: font for charset ISO8859-4 is lacking.
twm: warning: font for charset ISO8859-5 is lacking.
twm: warning: font for charset KOI8-R is lacking.
twm: warning: font for charset ISO8859-7 is lacking.
twm: warning: font for charset ISO8859-9 is lacking.
twm: warning: font for charset ISO8859-13 is lacking.
twm: warning: font for charset ISO8859-14 is lacking.
twm: warning: font for charset ISO8859-15 is lacking.
twm: warning: font for charset JISX0208.1983-0 is lacking.
twm: warning: font for charset KSC5601.1987-0 is lacking.
twm: warning: font for charset GB2312.1980-0 is lacking.
twm: warning: font for charset JISX0201.1976-0 is lacking.
twm: warning: font for charset ISO10646-1 is lacking.
twm: warning: font for charset ISO8859-2 is lacking.
twm: warning: font for charset ISO8859-3 is lacking.
twm: warning: font for charset ISO8859-4 is lacking.
twm: warning: font for charset ISO8859-5 is lacking.
twm: warning: font for charset KOI8-R is lacking.
twm: warning: font for charset ISO8859-7 is lacking.
twm: warning: font for charset ISO8859-9 is lacking.
twm: warning: font for charset ISO8859-13 is lacking.
twm: warning: font for charset ISO8859-14 is lacking.
twm: warning: font for charset ISO8859-15 is lacking.
twm: warning: font for charset JISX0208.1983-0 is lacking.
twm: warning: font for charset KSC5601.1987-0 is lacking.
twm: warning: font for charset GB2312.1980-0 is lacking.
twm: warning: font for charset JISX0201.1976-0 is lacking.
twm: warning: font for charset ISO10646-1 is lacking.
twm: warning: font for charset ISO8859-2 is lacking.
twm: warning: font for charset ISO8859-3 is lacking.
twm: warning: font for charset ISO8859-4 is lacking.
twm: warning: font for charset ISO8859-5 is lacking.
twm: warning: font for charset KOI8-R is lacking.
twm: warning: font for charset ISO8859-7 is lacking.
twm: warning: font for charset ISO8859-9 is lacking.
twm: warning: font for charset ISO8859-13 is lacking.
twm: warning: font for charset ISO8859-14 is lacking.
twm: warning: font for charset ISO8859-15 is lacking.
twm: warning: font for charset JISX0208.1983-0 is lacking.
twm: warning: font for charset KSC5601.1987-0 is lacking.
twm: warning: font for charset GB2312.1980-0 is lacking.
twm: warning: font for charset JISX0201.1976-0 is lacking.
twm: warning: font for charset ISO10646-1 is lacking.
xinit: connection to X server lost

waiting for X server to shut down XIO:  fatal IO error 0 (Success) on X server ":0"
      after 1965 requests (1965 known processed) with 0 events remaining.
Server terminated successfully (0). Closing log file.


I don't get anything about XSession or Openbox. My guess would be it's still trying to run openbox somehow.
User avatar
Moderator
Moderator
Posts: 2888
Joined: Mon Jan 09, 2012 3:16 pm
by sam_p_lay » Sat Jan 19, 2013 2:22 pm
Haha it doesn't make life easy does it? I'll re-image again later and not touch Openbox this time.
Posts: 51
Joined: Fri Jan 11, 2013 12:15 am
by sam_p_lay » Thu Feb 07, 2013 10:38 am
Well I've done some benchmarking and thought I'd share the results if anyone's interested. Fair bit of variation so ideally I'd do at least five iterations of each test for a decent average, but it takes 10 minutes to complete each run on the R-Pi (they say it will take 4 minutes!) so means my computer is out of action for a while while I'm benchmarking. Here they are anyway:

Browsermark 2.0 - Midori on Raspbian, 1920x1080x16, 950MHz/450MHz/450MHz/6
(results after the first batch are purely running X+WM+terminal+Midori, while first batch is a default graphical Raspbian boot with no additional applications running)

Raspbian default environment (LXDE)
857
883
1028
1048
1082
(979.6 mean)

Openbox
1085
1104
1223
(1137.33 mean)

Enlightenment 17
1099
1178
1260
(1179 mean)

Matchbox
1154
1192
1210
(1185.33 mean)

XFWM
1142
1196
1219
(1185.66 mean)

IceWM
1186
1194
1274
(1218 mean)

FLWM
1169
1210
1280
(1219.66 mean)

Fluxbox
1166
1223
1225
1250
1290
(1230.8 mean)

Fluxbox @ stock clocks
971
1139
1222
(1110.66 mean)

Fluxbox @ 1920x1080x32
1252

LXDE @ 1920x1080x32
1059

R-Pi Bodhi default environment (Enlightenment 17)
449
597
614
641
713
(602.8 mean)

Arch with Fluxbox
191
192
202
(195 mean)

Arch results are surprisingly low, not sure what's going on there. From a fresh install I just created a user (which I didn't use since it kept telling me they have no permissions for stuff even though I added the user to most groups), gen/set locale, installed X, Fluxbox, GTK, Midori, alsa, sudo, few other basics, added Wi-Fi connection to .xinitrc, then to test, startx, terminal and Midori from a fresh boot.

I may try Puppy but I'll probably just go back to Fluxbox on Raspbian.
Posts: 51
Joined: Fri Jan 11, 2013 12:15 am
by andruoid » Thu Mar 14, 2013 5:45 pm
I'm slowly learning the GNU/Linux system myself and also want a faster browsing experience on the Pi. I'm not too concerned how the page is displayed, just as long as it's ledgable. :) Going to the moble version of a site can help things dramatically, plus it kills the ads being displayed. eg; m.facebook.com or GMail choose mobile or basic HTML in NetSurf.

I don't like LXDE and in the past prefer Fluxbox, Openbox and the like. Right now I have Openbox as the only window manager installed. Dillo and Midori go as well. As soon as I run Rasberian for the first time I uninstall all things LXDE;

sudo apt-get remove midori dillo lxde lxappearance lxinput lxpanel lxrandr lxsession
lxsession-edit lxshortcut lxtask

I create a .xinitrc file using nano and enter;

exec openbox

save and close and type:

startx

right click on the black screen to bring up the menu.

As for a browser I've been using Web. http://code.google.com/p/minimal-web-browser/ It's very quick but has some drawbacks. All you get is a Back, Home and JavaScript button (you can toggle JS on/off at your leisure) on the toolbar. Also right clicking on the page gets you a Back, Forward, Reload and Stop action. That's it, no Menu, Bookmarks or options at all. I rather like it, helps my typing if i have to go anywhere instead of clicking a link. ;-)

Other option is to use Lynx which is a commandline browser, takes some getting use to and is another alternative.

Hope some of this helps!
Posts: 17
Joined: Tue Dec 25, 2012 9:25 pm
by mikerr » Mon Mar 18, 2013 12:14 pm
I've been having a go at using a Pi as a silent web browsing box

It's more about RAM usage than CPU IMO:

A 256mb Pi struggles with RAM when using LXDE/Midori on many web pages - particularly if you use tabs - keep them to a minimum
- and using a split of 240/16 is quite a lot faster than the normal 192/64 when web browsing (lose omxplayer with less than 64Meg GPU though)

I'm tempted to switch to my 512Mb Pi which will have more free mem - but where's the challenge in that ? ;)

Openbox may be slightly faster but I really need LXDE and midori for a minimum nice level,
I might have a further play with "web" source code though.

Adblocking via hosts file can help too - see here for setting that up and blanking out the errors with a lightweight web server.
viewtopic.php?f=63&t=37331
Got a Pi Camera? View it in my android app - Raspicam Remote ! No software required on the pi
User avatar
Posts: 955
Joined: Thu Jan 12, 2012 12:46 pm
Location: NorthWest, UK
by Markodius » Wed Mar 20, 2013 10:45 pm
Significant performance increase can be obtained by installing Raspbian to hard drive rather than SDCard. It's a bit of a pain but it's worth it - no pain no gain.
"We are the Mysterons and we know you can hear us"
― The Mysterons
Posts: 111
Joined: Fri Jan 04, 2013 11:14 pm
by Gomoto » Thu Mar 21, 2013 1:18 pm
You could compile this browser from source:

git clone https://code.google.com/p/minimal-web-browser/

I also had the need for faster browsing on the raspberrypi. This one boots in less than a second. Javascript is off by default for faster browsing on add heavy sites, but scripting support is only on click away.
Raspberry Pi Model B 512 MB @ 900/250/450 Mhz, 64 MB GPU, Raspian 09.02.13, HDMI 1980x1050
Posts: 96
Joined: Tue Feb 12, 2013 1:21 am
by Gomoto » Sat Mar 23, 2013 10:54 am
(Browsermark 2.0)
web minimal-web-rowser / openbox / rasbian
1284

chromium / openbox / raspian
259

(to be fair chromium does not feel much slower while browsing after it is up and running, main difference is the start up speed, I do not think browsermark reflects browsing experience very well)
Raspberry Pi Model B 512 MB @ 900/250/450 Mhz, 64 MB GPU, Raspian 09.02.13, HDMI 1980x1050
Posts: 96
Joined: Tue Feb 12, 2013 1:21 am