Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When i start the server along it uses only 4% of RAM. After than i start oracle and uses 25%-35% of RAM. but after a while it's growing and uses 95%-97% of RAM.
How can i reduce the hish usage of RAM.
BTW, when i shutdwon the oracle database it still hold the 95% of RAM.
Can you please tell me the reason or any solution to overcome the memory management problem.
Bying more RAM is one way, but you didn't specify how much RAM you actually have (so is there any sense in bying more of it, or is it more important to find out if this is a bug or something).
First find out what is actually using all the memory, and for what (buffers or something for example?). Then start thinking if it should use that much RAM or not.. Are you suffering slowdowns because of filling RAM, and how much swap space is used? I mean, is it going so high you're out of memory, or is it just using most of the RAM available?
From your numbers, I do not think that lack of free memory is your problem here.
The figure you should be looking at is the total of (free + buffers + cached), since otherwise "free" memory is used by Linux to hold onto data as long as possible in order to speed up disk reads and writes (among other things). This shows up under "buffers" or "cache", not "free", so having a low number in the "free" column should not indicate low performance in and of itself.
You have in this example 8115 Mb in total, of which 29Mb is free (meaning utterly unused, wasted memory), 19Mb buffered and 7691Mb cached. This means that you have effectively got 7739Mb free or used only as cache memory, so free memory space isn't your problem here.
One problem could be the amount of data you have in swap. This is data temporarily written out to disk in order to free up memory, and is often a cause of slowness.
You might try looking at the /proc/sys/vm/swappiness file; this controls how much data is swapped out to disk purely to free up memory for caching. This is usually a bad thing if you have very slow hard disks (or very fast RAM and processor compared to your hard disk speed). To turn it off completely, you can run:
Code:
cat 0 > /proc/sys/vm/swappiness
as root.
You could also try looking for warning or error messages in /var/log/messages to see if there is anything that could indicate a problem.
Thanks for your early reply. I've got one problem. But i have some more questions.
1. Can I modify the buffer cache ratio? if yes how?
2.How can I optimize Linux system to faster access of application?
3. Is there any relation of kernel (smp,hugemem etc.).
you have 7691MB cached in your memory ... thats perfect, your kernel uses free memory for buffers and cache ... this memory can be freed if system needs free memory ... look at free result ...
free + buffers/cache = 7740 MB !!!
you have 4.6% memory usage by programs (and kernel)
That's the generally accepted mantra - not always the case.
Sounds like an application design problem - I'd be inclines to try the swappiness suggestion above (immediately after a reboot).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.