- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Percentage of total memory utilization is show...
Operating System - Linux
1753336
Members
4963
Online
108792
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2010 08:04 AM
07-14-2010 08:04 AM
Re: Percentage of total memory utilization is shown above 100%.
hi, my english is not good, but i´m gonna try..
in linux, Kernell uses all available physical memory cache to maximize the use of RAM, and so expedite the process. In this case you always see 90 or 99% of RAM used
total used free buffers cached
Mem: 16055 4264 11790 15 3027
-/+ b/cache 1221 14833
Swap: 8189 0 8189
as you can see, the amount of free memory and buffer cache is equal to the free virtual memory, if you make a drop_caches in RH or CentOS, you can watch free virtual memory to continue with the same value, in this case 14 833
free -m|awk '{print $3}'|tail -2|head -1 this is de used memory
in linux, Kernell uses all available physical memory cache to maximize the use of RAM, and so expedite the process. In this case you always see 90 or 99% of RAM used
total used free buffers cached
Mem: 16055 4264 11790 15 3027
-/+ b/cache 1221 14833
Swap: 8189 0 8189
as you can see, the amount of free memory and buffer cache is equal to the free virtual memory, if you make a drop_caches in RH or CentOS, you can watch free virtual memory to continue with the same value, in this case 14 833
free -m|awk '{print $3}'|tail -2|head -1 this is de used memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2010 09:40 AM
07-14-2010 09:40 AM
Re: Percentage of total memory utilization is shown above 100%.
Shalom,
Memory use can be over 100%, depending on the definition of memory.
If you define memory as RAM, and you have programs of services running in excess of that total, inactive processes will be swapped to disk. Memory use will exceed RAM.
If you define memory as ram plus swap, than it is not possible to exceed 100% memory utilization.
I believe the statement on server 2 is a situation defined above, where memory is being calculated based on physical memory, not total capacity.
What does vmstat show on server 2?
SEP
Memory use can be over 100%, depending on the definition of memory.
If you define memory as RAM, and you have programs of services running in excess of that total, inactive processes will be swapped to disk. Memory use will exceed RAM.
If you define memory as ram plus swap, than it is not possible to exceed 100% memory utilization.
I believe the statement on server 2 is a situation defined above, where memory is being calculated based on physical memory, not total capacity.
What does vmstat show on server 2?
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2010 10:19 AM
07-14-2010 10:19 AM
Re: Percentage of total memory utilization is shown above 100%.
something like that, if we take just as RAM memory, not swap, ie, the idea is to know what the amount of RAM actually used, I think that if we define it that way, the amount of cache + buffer + Free RAM, we could determine an approximate amount of actual free RAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2010 01:44 PM
07-16-2010 01:44 PM
Re: Percentage of total memory utilization is shown above 100%.
HI Senthil,
I understand your requirement, in a simple manner the solution to your query would be to use free -m
For eg:
$ free -m
total used free shared buffers cached
Mem: 32186 18596 13590 0 828 13587
-/+ buffers/cache: 4180 28006
Swap: 16386 0 16386
From the above o/p the amount of memory actually in use is 4180( free command takes care of calculating the buffers and cache). From this, you can arrive at the percentage usage of memory on your linux server ( In this case would be ~13% used)
Thanks,
RB
I understand your requirement, in a simple manner the solution to your query would be to use free -m
For eg:
$ free -m
total used free shared buffers cached
Mem: 32186 18596 13590 0 828 13587
-/+ buffers/cache: 4180 28006
Swap: 16386 0 16386
From the above o/p the amount of memory actually in use is 4180( free command takes care of calculating the buffers and cache). From this, you can arrive at the percentage usage of memory on your linux server ( In this case would be ~13% used)
Thanks,
RB
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP