LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-18-2004, 09:31 PM   #1
yoyoguy2
LQ Newbie
 
Registered: Feb 2004
Posts: 29

Rep: Reputation: 15
fedora 1 INCREDIBLY slow


over the last few weeks it's gotten much slower, like 10-15 seconds to open an xterm window slow. i think it's because i have a ton of processes taking up memory somehow, free says

Code:
           total       used       free     shared    buffers     cached
Mem:        514580     507924       6656          0     114832     171344
-/+ buffers/cache:     221748     292832
Swap:      1044216       2564    1041652
and i ran ps-e and it says i've got all this stuff going too

Code:
   
 PID TTY          TIME CMD
    1 ?        00:00:04 init
    2 ?        00:00:00 keventd
    3 ?        00:00:00 kapmd
    4 ?        00:00:00 ksoftirqd/0
    6 ?        00:00:00 bdflush
    5 ?        00:00:00 kswapd
    7 ?        00:00:00 kupdated
    8 ?        00:00:00 mdrecoveryd
   12 ?        00:00:00 kjournald
   80 ?        00:00:00 khubd
 4291 ?        00:00:00 kjournald
 4292 ?        00:00:00 kjournald
 4347 ?        00:00:00 knodemgrd_0
 4348 ?        00:00:00 knodemgrd_1
 4674 ?        00:00:00 dhclient
 4731 ?        00:00:00 syslogd
 4735 ?        00:00:00 klogd
 4763 ?        00:00:00 portmap
 4783 ?        00:00:00 rpc.statd
 4838 ?        00:00:00 apmd
 4879 ?        00:00:00 smartd
 4896 ?        00:00:00 cupsd
 4952 ?        00:00:00 sshd
 4969 ?        00:00:00 xinetd
 4992 ?        00:00:00 sendmail
 5002 ?        00:00:00 sendmail
 5013 ?        00:00:00 gpm
 5023 ?        00:00:00 crond
 5048 ?        00:00:03 xfs
 5067 ?        00:00:00 atd
 5077 ?        00:00:00 dbus-daemon-1
 5100 tty1     00:00:00 mingetty
 5101 tty2     00:00:00 mingetty
 5102 tty3     00:00:00 mingetty
 5103 tty4     00:00:00 mingetty
 5104 tty5     00:00:00 mingetty
 5105 tty6     00:00:00 mingetty
 5106 ?        00:00:00 gdm-binary
 5161 ?        00:00:00 gdm-binary
 5162 ?        00:18:10 X
 5183 ?        00:00:00 startkde
 5238 ?        00:00:00 ssh-agent
 5271 ?        00:00:00 kdeinit
 5274 ?        00:00:00 kdeinit
 5277 ?        00:00:00 kdeinit
 5280 ?        00:00:07 kdeinit
 5303 ?        00:00:00 artsd
 5305 ?        00:00:00 kdeinit
 5306 ?        00:00:00 kwrapper
 5308 ?        00:00:00 kdeinit
 5309 ?        00:00:06 kdeinit
 5311 ?        00:00:53 kdeinit
 5313 ?        00:00:00 kdeinit
 5314 ?        00:00:06 kdeinit
 5315 ?        00:00:00 autorun
 5319 ?        00:00:01 kscd
 5321 ?        00:00:04 kdeinit
 5323 ?        00:00:00 kdeinit
 5326 ?        00:00:00 pam-panel-icon
 5329 ?        00:00:00 xterm
 5330 ?        00:00:02 xterm
 5331 ?        00:00:00 pam_timestamp_c
 5334 pts/1    00:00:00 bash
 5344 pts/2    00:00:00 bash
 5404 ?        00:00:00 kalarmd
 5405 pts/2    00:03:39 top
 5406 pts/1    00:05:17 gaim
 5430 pts/1    00:00:00 run-mozilla.sh
 5436 pts/1    00:38:44 firefox-bin
 5441 pts/1    00:00:00 gconfd-2
 5483 ?        00:00:00 esd
 5505 pts/1    00:00:33 xmms
 5512 pts/1    00:00:00 run-mozilla.sh
 5518 pts/1    00:00:33 thunderbird-bin
 7295 pts/1    00:00:01 xmms
 7415 ?        00:00:00 smbd
 7419 ?        00:00:00 nmbd
 7509 ?        00:00:00 xterm
 7511 pts/3    00:00:00 bash
 7547 pts/3    00:00:00 ps
all i've got open is firefox, firebird, gaim, and xmms, as well as the xterm i ran that in. seems like there's a log going on, and a lot of repeat processes on the list. any help?
 
Old 03-19-2004, 07:31 AM   #2
flipboi
Member
 
Registered: Oct 2003
Location: Manila
Distribution: Fedora Core 2, FreeBSD 5.2.1
Posts: 46

Rep: Reputation: 15
my opinion:

too many daemons brought up during startup. try executing the command "ntsysv" and uncheck those processes that aren't needed.
 
Old 03-19-2004, 07:47 AM   #3
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
As root run the top command. Then hit SHIFT-M. That will sort processes by memory usage and show you processes with the highest memory usage first. SHIFT-P will show you process with the most processor usage first.
I noticed a couple xmms processes along with firefox and thunderbird. I've had mozilla go nuts on me in the past and start using 98% of my processor and up to 80% of my memory. If something like xmms, firefox, or thunderbird are chewing up all of your memory or processor kill off the process. You can easily do that by pressing k while top is running. It will then prompt you for a process id to kill. Look in the PID column for the correct number to enter. If you decide not to kill a process just press enter and the PID to kill: prompt will go away and take you back to top. Press q to quit the top program.
 
Old 03-19-2004, 01:39 PM   #4
yoyoguy2
LQ Newbie
 
Registered: Feb 2004
Posts: 29

Original Poster
Rep: Reputation: 15
"ntsysv" is not a command i have??

none of the processes are using a great ammount of memory by themselves, just X, firefox and thunderbird are big, the rest are under 2%, but all the kdeinits are almost 2%each... so it's not like there's one program doing it all
 
Old 03-19-2004, 02:54 PM   #5
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
When you run top what do the load average numbers show in the upper right corner?
 
Old 03-19-2004, 03:46 PM   #6
eskinner
LQ Newbie
 
Registered: Sep 2003
Location: Phoenix, Arizona, USA
Posts: 12

Rep: Reputation: 0
I was seeing a similar performance problem that was only affecting some X programs. The symptom was that they would start VERY slowly. And during bootup, sendmail was starting VERY slowly as well.

Try adding ".localdomain" versions of each host name in your /etc/hosts file.
BEFORE
127.0.0.1 localhost
192.168.1.1 firewall
192.168.1.102 bobby

AFTER
127.0.0.1 localhost.localdomain localhost
192.168.1.1 firewall.localdomain firewall
192.168.1.102 bobby.localdomain bobby

This worked for me. Sendmail starts very quickly now (on RedHat 8 and 9 systems).
 
Old 03-19-2004, 11:53 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
As a replacement to tksysv you now have chkconfig and service

in /etc/rc.d/init.d you have scripts that can be setup to start in certain runlevels. You can control them with chkconfig.

chkconfig smb off
service smb stop

The service command starts and stops services, chkconfig sets up the scripts to start and stop on boot or runlevel changes.

Also chkconfig controls the daemons in /etc/xinetd.d, they are not services so they cannot be controlled by service. chkconfig will restart xinetd to stop or start them as needed.

However it does sound like it's just your /etc/host file causing slow startups. The ram usage can be misleading since you are looking at cached and buffered ram as well as ram that's actually used. The processes you show running are not looking very abnormal. I think you'll be ok on your memory as is.

Last edited by DavidPhillips; 03-19-2004 at 11:59 PM.
 
Old 03-20-2004, 04:13 PM   #8
yoyoguy2
LQ Newbie
 
Registered: Feb 2004
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by eskinner
I was seeing a similar performance problem that was only affecting some X programs. The symptom was that they would start VERY slowly. And during bootup, sendmail was starting VERY slowly as well.

Try adding ".localdomain" versions of each host name in your /etc/hosts file.
BEFORE
127.0.0.1 localhost
192.168.1.1 firewall
192.168.1.102 bobby

AFTER
127.0.0.1 localhost.localdomain localhost
192.168.1.1 firewall.localdomain firewall
192.168.1.102 bobby.localdomain bobby

This worked for me. Sendmail starts very quickly now (on RedHat 8 and 9 systems).

that's exactly what's happening to me, but when i went to change my etc/hosts there's only one line it it, and it already has the localdoman in front.. so i don't know what to do with it.

thanks for all the help so far!
 
Old 03-20-2004, 05:24 PM   #9
eskinner
LQ Newbie
 
Registered: Sep 2003
Location: Phoenix, Arizona, USA
Posts: 12

Rep: Reputation: 0
Well, several things have to be in sync. Here's the portions of my system configuration that I think are important in this respect. There are three files: /etc/hosts, /etc/sysconfig/network, and /etc/sysconfig/network-scripts/ifcfg-eth0

My /etc/hosts contains:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.1 firewall.localdomain firewall
192.168.1.10 gort.localdomain gort
192.168.1.11 klaatu.localdomain klaatu
192.168.1.102 bobby.localdomain bobby
192.168.1.201 printer.localdomain printer

My /etc/sysconfig/network contains:
NETWORKING=yes
HOSTNAME=bobby

And my /etc/sysconfig/network-scripts/ifcfg-eth0 contains:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp

I was told that the /etc/sysconfig/network file *should not* specify the domain name on the same line as the hostname. When this is done, the system has to figure out the domain from somewhere else. If it can't find it, then it assumes ".localdomain" but only uses the fully-qualified name "bobby.localdomain" (in my case) a couple of times. During sendmail's startup and during the launch of some (but not all) X programs. When the ".localdomain" entries are missing in /etc/hosts, the system tries to resolve the full name through DNS and that is what takes several minutes (to fail).

Good Luck!
 
Old 03-20-2004, 07:54 PM   #10
yoyoguy2
LQ Newbie
 
Registered: Feb 2004
Posts: 29

Original Poster
Rep: Reputation: 15
here's all 3 of them, they seem to be similar to yours now, but i only have 1 line in hosts.


/etc/hosts
Code:
127.0.0.1       localhost.localdomain   localhost
/etc/sysconfig/network
Code:
NETWORKING=yes
HOSTNAME=theone
CURRENT_PROFILE=one
/etc/sysconfig/network-scripts/ifcfg-eth0
Code:
# National Semi|DP83815 (MacPhyter) Ethernet Controller
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:40:f4:3c:fa:0a
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
 
Old 03-20-2004, 08:09 PM   #11
eskinner
LQ Newbie
 
Registered: Sep 2003
Location: Phoenix, Arizona, USA
Posts: 12

Rep: Reputation: 0
Okay, I'm pretty sure you need to add a line to your /etc/hosts file that has the IP address your system is being assigned, and your hostname with ".localdomain" and then the hostname again. The only thing you need to find out is your IP address, and that's easy to get.
In a shell (terminal), type the following command and press enter:

/sbin/ifconfig

Here's what I get when I do it:

[edski@bobby edski]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:0D:56:EB:3D:B5
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1356 Metric:1
RX packets:143582 errors:0 dropped:0 overruns:0 frame:0
TX packets:313549 errors:0 dropped:0 overruns:0 carrier:0
collisions:91975 txqueuelen:1000
RX bytes:14227779 (13.5 Mb) TX bytes:278699272 (265.7 Mb)
Interrupt:11

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:70457 errors:0 dropped:0 overruns:0 frame:0
TX packets:70457 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4803013 (4.5 Mb) TX bytes:4803013 (4.5 Mb)

The section about "eth0" is the area of interest, and the "inet addr" is the value that's needed. In my case, my IP address is 192.168.1.102 and, if that's the address your system is assigned, here's what /etc/hosts should look like:

127.0.0.1 localhost.localdomain localhost
192.168.1.102 theone.localdomain theone

If your address is something other than 192.168.1.102, then put the appropriate address in that place.

I think you'll need to reboot your system after making the change -- and I think you'll see a dramatic difference.

Good Luck!!!
 
Old 03-20-2004, 08:26 PM   #12
yoyoguy2
LQ Newbie
 
Registered: Feb 2004
Posts: 29

Original Poster
Rep: Reputation: 15
wow, that worked great! and i didn't have to restart! thanks a lot for all your help
 
Old 03-20-2004, 08:36 PM   #13
eskinner
LQ Newbie
 
Registered: Sep 2003
Location: Phoenix, Arizona, USA
Posts: 12

Rep: Reputation: 0
Glad to help. It took me a loooong time to find the answer (and I finally found it here at LinuxQuestions.org) so I figured I'd pay back the favor and post my solution to several queries that looked like they might be having the same problem. As it turns out, that's exactly what happened in your case. I'm pleased it worked out so well.

Feel free to send me an Email message (there's a button around here somewhere that'll let you do that).

See ya!
 
Old 02-09-2005, 10:11 PM   #14
newbiejon
LQ Newbie
 
Registered: Jul 2003
Posts: 9

Rep: Reputation: 0
I'm having similar problems, except I can't seem to fix it.
I remember this happening a while ago, and I fixed it then, but I don't remember what I did.

This time around, problems cropped up when I changed the hostname on my linux box (FC3 BTW)
However, I can't seem to make the problem go away (xterm takes about 2 minutes to load)

Any thoughts? Thanks in advance!

Here are my files:

#/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost frodo
192.168.0.101 localhost.localdomain frodo.localdomain frodo localhost
192.168.0.102 bilbo.localdomain bilbo
192.168.0.103 sam.localdomain sam

#/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.0.101
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
TYPE=Ethernet

#/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=frodo
 
Old 02-13-2005, 03:06 AM   #15
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Quote:
#/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost frodo
192.168.0.101 localhost.localdomain frodo.localdomain frodo localhost
192.168.0.102 bilbo.localdomain bilbo
192.168.0.103 sam.localdomain sam
Drop at least the red coloured parts.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Switch runs incredibly slow newuser455 General 7 11-14-2005 08:02 PM
SUSE 10 WiFi incredibly slow artificialGekko SUSE / openSUSE 6 11-08-2005 11:05 AM
VNC incredibly slow (SuSE) Brian Knoblauch Linux - Software 2 07-30-2005 06:15 PM
doom running incredibly slow JackSmith Linux - Games 3 03-15-2005 10:38 PM
Suse 9.1 incredibly slow Vorticies Linux - Distributions 4 06-12-2004 01:06 PM

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

All times are GMT -5. The time now is 08:41 PM.

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