VectorLinux

The nuts and bolts => Technical General => Topic started by: Kerstin on November 08, 2007, 07:22:22 am

Title: Starting programs suddenly very slow.
Post by: Kerstin on November 08, 2007, 07:22:22 am
As the topic says, starting programs are suddenly going very slow. Example when I installed VL it took very few seconds to start eg. Firefox, now it take about 10-12 sec. Its the same symptoms for other programs. Cant figure out what i have done. Could anyone point out the direction for me where to start looking for the problem?
Title: Re: Starting programs suddenly very slow.
Post by: bigpaws on November 08, 2007, 07:34:02 am
Look at /var/log/messages /var/log/syslog and /var/log/faillog

Those are a couple places to look.

Any changes in hardware of updates?

Bigpaws
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 08, 2007, 07:58:48 am
Nothing suspicious in logs, either no changes in hardware(just had some problems configuring my two nics). Once the programs has started they run just fine, weird...
Title: Re: Starting programs suddenly very slow.
Post by: lagagnon on November 08, 2007, 08:09:43 am
Did you do an mark all upgrades and execute in gslapt? Launch Firefox from a terminal and see if you get any error messages in the terminal. Also run "top" or "htop" and see if you have some runaway process consuming CPU. Then run "free" and see if for some reason you are using swap memory? Post the output of those commands to the thread if you don't understand what they are telling you, or better yet read "man top" and "man free" before you run the commands.
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 08, 2007, 08:58:22 am
Hmm.. seems to be an Internet related issue. All other programs starts quickly but when i try Firefox or Enemy territory it takes forever. Tried to reconfigure the network through vasm but still the same issue.
Title: Re: Starting programs suddenly very slow.
Post by: lagagnon on November 08, 2007, 09:05:03 am
...All other programs starts quickly but when i try Firefox or Enemy territory it takes forever. ....
Ahh, that's not what you said in your first post, you said: "Its the same symptoms for other programs". Anyways, try pinging your local ISP: eg, "ping www.uniserve.com". The response time should be in the order of 10's to 100's of milliseconds, no more than that. If that is what you get then your Intnernet connection is fine and it is something more serious. Do you have any sort of firewall other than the VL default? Did you play with VL's firewall settings?
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 08, 2007, 09:56:19 am
Sorry about that  ::), anyway the ping is just fine and i have not touched the firewall...
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 09, 2007, 02:52:11 am
Ok, now I found the issue. Its seems like there is a problem regarding DNS. If i remove the dns servers everything is just fine and firefox etc starts up as normally and i can ping eg google. But as soon as i restart my inet and resolves the dns servers then the problem is back.  ???

Suggestions ?
Title: Re: Starting programs suddenly very slow.
Post by: lagagnon on November 09, 2007, 08:18:34 am
Check your /etc/resolv.conf file. Are you using a router? If so your resolv.conf file should look something like this:

# Generated by dhcpcd for interface eth0
search uniserve.com
nameserver 192.168.0.1

,,,where you replace "uniserve.com" with your ISP base address and the nameserver IP address is the address of your router.
Title: Re: Starting programs suddenly very slow.
Post by: Joe1962 on November 09, 2007, 09:19:09 am
Sounds like you're using DHCP, so the nameservers are set up for you. A workaround for firefox might be setting the home page to blank. At least then it should load fast.
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 09, 2007, 10:30:07 am
Im using DHCP, no router. just thinking that it is wierd since everything worked ok until i tried to configured my two nic's. Now i cant get hold of it.
Title: Re: Starting programs suddenly very slow.
Post by: bigpaws on November 11, 2007, 09:43:20 pm
Your routing is the problem in that having 2 NICS creates
a loop per se looking for DNS. Bring down one of the NICS and
then test again. I think you did that according to a previous post.

If you wish to use 2 NICS then look at iproute2 which should
get you setup on the default route for each NIC.

HTH

Bigpaws
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 21, 2007, 11:34:21 am
Still no solution to this  :(. never had this problem with ubuntu...
Title: Re: Starting programs suddenly very slow.
Post by: lagagnon on November 21, 2007, 12:26:38 pm
Did you follow bigpaws recommendations above?
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 21, 2007, 12:59:33 pm
Yes.. It makes no difference any longer how i configure my nics or which one i use to connect to Internet. Tried to shut down one but still the same issue. Dont know how to use iproute2.

Title: Re: Starting programs suddenly very slow.
Post by: Pita on November 22, 2007, 02:54:05 am
I have never seen Firefox or Seamonkey on the first launch come up in less then 15 seconds with a blank page in any distro. The second launching takes usually 7 sec.
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 22, 2007, 03:17:19 am
Anyhow.. starting Enemy territory, usually takes 5-8 sec, takes about a 1 min now. Starting a virtual machine in Virtualbox takes about the same. It's clearly something wrong...
Title: Re: Starting programs suddenly very slow.
Post by: lagagnon on November 22, 2007, 07:54:32 am
Kerstin: in my first response to this thread you started I asked you some questions (Nov 8) which you still haven't answered, the answers to some of those and the output posted to this thread might help you resolve your problem. We need some more details from your system to help you.

Also, are you multi-booting that machine and if so, do you get the same slow response on other distros? Try a Live Linux CD, such as Slax, and see if you get the same poor performance from opening programs.

There seems to be a definite network problem. Please post the output also from the following commands run as root in a terminal:

ifconfig
route -n
cat /etc/resolv.conf
cat /etc/rc.d/rc.inet1
cat /etc/rc.d/rc.inet2

Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 22, 2007, 08:35:25 am
Kerstin: in my first response to this thread you started I asked you some questions (Nov 8) which you still haven't answered, the answers to some of those and the output posted to this thread might help you resolve your problem. We need some more details from your system to help you.

Also, are you multi-booting that machine and if so, do you get the same slow response on other distros? Try a Live Linux CD, such as Slax, and see if you get the same poor performance from opening programs.

There seems to be a definite network problem. Please post the output also from the following commands run as root in a terminal:

ifconfig
route -n
cat /etc/resolv.conf
cat /etc/rc.d/rc.inet1
cat /etc/rc.d/rc.inet2



Sorry about that, believe me that i appreciate all the help.

ok here we go:

root:# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:DC:F3:CB:50
          inet addr:83.XXX.XX.127  Bcast:83.XXX.XX.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:800 errors:0 dropped:0 overruns:0 frame:0
          TX packets:756 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:513268 (501.2 KiB)  TX bytes:263437 (257.2 KiB)
          Interrupt:19 Base address:0x6d00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

root:# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
83.XXX.XX.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         83.XXX.XX.1     0.0.0.0         UG    0      0        0 eth0

root:# cat /etc/resolv.conf
# Generated by dhcpcd for interface eth0
nameserver 82.209.169.71
nameserver 82.209.169.72

root:# cat /etc/rc.d/rc.inet1

#!/bin/sh
# This file is supposed to be created by vnetadd
# and modified by vnetset.
# You can modify it by hand, but be careful ;-)
#
# GNU GPL  (c) Eko M. Budi, 2004
#          (c) Vector Linux, 2004
#

###########################################################
## The settings
DEVICE='eth0'
DHCP='yes'
IPADDR='127.0.0.1'
NETMASK='255.255.255.0'
GATEWAY=''
PROBE='no'

###########################################################
## The script

## You may make customized script here
## If not, source the standard network
. /etc/rc.d/functions-network "$@"

Edit: I ran ubuntu live-cd and everything is ok there.
Title: Re: Starting programs suddenly very slow.
Post by: lagagnon on November 22, 2007, 05:11:38 pm
Kerstin: there is nothing particularly obviously wrong with your network configuration files, at least from what I can see. You mentioned that a ping to your server was fast - was it in the order of 10's of milliseconds? Try that and report back.

The only thing I can think of now is you somehow have a corrupt system for one reason or other. I asked you before but you never replied - did you do a system upgrade with gslapt? Do you have a lot of data? Could you not try a re-install perhaps?  This is a last resort but what you experiencing is not normal and suggests a bad install or bad setup originally or a corruption from some bad upgrade process....
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 22, 2007, 11:15:59 pm
I did a system upgrade. Going to follow your recommendation and do a reinstall before I go nuts. Anyway thanks for all the effort :-)
Title: Re: Starting programs suddenly very slow.
Post by: lagagnon on November 23, 2007, 07:37:42 am
I did a system upgrade.
Kerstin: system upgrades are not really recommended, nor necessary in the Linux world. It is possible to do them of course with gslapt, but they are rarely necessary and tend to cause more problems than they solve. The only valid reasons for upgrading would be to upgrade a specific package due to serious security concerns with an old version or to enable new features in a new version of a package.
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on November 23, 2007, 08:14:28 am
Ok.. But i did that AFTER the problem to seen if that would make any difference. I'm aware of that it is not necessary to upgrade(in that case i would stick to ubuntu  ;))
Title: Re: Starting programs suddenly very slow.
Post by: Kerstin on December 19, 2007, 09:27:45 am
Alright. did a complete reinstall and now everything is just fine  :D . Firefox etc. starts in a few seconds as it suppose to do in vectorlinux, you just gotta love it :-D
Title: Re: Starting programs suddenly very slow.
Post by: newt on December 19, 2007, 11:40:29 am
Regarding slow Firefox performance:
FWIW, I recently noticed that if root uses the built-in 'Upgrade' feature of Firefox that the responsiveness of firefox (and all other gecko-related programs) is negatively affected.  I don't know if you had performed this action prior to your complete reinstall, but if you had then that could be the culprit for the slow responsiveness of firefox.  I had done this myself and noticed the degraded performance, however it was easily fixed by upgrading the installed firefox package through gslapt to the latest.