You are not logged in.

#1 2009-06-12 07:29:07

r00t_ninja
Member
From: New Zealand
Registered: 2009-06-12
Posts: 17

firefox startup ~18 secs [solved]

im having a problem with Firefox (firefox 3) , the start up time is approximately ~18 seconds , i have tried the pgo build but there wasn't any difference in start up time , my hardware is a bit old , i have a pentium 4 2.8 ghz and 630mb of ddr ram , along with a nvidia fx5500 , i have been using ubuntu for about a year and have just switched to arch linux , on ubuntu firefox only took about 7 seconds to startup for the first time of that session and then if i closed it and started it again it would start up after 1-2 seconds (seems wierd) , is there anything i can do to make firefox start faster and does anyone have any ideas on what could be causing such a slowdown.

additional info: running gnome as my de
                      starting firefox from terminal has given no errors

Last edited by r00t_ninja (2009-06-13 23:37:54)

Offline

#2 2009-06-12 08:43:46

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: firefox startup ~18 secs [solved]

Hello rOOt_ninja smile
Hmm to be faster?
In options there's option that's firefox check that he is defualt browser tou can disable that or you can compile firefox form aur.
Mabye beta and PGO build or try Swiftweasel PGO optimazed for your processor smile


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#3 2009-06-12 09:03:59

r00t_ninja
Member
From: New Zealand
Registered: 2009-06-12
Posts: 17

Re: firefox startup ~18 secs [solved]

i am using firefox pgo build compiled from the aur , sorry if i didn't mension that in my first post.

Offline

#4 2009-06-12 09:24:05

harryNID
Member
From: P3X-1971
Registered: 2009-06-12
Posts: 117

Re: firefox startup ~18 secs [solved]

Hi "r00t_ninja",

First check here:

http://wiki.archlinux.org/index.php/Fir … up_Firefox

for some tips on speeding Firefox up. Pay particular attention to "7 Turning off anti-phishing to speedup Firefox".  That can and will cause Firefox to become slow only after a short time. I build the "firefox-pgo" package from AUR and have noticed recently (don't know if this is a bug) that the "urlclassifier" file in question seems to recreate itself even with the options to turn it off checked. I wound up (and I don't recommend it!) deleting the two scripts that create that file in "/usr/lib/firefox-3.0.11/components/.  As I said I don't recommend going quite that far unless you encounter issues with it like I did.  Also in typical Arch fashion you could hack "/usr/lib/firefox-3.0.11/run-mozilla.sh" as I have and that will definitely make Firefox start faster. Again, I would advise against that unless you know what you are doing as one wrong move and Firefox won't start. If you don't feel safe deleting "urlclassifier" then you can try this command (nicked from the forum here).

find ~/.mozilla/firefox/${current_profile} -name '*.sqlite' -exec sqlite3 '{}' 'VACUUM;' \;

It's supposed to optimize Sqlite3 databases. I made a small script called "firefast.sh" so I can call it anytime without having to type that whole thing in.

If that ("urlclassifier") is not it then I would check out your GTK theme. A heavy one can affect speed throughout all you programs. I run on a P4 system and Firefox starts in about 3 seconds for me.

Good Luck

Last edited by harryNID (2009-06-12 09:25:35)


In solving a problem of this sort, the grand thing is to be able to reason backward. That is a very useful accomplishment, and a very easy one, but people do not practice it much. In the everyday affairs of life it is more useful to reason forward, and so the other comes to be neglected. There are fifty who can reason synthetically for one who can reason analytically.  --Sherlock Holmes

Offline

#5 2009-06-12 09:35:41

r00t_ninja
Member
From: New Zealand
Registered: 2009-06-12
Posts: 17

Re: firefox startup ~18 secs [solved]

i have turned off anti-phishing , my gtk theme is just the clearlooks theme  ,  ill backup my run-mozilla.sh and then muck around with it a bit , firefox seems to do nothing for a quite a while when i start it.

Offline

#6 2009-06-12 13:21:07

arkham
Member
From: Stockholm
Registered: 2008-10-26
Posts: 516
Website

Re: firefox startup ~18 secs [solved]

r00t_ninja wrote:

im having a problem with Firefox (firefox 3) , the start up time is approximately ~18 seconds , i have tried the pgo build but there wasn't any difference in start up time , my hardware is a bit old , i have a pentium 4 2.8 ghz and 630mb of ddr ram , along with a nvidia fx5500 , i have been using ubuntu for about a year and have just switched to arch linux , on ubuntu firefox only took about 7 seconds to startup for the first time of that session and then if i closed it and started it again it would start up after 1-2 seconds (seems wierd) , is there anything i can do to make firefox start faster and does anyone have any ideas on what could be causing such a slowdown.

additional info: running gnome as my de
                      starting firefox from terminal has given no errors

Did you setup your /etc/hosts correctly? See http://wiki.archlinux.org/index.php/Beg … tc.2Fhosts


"I'm Winston Wolfe. I solve problems."

~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~

Offline

#7 2009-06-12 16:47:35

ProfessorTomoe
Member
From: Garland, TX
Registered: 2008-02-12
Posts: 61

Re: firefox startup ~18 secs [solved]

Another question for you - what file systems are you running?  I found that Firefox started up considerably slower after I switched from ext3 to ext4.  No amount of optimization fixed the problem.  Getting rid of ext4 did, though.

Here's what I'm running now:

/dev/sdb2  /       ext3         defaults,noatime 0 2           #had been ext3
/dev/sdb1  /boot   ext3         defaults,noatime 0 1           #had been ext3
/dev/sdb3  swap    swap         defaults 0 0
/dev/sdb5  /usr    ext3         defaults,noatime 0 2           #had been ext4
/dev/sdb6  /var    reiserfs     defaults 0 2
/dev/sdb7  /tmp    ext3         defaults,noatime 0 2           #had been ext4
/dev/sdb8  /home   jfs          defaults,noatime,errors=remount-ro 0 3     #had been ext4
/dev/sda1  /mnt/FNORD_101      ntfs-3g         uid=500,gid=100,fmask=0113,dmask=0002,locale=en_US.UTF-8 0 0

The speed difference is astonishing.

Last edited by ProfessorTomoe (2009-06-12 16:52:06)

Offline

#8 2009-06-12 21:20:33

r00t_ninja
Member
From: New Zealand
Registered: 2009-06-12
Posts: 17

Re: firefox startup ~18 secs [solved]

i am using ext4 , maybe that the problem , i didn't upgrade from ext3 though if thats what your meaning.

Offline

#9 2009-06-13 02:10:55

ProfessorTomoe
Member
From: Garland, TX
Registered: 2008-02-12
Posts: 61

Re: firefox startup ~18 secs [solved]

r00t_ninja wrote:

i am using ext4 , maybe that the problem , i didn't upgrade from ext3 though if thats what your meaning.

I actually switched by backing up the data on my ext3 partitions to an external drive via rsync, doing a fresh reformat to ext4, then restoring the data to the new, empty partitions via rsync.  In other words, I didn't "upgrade" either. smile

Offline

#10 2009-06-13 02:17:37

droog
Member
Registered: 2004-11-18
Posts: 877

Re: firefox startup ~18 secs [solved]

I think op's problem of 18 seconds to start firefox has nothing to do with the filesystem, It's just too far fetched for that big of a difference. I don't know what the problem is but it's not filesystem, If it is then thats insane..

Offline

#11 2009-06-13 02:32:00

r00t_ninja
Member
From: New Zealand
Registered: 2009-06-12
Posts: 17

Re: firefox startup ~18 secs [solved]

ok ive been messing around with stuff for abit , im back with the normal firefox official mozila and iv got the start time down to 11 seconds , anyone have any ideas , also should my /etc/hosts look like this :

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
192.168.1.195 localhost sam-desktop
# End of file

my router uses dhcp but i have reserved 192.168.1.195 for this computer.

Offline

#12 2009-06-13 09:25:57

harryNID
Member
From: P3X-1971
Registered: 2009-06-12
Posts: 117

Re: firefox startup ~18 secs [solved]

Hi "r00t_ninja"

According to the Wiki:

/etc/hosts

This file associates IP addresses with hostnames and aliases, one line per IP address. For each host a single line should be present with the following information:

<IP-address> <hostname> [aliases...]

Add your hostname, coinciding with the one specified in /etc/rc.conf, as an alias, so that it looks like this:

127.0.0.1   localhost.localdomain   localhost yourhostname

Note: This format, including the 'localhost' and your actual host name, is required for program compatibility! Errors in this entry may cause poor network performance and/or certain programs to open very slowly, or not work at all. This is a very common error for beginners.

If you use a static IP, add another line using the syntax: <static-IP> <hostname.domainname.org> <hostname> e.g.:

192.168.1.100 yourhostname.domain.org  yourhostname

So mine looks like this:

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1        localhost.localdomain    localhost     harry

I use dhcpd without a router so mine looks like the first example. I don't think this will help you much but it might give you an example to help narrow the problem down. Also did you make sure to add your "hostname" to "rc.conf"? They must match.

Last edited by harryNID (2009-06-13 09:39:53)


In solving a problem of this sort, the grand thing is to be able to reason backward. That is a very useful accomplishment, and a very easy one, but people do not practice it much. In the everyday affairs of life it is more useful to reason forward, and so the other comes to be neglected. There are fifty who can reason synthetically for one who can reason analytically.  --Sherlock Holmes

Offline

#13 2009-06-13 10:05:32

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: firefox startup ~18 secs [solved]

The line must read

127.0.0.1   localhost.localdomain   localhost yourhostname

in your case

127.0.0.1 localhost sam-desktop

if you omit localhost.localdomain I believe it will work just as well.

As for the wiki saying to add another line if you have a static ip .... doesn't make much sense if things work with dhcp it should work just as well with a static ip without adding any extra lines but maybe someone knows better.

Edit:
Added second code section for completion.

Last edited by R00KIE (2009-06-13 10:07:23)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#14 2009-06-13 23:37:07

r00t_ninja
Member
From: New Zealand
Registered: 2009-06-12
Posts: 17

Re: firefox startup ~18 secs [solved]

YAY problem solved , i had my /etc/hosts configured incorrectly , now firefox starts in 2 - 3 seconds , thank you all so much for helping. smile

Offline

#15 2010-03-19 12:10:31

gnu_D
Member
From: Macedonia
Registered: 2007-10-21
Posts: 46

Re: firefox startup ~18 secs [solved]

I know this topic is old, but for a reference.
On every firefox upgrade, if one run this>

# Make a backup of the firefox binary.
sudo cp /usr/lib/firefox-3.6/firefox /usr/lib/firefox-3.6/firefox_backup
# Apply a compression of level 9.
upx -9 /usr/lib/firefox-3.6/firefox

Then Firefox will fly smile.

P.S> install upx from community, e.g pacman -Sy upx


:: Python powered FOREVER ::

Offline

Board footer

Powered by FluxBB