LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-24-2004, 12:54 AM   #1
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
Free up ram in Linux?


I explain a little bit. The first time you run OpenOffice, it is slow but for the second time it is much better. The first time you run KDE applications in Gnome desktop, it is hell. But for the second time it is much better.

Of course most of you know the things I talk about. They put some their stuff in memory so the next time you run the applications, it will load faster.

But consider this...... I run OpenOffice, close it, run KDE applicatons ( k3b ) in Gnome desktop, close it, run many gdesklets ( that need high resources ), and suddenly I want to play 3d game like Neverwinter Nights that need memory. Ok, I close the gdesklets applications. But the some area of memory are still in use by OpenOffice, or k3b although I have close it.

Is there anyway I can free this cache memory without having to wait for some time?

In windows u can get this softwares:
http://www.magellass.com/prod-mm.html
http://www.liutilities.com/products/...papers/paper5/
http://www.contactplus.com/products/ram/

Thank you.
 
Old 04-24-2004, 02:26 AM   #2
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
I thought the kernel automatically freed up that mem when it was needed.
 
Old 04-24-2004, 07:07 AM   #3
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by beejayzed
I thought the kernel automatically freed up that mem when it was needed.
Yeah, if you depend on kernel, it takes time. I need instant way to free up ram.
 
Old 04-24-2004, 10:40 AM   #4
zer0snr
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
Strange coincidence......read your post this morning......get to work and find my mem usage high too......have nothing running in the background (ie, no user appl.'s).

Just out curiosity did a search and stumbled on the following......for what it's worth...

Memory Response

Newbie here and still.....
 
Old 04-24-2004, 11:53 AM   #5
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
The way the linux kernel caches memory is totally different from what you're used to under windows.

Check out free or free -m

Code:
             total       used       free     shared    buffers     cached
Mem:           249        244          4          0          3         87
-/+ buffers/cache:        153         95
Swap:          282         25        256
It says i've only got 4 megs of free memory. That's misleading. I've really got 91 or more. Cached memory is freed instantly on demand. When more ram is needed for an application, the cached memory is flushed or moved to swap. It's very efficient. All your libraries are kept in memory, even while not being used -- until the space is needed for something else, or the library is needed again.

--Shade
 
Old 05-01-2004, 10:07 PM   #6
sh1ft
Member
 
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 32
check out this very interesting article about tuning linux swapiness. It dicusses exactly what you guys are talking about here.
 
  


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
question about free and ram dr_zayus69 Linux - Hardware 2 01-07-2005 06:43 AM
Is there a free program to test PC RAM? ChristophThoel Programming 3 11-01-2004 05:13 AM
free distro for p2, 192mb ram? kaggy Linux - Distributions 7 09-23-2004 05:22 AM
Any way to free up RAM? Kramer Linux - General 8 08-28-2004 09:06 AM
how much free ram remains nakkaya Linux - General 1 02-05-2003 04:44 PM

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

All times are GMT -5. The time now is 10:04 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
Open Source Consulting | Domain Registration