LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2006, 04:02 PM   #1
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Rep: Reputation: 32
RAM manager


Is there any utility for RAM like FreeRAM XP Pro for Windows? I have 768MB RAM, although I have left only 40-50MB when I load X without any applications running.
 
Old 02-04-2006, 04:16 PM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
This is normal. Linux caches a lot to reduce disk access and processes that have been started before will start faster the second time. If another process requires RAM it will be freed by the kernel. You really do not need a RAM manager.
 
Old 02-04-2006, 05:00 PM   #3
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Moloko
This is normal. Linux caches a lot to reduce disk access and processes that have been started before will start faster the second time. If another process requires RAM it will be freed by the kernel. You really do not need a RAM manager.
Ok but when I'm opening a new, small application like juk for example, is decreasing the RAM around 20, something that makes the system a little bit slower (or is it my idea? but because of that I was currious about the RAM size). Is this normal?
 
Old 02-04-2006, 05:52 PM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Memory usage shouldn't be something that concerns you, swap usage on the other hand... It doesn't really matter if your RAM always looks like its full, however if your swap partition is seeing a lot of the action then it is a problem. Swap is a whole lot slower than physical memory.
 
Old 02-04-2006, 06:29 PM   #5
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by cs-cam
Memory usage shouldn't be something that concerns you, swap usage on the other hand... It doesn't really matter if your RAM always looks like its full, however if your swap partition is seeing a lot of the action then it is a problem. Swap is a whole lot slower than physical memory.
I see... In fact, I don't have any swap partition and for the swap says that there's no space available. Should I create a swap partition or something?
 
Old 02-04-2006, 07:00 PM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
It probably would be a good idea. When you use apps the get cached in memory (obviously). When you're done, the kernel leaves them there so next time you use it that part will already be done. Your memory gets "full" and you open a new app but the kernel just checks what is already in RAM and removes stuff it's not using anymore to make room for your new app. Sound easy so far? Well when it runs out of space cause you are actively using everything that is in RAM then it starts using swap. Swap is like pretend RAM on your hard drive, it's way slower but if it's needed then i gets used.

If your memory was flat full up and the kernel didn't have any swap to fall back on it'll start trying to dump stuff that's being used and it'd be a mess. I've seen this explained really well around here somewhere but I can't find a link 768MB is a decent amount of ram but I'd probably have a 512MB swap just in case.
 
Old 02-04-2006, 07:41 PM   #7
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
Thanks a lot for the information! FI'll create a swap partition for any case...
 
Old 02-04-2006, 08:40 PM   #8
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
Is there a way for cleaning up the RAM manually?
 
Old 02-04-2006, 09:06 PM   #9
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
I don't think so. (maybe by rebooting ) You dont need it.
Linux tries to use as much ram as possible to work better. Create a swap. Personally I don't think you need more that 128 or 256MB of swap.
I have 1G of ram and now it's full:
Code:
skalkoto@darkstar:~$ free
             total       used       free     shared    buffers     cached
Mem:        906316     897532       8784          0     278072     245756
-/+ buffers/cache:     373704     532612
Swap:       522072          0     522072
skalkoto@darkstar:~$
But it does not use any swap and this is what matters. Having RAM and not using it is something really stupid. Why not chache applications so they can run faster when you re-open them?
I had the same problem with you, but having a full Ram Is not a problem as long as the OS does not use a lot of swap. When It actually needs ram linux will remove the cashed stuff.

Last edited by perfect_circle; 02-04-2006 at 09:10 PM.
 
Old 02-05-2006, 05:48 AM   #10
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
Thanks all of you for the information... Να 'σε καλά perfect_circle
 
Old 02-05-2006, 02:26 PM   #11
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
Well, I've created a 512 swap partition but when I open the Perfomance Monitor says again that there's no swap space available...
 
Old 02-05-2006, 02:33 PM   #12
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Quote:
Originally Posted by Panagiotis_IOA
Well, I've created a 512 swap partition but when I open the Perfomance Monitor says again that there's no swap space available...
DID you tell slack to use it?
I guess not...SO, open the file /etc/fstab and assuming that the swap partition is hda2, put this line in there:
Code:
/dev/hda2        swap             swap        defaults         0   0
you can find out if you don't know it already, which partition the swap is by using this command:
Code:
/sbin/fdisk -l
(that's a small L, not a 1)
Then reboot

Last edited by perfect_circle; 02-05-2006 at 02:38 PM.
 
Old 02-05-2006, 02:50 PM   #13
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
delete this post

Last edited by Panagiotis_IOA; 02-05-2006 at 03:24 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 12:14 AM
Buying RAM - must match old RAM? slackaddict Linux - Hardware 5 11-12-2005 01:38 PM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 01:01 PM
Project Manager vs. Site Manager usr_wifi Linux - Software 0 02-15-2005 12:36 AM
[Gentoo file manager] Install RPM from the file manager? Coume Linux - Software 2 12-10-2003 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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