-
Senior Member
registered user
Re: How to free up RAM

Originally Posted by
csodabogar
I have 1 GB of RAM and still not enough. After 2 hours of using Knoppix, I launch the performance viewer and I see that I have only a few MB of memory left. Does anyone know a command that frees up some RAM?
I use knoppix to learn Linux commands. Usually I make an apt-get update, launch Gaim and XMMS.
I think you need to learn a bit about how Linux uses memory.
When applications won't be needing all the memory, Linux likes to use that unneeded memory for e.g. by caching files read from the harddrive, so that next time those files are used they can be read from the cache. But if an application needs more memory, Linux will immediately remove some files from the cache and give that memory to the application.
So before thinking about freeing some memory, you need to check if some of the memory is being used for caching files. If yes, then you don't need any command to free memory, because the memory used for caching will be freed automatically when needed.
Now start a console and run a command free which will tell how much memory is being used at the moment:
Code:
knoppix@0[knoppix]$ free
total used free shared buffers cached
Mem: 287504 283632 3872 0 6916 75964
-/+ buffers/cache: 200752 86752
Swap: 2028740 10884 2017856
In this example, Linux is using 283632 kB (99%) of the memory. But 6916 kB + 75964 kB (29%) is used by "buffers" and "cached", and that memory is available to applications whenever they need it.
So even through I have "only" 3872 kB (1%) free memory, in practise the amount available to applications is 86752 kB (30%).
Usually, when you want to know how much "free memory" there is in Linux, you'll want to ignore the memory used by buffers and file-cache like I have done in this example.
Similar Threads
-
By pluto in forum Customising & Remastering
Replies: 0
Last Post: 07-30-2006, 01:09 PM
-
By zentu in forum The Lounge
Replies: 0
Last Post: 03-14-2004, 11:22 PM
-
By nabetse in forum General Support
Replies: 0
Last Post: 03-04-2004, 07:08 PM
-
By jackren in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 01-14-2004, 08:37 PM
-
By jackren in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 12-28-2003, 04:47 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1599.99

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99

DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR
$1100.00

IBM X3650 M4 Server System Board 00MX553 00AM209 00Y8499 00Y8457 00D2888 00W2671
$230.00

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER
$349.99

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$111.70

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)
$150.00

IBM Power 720 8202-E4B Server - POWER7 4-Core 3GHz, 8GB, 2x 146GB HDD, 1725W PSU
$450.00

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU
$225.00