[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: FC3- System Takes Minutes To Open Any Application



On Thu, 2004-12-09 at 12:06 +0530, Amit Rana wrote:
> I tried some other things which might be usefull in finding the
> problem. Please help.
> 
> >You might also consider trying booting into "single user mode". next
> time you reboot,
> I did that, soon after I got the prompt I ran top command. Load
> Average was 1.75 but after about 30 secs it came down to normal .3
> After which system was running fast. BTW during normal boot if I do
> not do anything for long and work only in the console system behaves
> ok.
> 
> >free -m
> total used free shared buffers cached
> Mem: 503 34 469 0 3 17
> -/+ buffers/cache: 13 490
> Swap: 1019 0 1019
> 
> >vmstat
> ocs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
> r b swpd free buff cache si so bi bo in cs us sy id wa
> 0 0 0 481184 3552 17164 0 0 142 11 1012 78 5 4 83 9
> 
> >Then issue the "telinit 3" command, this will start the computer in
> "runlevel" 3
> Did that, as usual, initiallly load was high, system was slow but
> after sometime it was VERY fast (good)
> 
> >vmstat
> rocs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
> r b swpd free buff cache si so bi bo in cs us sy id wa
> 0 0 0 412432 9444 43556 0 0 169 60 1019 102 4 3 73 20
> 

The wait time means the processor is waiting for IO.  This is usually
delays in reading/writing data from a drive.  

On one of my PCs I saw this condition when a drive was beginning to fail
and it made major delays in IO.  Replacing the drive fixed it for me.

> >free -m
> total used free shared buffers cached
> Mem: 503 101 402 0 9 42
> -/+ buffers/cache: 49 454
> Swap: 1019 0 1019
> 
> Notice cpu waiting time is increasing, I have output of ps -efl
> command stored during this stage let me know if you need that.
> 
> >If you have KDE installed (one of the two windows managers) type in
> "startkde" now
> I ran startx and it took minutes (10+) to come up. following is output
> of some commands I ran while waiting for xwindows to come up
> 
> vmstat
> procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
> r b swpd free buff cache si so bi bo in cs us sy id wa
> 0 2 0 316752 16048 96556 0 0 130 41 1018 63 2 2 49 48
> 
> I have output of ps -efl also
> 
> >time eclipse
> real 9m57.727s
> user 0m22.522s
> sys 0m1.692s
> 
> >also please post the last 20-30 lines from your /var/log/messages
> Dec 9 11:35:10 localhost kernel: SELinux: initialized (dev hda6, type
> ext3), uses xattr
> Dec 9 11:35:11 localhost kernel: SELinux: initialized (dev tmpfs, type
> tmpfs), uses transition SIDs
> Dec 9 11:35:11 localhost kernel: SELinux: initialized (dev hda3, type
> vfat), uses genfs_contexts
> Dec 9 11:35:11 localhost kernel: Adding 1044184k swap on /dev/hda7.
> Priority:-1 extents:1
> Dec 9 11:35:11 localhost kernel: SELinux: initialized (dev
> binfmt_misc, type binfmt_misc), uses genfs_contexts
> Dec 9 11:35:11 localhost kernel: parport0: PC-style at 0x378 (0x778)
> [PCSPP,TRISTATE]
> Dec 9 11:35:11 localhost kernel: cs: IO port probe 0x0c00-0x0cff: clean.
> Dec 9 11:35:11 localhost kernel: cs: IO port probe 0x0100-0x04ff:
> excluding 0x170-0x177 0x370-0x37f 0x4d0-0x4d7
> Dec 9 11:35:11 localhost kernel: cs: IO port probe 0x0a00-0x0aff: clean.
> Dec 9 11:35:11 localhost kernel: ip_tables: (C) 2000-2002 Netfilter core team
> Dec 9 11:35:11 localhost kernel: SELinux: initialized (dev rpc_pipefs,
> type rpc_pipefs), uses genfs_contexts
> Dec 9 11:35:11 localhost kernel: i2c /dev entries driver
> Dec 9 11:35:13 localhost kernel: parport0: PC-style at 0x378 (0x778)
> [PCSPP,TRISTATE]
> Dec 9 11:35:13 localhost kernel: lp0: using parport0 (polling).
> Dec 9 11:35:13 localhost kernel: lp0: console ready
> Dec 9 11:35:14 localhost cups: cupsd startup succeeded
> Dec 9 11:35:15 localhost kernel: NET: Registered protocol family 10
> Dec 9 11:35:15 localhost kernel: Disabled Privacy Extensions on device
> 02369a00(lo)
> Dec 9 11:35:15 localhost kernel: IPv6 over IPv4 tunneling driver

You appear to have IPv6 enabled.  This has been known to cause delays as
the system tries to resolve addresses as IPv6 on a network that only
supports IPv4.  The archives make mention of this at times.

This can easily cause major delays in starting X and applications that
run in X. I saw a significant improvement in my system when I disabled
IPv6.
 

> Dec 9 11:35:15 localhost sshd: succeeded
> Dec 9 11:35:15 localhost xinetd: xinetd startup succeeded
> Dec 9 11:35:16 localhost gpm[2455]: *** info [startup.c(95)]:
> Dec 9 11:35:16 localhost gpm[2455]: Started gpm successfully. Entered
> daemon mode.
> Dec 9 11:35:16 localhost gpm[2455]: *** info [mice.c(1766)]:
> Dec 9 11:35:16 localhost gpm[2455]: imps2: Auto-detected intellimouse PS/2
> Dec 9 11:35:16 localhost gpm: gpm startup succeeded
> Dec 9 11:35:16 localhost xinetd[2445]: xinetd Version 2.3.13 started
> with libwrap loadavg options compiled in.
> Dec 9 11:35:16 localhost xinetd[2445]: Started working: 0 available services
> Dec 9 11:35:16 localhost iiim: htt startup succeeded
> Dec 9 11:35:18 localhost htt_server[2486]: started.
> Dec 9 11:35:19 localhost canna: succeeded
> Dec 9 11:35:19 localhost crond: crond startup succeeded
> Dec 9 11:35:20 localhost xfs: xfs startup succeeded
> Dec 9 11:35:21 localhost anacron: anacron startup succeeded
> Dec 9 11:35:21 localhost xfs[2538]: ignoring font path element
> /usr/X11R6/lib/X11/fonts/Speedo (unreadable)
> Dec 9 11:35:21 localhost atd: atd startup succeeded
> Dec 9 11:35:22 localhost messagebus: messagebus startup succeeded
> Dec 9 11:35:22 localhost cups-config-daemon: cups-config-daemon
> startup succeeded
> Dec 9 11:35:22 localhost haldaemon: haldaemon startup succeeded
> Dec 9 11:35:23 localhost fstab-sync[2603]: removed all generated mount points
> Dec 9 11:35:29 localhost fstab-sync[2628]: added mount point
> /media/cdrecorder for /dev/hdb
> Dec 9 11:35:37 localhost rc: Starting webmin: succeeded
> Dec 9 11:35:42 localhost fstab-sync[3099]: added mount point
> /media/floppy for /dev/fd0
> Dec 9 11:35:42 localhost login(pam_unix)[2640]: session opened for
> user root by LOGIN(uid=0)
> Dec 9 11:35:43 localhost -- root[2640]: ROOT LOGIN ON tty1
> Dec 9 11:36:04 localhost login(pam_unix)[2641]: session opened for
> user root by LOGIN(uid=0)
> Dec 9 11:36:04 localhost -- root[2641]: ROOT LOGIN ON tty2
> Dec 9 11:37:29 localhost kernel: ip_tables: (C) 2000-2002 Netfilter core team
> Dec 9 11:37:29 localhost kernel: eth1: link up, 10Mbps, half-duplex, lpa 0x0000
> Dec 9 11:40:38 localhost gconfd (root-3407): starting (version 2.8.1),
> pid 3407 user 'root'
> Dec 9 11:40:41 localhost gconfd (root-3407): Resolved address
> "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only
> configuration source at position 0
> Dec 9 11:40:41 localhost gconfd (root-3407): Resolved address
> "xml:readwrite:/data/home/root/.gconf" to a writable configuration
> source at position 1
> Dec 9 11:40:41 localhost gconfd (root-3407): Resolved address
> "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only
> configuration source at position 2
> Dec 9 11:44:34 localhost login(pam_unix)[2642]: session opened for
> user root by LOGIN(uid=0)
> Dec 9 11:44:34 localhost -- root[2642]: ROOT LOGIN ON tty3
> Dec 9 11:46:00 localhost gconfd (root-3407): Resolved address
> "xml:readwrite:/data/home/root/.gconf" to a writable configuration
> source at position 0
> 
> >the output from the "df" command,
> [root localhost eclipse]# df -m
> Filesystem 1M-blocks Used Available Use% Mounted on
> /dev/hda5 6023 3965 1753 70% /
> /dev/hda6 2517 2176 214 92% /data
> none 252 0 252 0% /dev/shm
> /dev/hda3 7422 6677 746 90% /mnt/fat32
> [root localhost eclipse]# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hda5 6166948 4059620 1794064 70% /
> /dev/hda6 2577392 2227640 218824 92% /data
> none 257876 0 257876 0% /dev/shm
> /dev/hda3 7599944 6836768 763176 90% /mnt/fat32
> 
> >also attach your ~/.xsession-errors file
> There was no .xsession-errors file
> 
> I was so happy with FC2 :-(
> 
> BTW whenever any application runs it feels as if its running stopping,
> running stopping i.e. not utilising full cpu.
> 
> 
> On Wed, 8 Dec 2004 16:32:44 +0530, Amit Rana <amit rana gmail com> wrote:
> > Hi,
> > I shifted to FC3 last week and since then my system is working SO slow.
> > 
> > P4-M 1.8, 512MB RAM
> > 
> > Load Average is mostly 2+, RAM also get used free soon. Following is
> > the output of top, free, vmstat commands when I was only running
> > firefox and 1 terminal
> > 
> > [root localhost ~]# free -m
> > total used free shared buffers cached
> > Mem: 503 488 15 0 108 141
> > -/+ buffers/cache: 238 265
> > Swap: 1019 0 1019
> > 
> > [root localhost Desktop]# vmstat
> > procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
> > r b swpd free buff cache si so bi bo in cs us sy id wa
> > 1 2 276 6880 99140 178664 0 1 74 29 1041 390 7 2 19 73
> > 
> > [root localhost ~]# top
> > top - 11:30:38 up 2:21, 5 users, load average: 2.20, 2.20, 2.17
> > Tasks: 96 total, 1 running, 94 sleeping, 0 stopped, 1 zombie
> > Cpu(s): 2.7% us, 0.7% sy, 0.3% ni, 0.0% id, 96.3% wa, 0.0% hi, 0.0% si
> > Mem: 515756k total, 503528k used, 12228k free, 112132k buffers
> > Swap: 1044184k total, 276k used, 1043908k free, 145024k cached
> > 
> > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> > 5011 root 15 0 37184 12m 19m S 2.3 2.6 0:03.36 gnome-terminal
> > 4718 root 15 0 73980 20m 56m S 1.0 4.0 0:49.40 X
> > 4659 root 34 19 2512 716 1344 D 0.7 0.1 0:05.93 updatedb
> > 5088 root 17 0 1900 956 1664 R 0.3 0.2 0:00.02 top
> > 1 root 16 0 2260 560 1408 S 0.0 0.1 0:01.09 init
> > 2 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0
> > 3 root 5 -10 0 0 0 S 0.0 0.0 0:00.15 events/0
> > 4 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
> > 5 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
> > 25 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
> > 26 root 15 0 0 0 0 S 0.0 0.0 0:00.12 khubd
> > 
> > When I ran "time eclipse" output was
> > real 10m42.974s
> > user 0m41.593s
> > sys 0m3.002s
> > 
> > Other strange observations:
> > 
> > - On the graphical login screen when I want to choose between gnome
> > and kde, popup window which lets you choose either of the two comes in
> > 5-10mins (this is on startup)
> > Basically complete boot takes over 15mins.
> > - Harddisk activity is never too much.
> > - Another strange thing is when I log off from KDE I always see my
> > gnome wall paper in the background. Is this right?
> > 
> > fdisk -l
> > isk /dev/hda: 30.0 GB, 30005821440 bytes
> > 255 heads, 63 sectors/track, 3648 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> > Device Boot Start End Blocks Id System
> > /dev/hda1 1 4 32098+ de Dell Utility
> > /dev/hda2 * 5 1464 11727450 7 HPFS/NTFS
> > /dev/hda3 1465 2412 7614810 c W95 FAT32 (LBA)
> > /dev/hda4 2413 3648 9928170 f W95 Ext'd (LBA)
> > /dev/hda5 2413 3192 6265318+ 83 Linux
> > /dev/hda6 3193 3518 2618563+ 83 Linux
> > /dev/hda7 3519 3648 1044193+ 82 Linux swap
> > 
> > load average is always 2+
> > 
> > Any help in trying to figure out the problem will be highly appreciated
> >
> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]