GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Free V SAR
Operating System - Linux
1847748
Members
3334
Online
104013
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
Forums
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
02-23-2011 08:08 AM
02-23-2011 08:08 AM
Free V SAR
Hi,
I had a server that experienced a crash last night and when I looked at the SAR report it showed that the "%memused" was 98%. On comparing this today with the memory info displayed from the "free" command, there appears to be a considerable difference (See below). Can anybody explain what the difference is between the two and what is the true reflection of what memory the box is using?
# sar -r -f /var/log/sa/sa23 (shows "memused" @ 79%:
03:35:01 PM kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree kbswpused %swpused kbswpcad
03:40:01 PM 9198600 56784520 86.06 630044 21133808 65535992 0 0.00 0
03:45:01 PM 9195232 56787888 86.06 630292 21134048 65535992 0 0.00 0
03:50:01 PM 9170532 56812588 86.10 630584 21133872 65535992 0 0.00 0
03:55:01 PM 9149868 56833252 86.13 630856 21134152 65535992 0 0.00 0
Average: 13659699 52323421 79.30 554684 19173568 65535992 0 0.00 0
However free only suggests that the box is using 53%:
[root@fworksdb2 ~]# free -b|grep ^-|awk '{ print (($3/($3+$4))*100) "% Used" }'
53.1834% Used
Rgds,
D.
I had a server that experienced a crash last night and when I looked at the SAR report it showed that the "%memused" was 98%. On comparing this today with the memory info displayed from the "free" command, there appears to be a considerable difference (See below). Can anybody explain what the difference is between the two and what is the true reflection of what memory the box is using?
# sar -r -f /var/log/sa/sa23 (shows "memused" @ 79%:
03:35:01 PM kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree kbswpused %swpused kbswpcad
03:40:01 PM 9198600 56784520 86.06 630044 21133808 65535992 0 0.00 0
03:45:01 PM 9195232 56787888 86.06 630292 21134048 65535992 0 0.00 0
03:50:01 PM 9170532 56812588 86.10 630584 21133872 65535992 0 0.00 0
03:55:01 PM 9149868 56833252 86.13 630856 21134152 65535992 0 0.00 0
Average: 13659699 52323421 79.30 554684 19173568 65535992 0 0.00 0
However free only suggests that the box is using 53%:
[root@fworksdb2 ~]# free -b|grep ^-|awk '{ print (($3/($3+$4))*100) "% Used" }'
53.1834% Used
Rgds,
D.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011 09:24 AM
02-23-2011 09:24 AM
Re: Free V SAR
keep in mind that the first line of free command includes the allocated cache.
linux will use all available mem for cache and give back as needed.
look at the -/+ buffers/cache line for the real numbers.
linux will use all available mem for cache and give back as needed.
look at the -/+ buffers/cache line for the real numbers.
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.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP