LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-06-2014, 02:36 PM   #1
ibrunton
LQ Newbie
 
Registered: Jan 2014
Location: Canada
Distribution: Slackware
Posts: 15

Rep: Reputation: Disabled
Webkitgtk browsers (dwb and luakit) very slow on Slack64/14.1


On a fresh install of Slackware64 14.1, I installed webkitgtk and its dependencies from SBo, and the luakit and dwb browsers and their dependencies. However, both browsers perform very slowly. Sometimes they'll take upwards of 30 seconds to load a webpage that doesn't have any significant javascript. Using the same browsers (same versions, same config files) on Gentoo, they're quite fast, especially dwb. I'm not getting any error messages when I launch these browsers from the console. Firefox (v. 24, shipped with the distro) and other network applications seem to run at normal speed.

Can anyone suggest either how to speed things up, or how to diagnose the problem?

webkitgtk took a very long time to build, even with the Core i7 processor and 6GB of RAM, but it did build successfully. I used the GTK2 version and haven't tried the GTK3 version; would that make a difference?
 
Old 01-06-2014, 03:40 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Webkitgtk 2.x should be built against GTK+3.x for best results. Have you also resolved all the dependencies? Here's the known up to date list for webkitgtk-2.2.3

Gperf-3.0.4
gst-plugins-base-1.2.1
GTK+-3.10.6
ICU-52.1
libsecret-0.16
libsoup-2.44.2
libwebp-0.3.1
MesaLib-9.2.4
Ruby-2.0.0
SQLite-3.8.2
udev-extras (GUdev)*
Which-2.20
enchant-1.6.0
GeoClue-0.12.0
gobject-introspection-1.38.0
GTK-Doc-1.19 (optional)
MathML-2.0 (optional)

(*) I'm not certain if Slackware provides udev-extras gudev package.

For webkigtk-1.x (version 1.10.2 or better) should be built against the following:

Gperf-3.0.4
gst-plugins-base-0.10.36
GTK+-2.24.22
ICU-52.1
libsoup-2.44.2
MesaLib-9.2.4
Ruby-2.0.0
SQLite-3.8.2
Which-2.20
enchant-1.6.0
GeoClue-0.12.0
cURL-7.33.0
gobject-introspection-1.38.0
GTK-Doc-1.19 (optional)
MathML-2.0 (optional)

Plus to speed up the build time you can also use make -j# flags and replace the # sign with the number of cores per CPU you have such as for example make -j6 if you have a CPU with 6-cores.

Last edited by ReaperX7; 01-06-2014 at 03:41 PM.
 
Old 01-06-2014, 03:48 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by ReaperX7 View Post
Plus to speed up the build time you can also use make -j# flags and replace the # sign with the number of cores per CPU you have such as for example make -j6 if you have a CPU with 6-cores.
The Slackbuild for webkitgtk explicitly builds the software with -j1, which explains the long build times. This is usually only done when the build fails with a higher number of threads.
 
Old 01-06-2014, 03:59 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
just FYI I just tried building them (and the dependencies of both from SBo) and everything went fine: they look also very fast here.
 
Old 01-06-2014, 04:02 PM   #5
ibrunton
LQ Newbie
 
Registered: Jan 2014
Location: Canada
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
just FYI I just tried building them (and the dependencies of both from SBo) and everything went fine: they look also very fast here.
Hmm, maybe I missed a dependency somewhere. I'll double-check everything. I know I didn't explicitly install everything from ReaperX7's list because not all of those are listed on SBo as dependencies---some of them are included in stock Slackware 14.1, but it's possible not everything is accounted for.
 
Old 01-06-2014, 09:01 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
That list comes from BLFS, not SBo. Yes, Slackware does have many of those by default so they might not get a full listing, but there are several libraries that can aid and assist with certain functionality with a project provided they are installed. The BLFS list might be more comprehensive of a list as it lists Required, Recommended, and Optional packages you might want.

There are only a handful of projects I know of or have come across that refuse to accept anything other than -j1 with makeopts. Usually however, my build environment has -j2 always set to reduce the overhead of those compiles. Unless projects have specifically said -j2 or higher will fail, and -j1 must be used, I always go multi-core.
 
Old 01-08-2014, 08:09 AM   #7
ibrunton
LQ Newbie
 
Registered: Jan 2014
Location: Canada
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
Compiling with -j2 (or greater) wouldn't have any effect on the speed of the browser once it's compiled, would it? I notice that the ebuild file for Gentoo's version of webkitgtk also explicitly specifies "make -j1", with a comment to the effect that multi-thread compiling sometimes fails.
 
Old 01-08-2014, 08:17 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by ibrunton View Post
Compiling with -j2 (or greater) wouldn't have any effect on the speed of the browser once it's compiled, would it?
no, it shouldn't.

Last edited by ponce; 01-08-2014 at 08:18 AM.
 
Old 01-08-2014, 11:13 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by ibrunton View Post
Compiling with -j2 (or greater) wouldn't have any effect on the speed of the browser once it's compiled, would it? I notice that the ebuild file for Gentoo's version of webkitgtk also explicitly specifies "make -j1", with a comment to the effect that multi-thread compiling sometimes fails.
The -j flag is a parameter of the make command, that tells make how many threads/processes to use to compile the software. It has no effect at all on the compiled software itself.
 
Old 01-08-2014, 11:20 AM   #10
ibrunton
LQ Newbie
 
Registered: Jan 2014
Location: Canada
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
I recompiled webkitgtk against GTK3, using the same config as my Gentoo build of the same package. The browsers are still ridiculously slow on Slackware. 2.5 hours of compiling wasted.

The only dependency from ReaperX7's list that I'm not sure about is udev-extras/GUdev, but I can't find a script for it anywhere so it might be included in stock Slackware under a different name.
 
Old 01-08-2014, 12:48 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I will build and test dwb on my machine, if it runs fast I will upload the packages to my server, so that you can download and test them.

EDIT: OK, done that, and as I expected dwb is as fast as it could be on my machine. You can download my packages for it here to give it a try: http://slackeee.de/slackware/unofficial/dwb/

Last edited by TobiSGD; 01-08-2014 at 02:53 PM.
 
Old 01-08-2014, 03:47 PM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
GUdev is not part of Slackware due to the fact Slackware uses the Classic-udev-standalone package, and not the systemd-udev-extracted package. I doubt it was part of the original udev also, but you probably could take a look at the Slackware udev source and find out.

Webkitgtk browsers often are not as fast as browsers possibly built from xulrunner like FireFox and SeaMonkey. However, any software could be dependent on your system as well specification-wise as to performance. However, this doesn't mean they aren't working correctly.
 
Old 01-08-2014, 04:10 PM   #13
ibrunton
LQ Newbie
 
Registered: Jan 2014
Location: Canada
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Webkitgtk browsers often are not as fast as browsers possibly built from xulrunner like FireFox and SeaMonkey. However, any software could be dependent on your system as well specification-wise as to performance. However, this doesn't mean they aren't working correctly.
In my Gentoo installation on the same hardware, DWB is very fast.
 
Old 01-14-2014, 02:55 PM   #14
ibrunton
LQ Newbie
 
Registered: Jan 2014
Location: Canada
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
I will build and test dwb on my machine, if it runs fast I will upload the packages to my server, so that you can download and test them.

EDIT: OK, done that, and as I expected dwb is as fast as it could be on my machine. You can download my packages for it here to give it a try: http://slackeee.de/slackware/unofficial/dwb/
I appreciate your taking the time to do this! Unfortunately, dwb is still quite slow on my Slackware.
 
Old 01-14-2014, 03:08 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Have you tried to run it from a terminal to see if there are any error messages?
If the same packages are running fast on my machine, but slow on yours I would think that not the packages, but the underlying system is at fault.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Luakit not saving cookies crosstalk Linux - Software 0 02-04-2013 09:45 PM
Web browsers slow and unresponsive. redir Linux - Networking 2 10-29-2009 01:07 PM
all browsers are slow lindberg.bill Slackware 18 01-25-2007 02:35 PM
browsers very, very slow on suse why? Onnozel SUSE / openSUSE 1 03-19-2005 07:49 PM
browsers very very slow to load pages robinmckenzie Linux - Software 0 09-03-2003 04:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration