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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
02-06-2017, 08:49 AM
|
#1
|
Member
Registered: Mar 2006
Posts: 58
Rep:
|
rhel not using all the ram
Hi,
I have a new rhel 7 64bit server with 132 gb rams.
#>free -m
total used free shared buff/cache available
Mem: 125G 15G 4.9G 43G 105G 66G
Swap: 16G 1.2M 16G
Shouldn't the used column be much higher than 15g if I have 132gb installed?
I have Oracle installed on the server
Thanks
Randy
|
|
|
02-06-2017, 09:11 AM
|
#2
|
Senior Member
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
|
Quote:
Originally Posted by steinz
Hi,
I have a new rhel 7 64bit server with 132 gb rams.
#>free -m
total used free shared buff/cache available
Mem: 125G 15G 4.9G 43G 105G 66G
Swap: 16G 1.2M 16G
Shouldn't the used column be much higher than 15g if I have 132gb installed?
I have Oracle installed on the server
Thanks
Randy
|
From your output it looks like the OS is seeing all of the available memory in your server.
You have to remember that not all of your RAM will be available to the OS.
As your PC's hardware (on-board motherboard/integrated devices) will have some of the memory reserved and therefore that memory will be unavailable to the OS.
Edit: How busy is your server?
Last edited by jsbjsb001; 02-06-2017 at 09:13 AM.
|
|
|
02-06-2017, 09:56 AM
|
#3
|
Member
Registered: Mar 2006
Posts: 58
Original Poster
Rep:
|
I thought Linux takes all the ram. But on my server, its only taking about 10% and the cache is taking the rest.
I am the only one using the server now.
|
|
|
02-06-2017, 09:59 AM
|
#4
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by steinz
I thought Linux takes all the ram. But on my server, its only taking about 10% and the cache is taking the rest.
I am the only one using the server now.
|
http://www.linuxatemyram.com/
|
|
|
02-06-2017, 10:05 AM
|
#5
|
Member
Registered: Mar 2006
Posts: 58
Original Poster
Rep:
|
thanks for the link, but I think that is the opposite of what I am asking.
The link seems to say its ok if linux seems to be using all the ram, I am asking why the os is not using all my ram.
Randy
|
|
|
02-06-2017, 10:14 AM
|
#6
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
It's using almost all of it, what are you seeing that I'm not? You have 4.9G "free" and 105G being used for cache, what more do you want?
Maybe you're confused by the new format of free? It was changed in rhel 7 vs 6. I have two systems, each with 128 GB, one running CentOS 6 and the other on 7. Their usage is pretty similar, you can compare/contrast the output of free:
Code:
CentOS 6:
$ free -h
total used free shared buffers cached
Mem: 126G 107G 18G 6.3M 270M 105G
-/+ buffers/cache: 1.4G 124G
Swap: 3.9G 0B 3.9G
Code:
CentOS 7:
$ free -h
total used free shared buff/cache available
Mem: 125G 9.8G 6.8G 571M 109G 114G
Swap: 3.0G 992K 3.0G
Both systems are using ~105G for cache, but the output looks very different due to the new formatting.
Last edited by suicidaleggroll; 02-06-2017 at 10:19 AM.
|
|
2 members found this post helpful.
|
02-06-2017, 10:25 AM
|
#7
|
Member
Registered: Mar 2006
Posts: 58
Original Poster
Rep:
|
I thought used would be much closer to total
something like:
total 125gb
used 120gb
|
|
|
02-06-2017, 10:26 AM
|
#8
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
That was changed in RHEL 7, please see my post above.
|
|
|
02-06-2017, 10:39 AM
|
#9
|
Member
Registered: Mar 2006
Posts: 58
Original Poster
Rep:
|
you are right and very helpful. Thanks, I was getting the versions confused.
Randy
|
|
|
All times are GMT -5. The time now is 01:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|