LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-06-2017, 08:49 AM   #1
steinz
Member
 
Registered: Mar 2006
Posts: 58

Rep: Reputation: 16
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
 
Old 02-06-2017, 09:11 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by steinz View Post
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.
 
Old 02-06-2017, 09:56 AM   #3
steinz
Member
 
Registered: Mar 2006
Posts: 58

Original Poster
Rep: Reputation: 16
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.
 
Old 02-06-2017, 09:59 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by steinz View Post
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/
 
Old 02-06-2017, 10:05 AM   #5
steinz
Member
 
Registered: Mar 2006
Posts: 58

Original Poster
Rep: Reputation: 16
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
 
Old 02-06-2017, 10:14 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
Old 02-06-2017, 10:25 AM   #7
steinz
Member
 
Registered: Mar 2006
Posts: 58

Original Poster
Rep: Reputation: 16
I thought used would be much closer to total

something like:
total 125gb
used 120gb
 
Old 02-06-2017, 10:26 AM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
That was changed in RHEL 7, please see my post above.
 
Old 02-06-2017, 10:39 AM   #9
steinz
Member
 
Registered: Mar 2006
Posts: 58

Original Poster
Rep: Reputation: 16
you are right and very helpful. Thanks, I was getting the versions confused.


Randy
 
  


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
[SOLVED] How do I know if I am low in RAM in RHEL 6 TrailMix Linux - Software 4 10-13-2015 05:52 PM
How to tell RAM and Processor in a RHEL server anon091 Linux - Newbie 4 04-10-2014 11:50 AM
Running out of RAM memory because IO cached - RHEL 6.4 manolain Linux - Kernel 1 11-04-2013 05:09 PM
RHEL 5.3 Dell 1750s not seeing 8GB RAM pyroman59 Linux - Newbie 9 12-02-2010 11:18 AM
All RAM not being recognized on Linux RHEL after adding RAM manouche Linux - Enterprise 4 04-18-2008 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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