LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-11-2005, 05:56 PM   #1
zoso
Member
 
Registered: Dec 2004
Distribution: Debian, Gentoo, Slackware, FreeBSD
Posts: 68

Rep: Reputation: 15
Freeing Up Used Memory


Is there a command that will allow me to free some RAM? Thanks.
 
Old 01-11-2005, 06:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
What is the problem you have with your ram?
Basically closing running processes will free
up ram for you...


Cheers,
Tink
 
Old 01-11-2005, 06:12 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
a command to free up ram does not exist in linux. You need to check which processes are using the most ram and configure/setup that process accordingly. Linux pretty much caches everything into ram anywayz for performance reasons so the real concern is swap (virtual memory). Check to see if you have enough swap with top, vmstat, etc...

If you don't, either buy more ram or create more swap.

-twantrd
 
Old 01-11-2005, 06:26 PM   #4
zoso
Member
 
Registered: Dec 2004
Distribution: Debian, Gentoo, Slackware, FreeBSD
Posts: 68

Original Poster
Rep: Reputation: 15
Okay, thanks. I thought so. The RAM usage doesn't vary; it just keeps using more regardless of what I'm doing on the machine, and the usage won't drop. I was just wondering if there was some way to free up processes without closing individual things.
 
Old 01-11-2005, 06:48 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
What does free normally look like? :)


Cheers,
Tink
 
Old 01-11-2005, 07:06 PM   #6
zoso
Member
 
Registered: Dec 2004
Distribution: Debian, Gentoo, Slackware, FreeBSD
Posts: 68

Original Poster
Rep: Reputation: 15
Heh, less than 300 MB or so.
 
Old 01-11-2005, 07:17 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Heh... so what is the problem with that?

Copy and paste the output of free? :)


Cheers,
Tink
 
Old 01-11-2005, 09:44 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
Quote:
Originally posted by zoso
Okay, thanks. I thought so. The RAM usage doesn't vary; it just keeps using more regardless of what I'm doing on the machine, and the usage won't drop. I was just wondering if there was some way to free up processes without closing individual things.
the Linux kernel uses the RAM in a way designed to use it all up and keep it all used up all the time
for max speed advantage
but don't confuse that with no RAM is available
basically none of the RAM is ever really used up cause it's all virtual and 100% of processes have access to 100% of the RAM 100% of the time.

you are trying to think about it the way the winblows kernel works and forgetting winblows sucks.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
freeing memory in linux har5ha Linux - Software 7 07-23-2004 05:00 PM
stops at freeing unused kernel memory rtr Linux - General 1 12-09-2003 10:42 AM
Freeing up Memory DigiCrime Linux - General 5 09-30-2003 07:25 AM
Hang after freeing unused kernel memory darkcloud Linux - General 9 07-07-2003 08:12 PM
What Happened to Freeing up my Memory/Resources? johan the olive Linux - Hardware 2 02-27-2003 02:14 PM


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

Main Menu
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