LinuxQuestions.org
Visit Jeremy's Blog.
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 04-20-2004, 11:31 PM   #1
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
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 11:32 PM.
 
Old 04-21-2004, 12:27 AM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
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
 
Old 04-21-2004, 12:52 AM   #3
zLinuxz
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: Reputation: 45
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
 
Old 04-21-2004, 12:56 AM   #4
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
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.
 
Old 04-21-2004, 01:02 AM   #5
zLinuxz
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: Reputation: 45
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....
 
Old 04-21-2004, 09:40 AM   #6
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
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?
 
Old 04-21-2004, 06:20 PM   #7
the_c
LQ Newbie
 
Registered: May 2002
Location: Norway
Distribution: Libranet 2.8.1
Posts: 12

Rep: Reputation: 0
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.
 
Old 04-21-2004, 07:13 PM   #8
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
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.
 
Old 04-21-2004, 07:33 PM   #9
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
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.
 
Old 04-22-2004, 02:25 AM   #10
zLinuxz
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: Reputation: 45
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
 
Old 04-22-2004, 03:21 AM   #11
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
Old 04-22-2004, 04:10 AM   #12
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
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.
 
Old 04-22-2004, 04:14 AM   #13
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
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.
 
Old 04-22-2004, 04:32 PM   #14
zLinuxz
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: Reputation: 45
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.
 
Old 04-22-2004, 08:59 PM   #15
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
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?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron slowing down my system. Spudley Linux - General 6 09-21-2007 05:47 AM
something is slowing my system down gaah Linux - Newbie 6 09-21-2007 05:42 AM
udev is slowing my FC2 system down yong_sa Fedora 4 12-09-2004 11:13 PM
Why is my system slowing down? BajaNick Slackware 19 04-15-2004 04:41 AM
Network Card Slowing system down vdi_nenna Linux - Hardware 4 02-17-2003 02:21 PM


All times are GMT -5. The time now is 11:14 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration