LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-28-2006, 10:30 AM   #1
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Rep: Reputation: 15
increase free physical memory, decrease disk cache


Hello,
I have a 384 Mb of memory size in my computer,
and here is the configuration according to my suse linux
memory monitor:

Total physical memory : 384,862,592 bytes
Free physical memory : 5,054,464 bytes
Shared memory : 0 bytes
Disk buffers : 43,470,904 bytes
Disk cache : 227,020,800 bytes

Total swap memory : 1,077,501,952 bytes
Free swap memory : 1,077,501,952 bytes

my question:

1. is there any way I could increase the free physical
memory and reduce disk cache or disk buffers?

2. I always ran out of my virtual system memory in Windows,
but never in linux, and it seems that my linux box never uses
swap memory at all. So, is thare any way I could make linux
uses the swap memory?

thanks
 
Old 03-28-2006, 10:52 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

There is a way of getting Linux to swap more agressively:
(as root)
Code:
echo 100 > /proc/sys/vm/swappiness
You can give any number from 0 - 100. 100 being the most swappy. The default is 60.
Is it a good idea? Depends who you ask. I can't say I noticed much difference overall playing about with the swappiness value.

Have a look here:
http://kerneltrap.org/node/3000

Dave

Last edited by ilikejam; 03-28-2006 at 10:54 AM.
 
Old 03-28-2006, 05:55 PM   #3
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Original Poster
Rep: Reputation: 15
hi ilikejam, thanks for the reply,
if i relies on swap memory, will it slow down my computer?
and how about decreasing the cache memory to increase my free memory?
thank you
 
Old 03-28-2006, 07:38 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,058

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
The disk cache will decrease automatically as other tasks require storage. Your memory will generally always appear full. This is not a problem, but a design goal.
Having lots of disk cache, and no swap used is *good* - it means you have more than enough memory for what you are running.
 
Old 03-30-2006, 09:53 AM   #5
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
A wise man once said to me:
"Unused RAM is wasted RAM"

Dave
 
  


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
Ram wiht suse, cache Disk cache??? fadelhomsi Linux - Newbie 2 02-05-2006 11:29 PM
free physical memory saavik Solaris / OpenSolaris 7 08-26-2005 12:22 PM
Help Configuring the Memory Used by a Process in RedHat? (Cache Memory on CPU) geogecko Linux - General 3 02-23-2005 03:32 PM
How to increase/decrease brightness? ginda Linux - Newbie 3 02-01-2005 10:25 PM
disk cache chews up memory and won't let go TomaCzar Slackware 3 03-07-2004 01:51 PM


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