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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
04-20-2004, 10:31 PM
|
#1
|
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Rep:
|
System slowing down after a few hours??
Anyone have any idea why my system slows down after about 4 hours? When i say slows down I am referring to the internet and my gui, KDE opens windows (lol) really slow and Mozilla takes forever to open up pages with DSL. Ive done top and ps many times but dont see anything of use as far as resources go. The only thing that helps it to reboot then everything is back to normal, sound familiar? LOL. 
Last edited by BajaNick; 04-20-2004 at 10:32 PM.
|
|
|
|
04-20-2004, 11:27 PM
|
#2
|
|
Member
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843
Rep:
|
The only thing I can think is updatedb is going on. When it slows down, is your HD churning. It can take a while to perform. It isn't CPU intensive, so top may not show it as high, however, anything accessing your HD in parallel will be greatly slowed down.
RO
|
|
|
|
04-20-2004, 11:52 PM
|
#3
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Rep:
|
Try and dowload memtest
this will test your computer for memory leaks, it sounds like you may be having this.
What is your memory like when you slow down??
What is your Swap space like?, you should at least have 512 megs of swap.
Also, what kernel number are you running? It could also be a bug in the kernel you are running....
zLinuxz
|
|
|
|
04-20-2004, 11:56 PM
|
#4
|
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Original Poster
Rep:
|
The hard drive does sound off every so often. I am running 2.4 kernel. I havent checked my memory when it slows down.512 mb swap? I only have 512 of ram. 
|
|
|
|
04-21-2004, 12:02 AM
|
#5
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Rep:
|
Yeah bro, you should have made a Swap partition when you initially installed Linux, this is in case you fill up your Ram Memory....Swap will kick in, and you wont notice the slowing down so much.
However, if your hardrive does sound very often, maybe there is something physically wrong with your drive...??maybe too old?
On my desktop I also often get my HD running, but that is because Linux automatically defrags your hardrive every so often, but my pc never really slows down....
soo....
|
|
|
|
04-21-2004, 08:40 AM
|
#6
|
|
Member
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184
Rep:
|
Memtest does not help identify memory leaks, it only identifies bad memory (these are not the same thing).
Also, saying that Linux automatically defrags the file system is not very accurate. Most Linux file systems are quite resistant to fragmentation, thus not needing a defrag in the first place.
To BajaNick, I would suggest a kernel upgrade, maybe trying out Gnome over KDE or even restarting X every now and then. Still, check that you have a large enough swap partition. What output do you get when you give the "df -h" command?
|
|
|
|
04-21-2004, 05:20 PM
|
#7
|
|
LQ Newbie
Registered: May 2002
Location: Norway
Distribution: Libranet 2.8.1
Posts: 12
Rep:
|
I had the same problem,- system slowing down after a few hours.
The 'top'-command showed that a process named "famd" used all the system recources. I uninstalled "fam", and after that, everything has been running smooth.
|
|
|
|
04-21-2004, 06:13 PM
|
#8
|
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Original Poster
Rep:
|
df -h gives this:
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 38G 6.0G 32G 17% /
It doesnt look like i have a swap partition huh?
This drive is a WD and not very old at all, like 2 years at most.
|
|
|
|
04-21-2004, 06:33 PM
|
#9
|
|
Member
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184
Rep:
|
OK you *really* need a swap partition. Here's the output of my df -h:
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 39G 30G 7.1G 81% /
/dev/hda5 30G 27G 3.1G 90% /mnt/hda5
none 506M 0 506M 0% /dev/shm
Notice the last one is my swap partition. It may be dangerous to resize partitions - maybe it's best to re-install, making sure you allocate about 512M of swap. Also using "fdisk -l" as root is probably a better way to see what's going on with your hard drive:
Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 653 5245191 7 HPFS/NTFS
/dev/hda2 654 9728 72894937+ f W95 Ext'd (LBA)
/dev/hda5 654 4569 31455238+ b W95 FAT32
/dev/hda6 4570 4634 522081 82 Linux swap
/dev/hda7 4635 9728 40917523+ 83 Linux
Is my output.
|
|
|
|
04-22-2004, 01:25 AM
|
#10
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Rep:
|
Quote:
Originally posted by miknight
Memtest does not help identify memory leaks, it only identifies bad memory (these are not the same thing).
Also, saying that Linux automatically defrags the file system is not very accurate. Most Linux file systems are quite resistant to fragmentation, thus not needing a defrag in the first place.
|
Wonder why then when you run Memtest it says... "Checking for memory leaks..."
And Linux being "fragmentation resistant" does not mean Linux doesn't get fragmented, Every hardrive gets fragmented no matter what OS you use.
What Linux does however, is being pro-active and not letting the hardrive fragment for a long time like Windows lets the hardrive do....and when ever Linux detects there is 1% or less fragmentation in the hard disk, it goes ahead and defragments it, and yes, it does it automatically.
Just to clear those 2 points.
And yes, like I mentioned in my previous posts, BajaNick does in fact need a Swap partition, and I gave also the size which at your level Bajanick, you only need to make it the same as your current Ram memory, 512.
You can go up to 1 gig of Swap if you want to.... but you don't have to. Just for your information, anything above 1 gig of Swap is useless, even if you have more than 1 gig of actual Ram memory.
Your best bet at this point is to back up your files, and re-install Linux, and make sure you make at least 3 paritions when you intall Linux:
/boot
/
/Swap
these three are essential in any Linux installation.
/boot is where your booting settings get stored;
/ is where all your file system gets installed
/Swap is your swap partition
|
|
|
|
04-22-2004, 02:21 AM
|
#11
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
Maybe you all use your machines harder than me, but I have stopped putting in swap partitions on newer machines.
I never even got close to using all of my available RAM, let alone need 512 MB of swap.
I only put swap partitions on servers and systems with low memory.
|
|
|
|
04-22-2004, 03:10 AM
|
#12
|
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Original Poster
Rep:
|
When I installed slack the first time I did not partition for a swap file cuz I thought I had so much ram It wasnt necessary. I will think about it, but I really dont want to reinstall again. 
|
|
|
|
04-22-2004, 03:14 AM
|
#13
|
|
Member
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184
Rep:
|
Quote:
Originally posted by zLinuxz
Wonder why then when you run Memtest it says... "Checking for memory leaks..."
And Linux being "fragmentation resistant" does not mean Linux doesn't get fragmented, Every hardrive gets fragmented no matter what OS you use.
What Linux does however, is being pro-active and not letting the hardrive fragment for a long time like Windows lets the hardrive do....and when ever Linux detects there is 1% or less fragmentation in the hard disk, it goes ahead and defragments it, and yes, it does it automatically.
|
Please don't quote words I did not say. I didn't say Linux is "fragmentation resistant", I said it is "quite resistant to fragmentation". Now that hardly implies no fragmentation occurs.
Regarding automatic defragmentation, there is no such thing. Why would there be tools to defrag ext3 if it did it automatically?
As far as Memtest goes, maybe we're not talking about the same Memtest. I was thinking you were referring to Memtest86. What Memtest are you talking about?
If you wish to argue any of this further please provide some references.
|
|
|
|
04-22-2004, 03:32 PM
|
#14
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Rep:
|
that email in Frag and Defrag is informative, but still doesn't prove that you are right or that I am right.
However, listening to my hardrive work every once in a while for no apparent reason, and looking during boot up and seeing the .2% vary with time....a little but vary.... leads me to believe other wise, and that there is indeed defragmention going on.
Furthermore, I hardly believe that calling it a "voodoo" thing, like they say in that email is the right answer as well.
So maybe we should ask Linus to answer that.
In regard to the Memtest, yeah maybe so, the one I used is just called Memtest,and a friend emailed it to me, so it is possible that it is not the same program.
And those tools are just beta for Linux, cuz no one rally uses them, and they just want to get people to perhaps buy them in the future, which will probably not happen. That company is mostly focused on Windows Defrag, where there lies a real problem.
|
|
|
|
04-22-2004, 07:59 PM
|
#15
|
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Original Poster
Rep:
|
Hey Guys stop hijacking my thread, LOL 
Whats the command to defrag in linux I keep typing /usr/defrag and nothing happens? LMAO
No really, If i reinstall slack and add a swap partition would that stop my system from slowing down after a few hours?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:48 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|