#1  
Old 14th December 2005, 10:51
spazmo360 spazmo360 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fedora 4 memory troubles

Hello, I am having a lot of problems with a recent FC4 installation.

Basically - the system was really starting to crunch with not much happening. (I have had a lot more stuff running on RH9 with the same spec hardware)

I am running on Intel P3 2Ghz with Geforce2 32MB and 256MB PC2700.

I had a look at the system monitor and ram is constantly creeping up - til the point where there is nothing left.
Then I noticed that it shows that 0MB of swap is being used.

I ran 'free' in a terminal and it showed that there was 0 swap also. as in :
Code:
             total       used       free     shared    buffers     cached
Mem:      255636     251724       3912          0       1760      58988
-/+ buffers/cache:     190976      64660
Swap:        0          0          0
kernel is 2.6.11-1.1369_FC4

Then I also noticed that fstab had no reference to SWAP - so I created one and rebooted - but 'free' and sytem monitor still show that 0 swap is being used / exists.

Is this normal - and if so how does FC4 handle memory and is there any way to fix these memory woes - or is it time to move away from Redhat - frankly I need a stable system (like RH9) and I am starting to resent being forced into being a constant beta tester for RHES if I want to use Fedora.

Thanks in advance for any clues or help with this.
Reply With Quote
Sponsored Links
  #2  
Old 14th December 2005, 12:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,045
Thanks: 841
Thanked 5,661 Times in 4,468 Posts
Default

Generally all current linux distributions like fedora are caching opened files in RAM. Its normal that you do naot have free RAM, the kernel uses all free RAM to cache files until the space is needed for running programs.
Reply With Quote
  #3  
Old 14th December 2005, 15:27
spazmo360 spazmo360 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Generally all current linux distributions like fedora are caching opened files in RAM. Its normal that you do naot have free RAM, the kernel uses all free RAM to cache files until the space is needed for running programs.
Thanks for the reply.

That's fine.

Why when all physical ram is used doesn't it use the swap or even acknowledge a swap - why have a swap at all then ?

What I'm trying to understand is why the performance sucks compared to RH9 or even FC3

I have less processes running than on RH9 and the macine becomes unresponsive very quickly - the nearest I can get to is the complete lack of acknowledgement of the swap - but if I'm wrong then is there any other reason anyone is aware of that would cause this ? CPU usage is virtually 0% .

Last edited by spazmo360; 14th December 2005 at 15:35.
Reply With Quote
  #4  
Old 14th December 2005, 15:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Did you have a look at the log files in /var/log to find out what could cause this behaviour?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 14th December 2005, 16:18
spazmo360 spazmo360 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK I'm checking thru /var/lod/messages/ - anything in partiular I should be trying to grep ?

Code:
             total       used       free     shared    buffers     cached 
Mem:        256136     254760       1376          0       1260      58312 
-/+ buffers/cache:     195188      60948 
Swap:       524280      54500     469780
My mate just sent me this off his FC3 - he has a swap thats being used -
I'm fairly sure this is where my problem is - so how do enable swap in FC4 - everywhere I look I keep getting answers like "FC4 uses all physical ram until other processes need it" -

Well other processes need it !

EDIT:
CAn someone please c'n'paste the output from 'free' on their FC4 installation - thanks.

Last edited by spazmo360; 14th December 2005 at 16:21.
Reply With Quote
  #6  
Old 14th December 2005, 17:34
spazmo360 spazmo360 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

OK - I've fixed the missing SWAP.

1. edit fstab and specify swap by device instead of LABEL ---- i.e

/dev/hda3 swap swap defaults 0 0

instead of

LABEL=SWAP-hda3 swap swap defaults 0 0

2. then just type swapon -a at command prompt.


Bingo - here is the output of 'free' now:
Code:
             total       used       free     shared    buffers     cached
Mem:        255636     252260       3376          0        276      69324
-/+ buffers/cache:     182660      72976
Swap:      1052248       1240    1051008
At the end of the day - ALL systems need a swap - or paging file as windows calls it - even if you have plenty of RAM.
For some reason FC4 didn't initialise the swap - why ? I don't know but it sucks and I'm not the only person who has had this problem - I've seen this mentioned on a few mailing lists with responses from people saying that Fedora is so smart it doesn't need one !

whether this sorts performance issues - I hope it will - in the meantime I think I'll continue with my 10th attempt at getting up2date to work (now thats a whole other nightmare and thread)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IMAP doesn't work..as i followed the Perfect Setup for Fedora 4 asokaajay Server Operation 11 10th June 2007 15:57
PCMCIA & Fedora Core 4 blackpuma Installation/Configuration 1 27th November 2005 23:03
Fedora IMAP problem jrnichol Installation/Configuration 5 26th September 2005 13:00
memory and rescource consumption domino Suggest HOWTO 5 17th August 2005 12:54
Memory mcfly Technical 1 26th May 2005 19:53


All times are GMT +2. The time now is 05:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.