LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-25-2005, 12:14 PM   #1
jonostew
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Rep: Reputation: 0
Memory management problem


Hi everyone. I'm running Fedora 2 on a Compac Presario 2100. After a few initial problems getting Fedora 2 to install, my system has been running well for almost a year.

This morning I noticed my system was extremely slow when booting up. Upon logging in I noticed in the System Monitor application that none of the swap space is being used, that is it says Used Swap Space: 0 bytes of 510 MB. Additionally System Monitor reports that only about 175 MB of 441 MB of memory available are being used.

I am lucky that I can startup Firefox and post to this forum. More memory intensive applications will not run.

My "/" partition only has about 600 MB of free disk space. Could this be the problem?

I'm pretty sure this is not a hardware problem because my system is dual-boot and when I boot to Windoze I have no problems.

Linux gurus, please help.
 
Old 03-25-2005, 02:47 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
If slowness is the problem, and your swap space is not being used, then I don't think it's a memory problem. Only if your RAM is full and your swap space is also filling up should you notice a big performance hit.

I'd look elsewhere for the cause of slowness. Try running 'top' in a terminal window to see what's eating the CPU and/or memory (you can press 'M' in 'top' to sort by memory usage).

I wish I knew of a comparable program for displaying disk usage by process, though. I've occasionally had large amounts of mysterious disk activity, and couldn't figure out what process was doing it. This may be part of your problem too--something using too much disk, preventing other programs from loading efficiently.
 
Old 03-25-2005, 07:30 PM   #3
jonostew
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
A process called udev seems to by using 90% of my CPU processing power. What is udev? What can I do to fix my problem?

I cleaned up my root partition and now I have more than 2 gigs free. Clearly disk space on the root partition was not the problem. I also booted to the memory test program that comes with the kernel. The RAM tests without errrors. The output of top is below.

Help?



top - 20:29:44 up 18 min, 4 users, load average: 4.60, 4.48, 3.06
Tasks: 102 total, 5 running, 97 sleeping, 0 stopped, 0 zombie
Cpu(s): 98.4% us, 1.0% sy, 0.3% ni, 0.0% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 451124k total, 447792k used, 3332k free, 28328k buffers
Swap: 522104k total, 0k used, 522104k free, 240304k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1268 root 15 -10 2740 436 1340 R 89.2 0.1 17:47.35 udev
2922 root 16 0 90916 19m 75m R 7.6 4.3 0:12.87 X
3206 jono 25 10 34364 20m 22m R 0.7 4.6 0:01.58 rhn-applet-gui
3262 jono 16 0 28004 14m 20m R 0.7 3.2 0:01.40 gnome-terminal
3333 jono 15 0 21436 9.9m 17m S 0.3 2.2 0:01.38 gnome-system-mo
1 root 15 0 2132 464 1316 S 0.0 0.1 0:05.02 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.86 events/0
4 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
6 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
 
Old 03-25-2005, 07:48 PM   #4
jonostew
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
If I kill off udev, the system is back to normal.

http://www.linuxquestions.org/questi...hreadid=263791

Is this safe to kill off udev? I found this thread, but when I go to System Services it does list udev as a startup process.
 
Old 03-25-2005, 08:18 PM   #5
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
What version of kernel are you using? You can find out by typing 'uname -a' in a terminal window. udev handles your device filesystem (the /dev directory), so I don't think it's safe to kill unless you are using devfs (the 2.4.x kernel approach).

The udev howto might give you some clues. I don't know much about how udev works, or why it would be eating up so much CPU.
 
Old 03-25-2005, 09:15 PM   #6
jonostew
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
I'm running 2.6.5-1.358.

I couldn't find anything useful by following the link. If udev works with devices maybe there is something amuck with /etc/fstab ?

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/hda5 /mnt/vfat vfat users 0 0
/dev/sda1 /mnt/usb auto user,rw,noauto 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdwriter /mnt/cdwriter udf,iso9660 noauto,owner,kudzu,rw 0 0
 
Old 03-25-2005, 10:35 PM   #7
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I don't know for sure if you can simply uninstall udev. I think that you can. If you want to try that you can type this
rpm -e udev

You can try and re-install it. Maybe the program got corrupted somehow since it worked fine for so long. You need your FC2 cds. Search the CDs for the udev RPMs. Uninstall it with the command above. Then install it back with this:
rpm -Uhv /mnt/cdrom/path/to/udev-<fill-in-version>.rpm

Then there is the "dirty hack" way to do it. You can add this line to the file /etc/rc.d/rc.local:

killall udev

That line might need to be
killall udevd

It just depends on the name of the proccess that is running and taking up so much CPU. rc.local is executed after all the other services and daemons are started.

If it were me I'd research more to see if I could just completely uninstall it.

No wait... If it were me I'd just uninstall it and then get pissed because it won't boot back up and then have to fix that problem too!
 
Old 03-26-2005, 11:18 AM   #8
jonostew
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
I tried uninstalling and reinstalling udev with no success. My system still boots with udev as a runaway process after the reinstall.

I'm not really comfortable just killing the process in rc.local. I'm going to repost this as a new thread.

Thanks everyone.
 
Old 03-26-2005, 07:24 PM   #9
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I'd say the only reason not to kill it is if you need it. Do you ever plug any thing like usb or firewire into your system? If you don't you probably don't really need udev to run. I'd say kill it in rc.local and if your system starts acting odd in some other fashion then re-enable udev.
 
Old 03-26-2005, 08:41 PM   #10
jonostew
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
I do use a USB jump drive, but my hot plugging has never worked with it.

I have permanently uninstalled udev and my system seems to be functioning as usual. Unless anyone can give me a good reason why I need udev or my computer explodes, I'm going to leave it uninstalled.

Thanks everyone for your help.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
memory management navaladi Mandriva 2 02-18-2005 06:47 AM
memory management exigent Linux - General 1 08-17-2003 08:28 PM
memory management? snow Linux - Software 7 02-12-2003 01:57 PM
Memory Management hhegab Linux - General 3 08-07-2002 10:20 PM
Memory Management mrsolo Linux - General 7 06-26-2002 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:29 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