RHEL: Display swap/RAM size

RHEL: Display swap/RAM size

# File containing information about system memory
   /proc/meminfo


# Display physical memory size

cat /proc/meminfo | grep MemTotal
   MemTotal:     11508864 kB


# Display swap size

cat /proc/meminfo | grep SwapTotal
   SwapTotal:    14352376 kB


free
                total       used       free     shared    buffers     cached
   Mem:      11508864    4983968    6524896          0     399096    3963080
   -/+ buffers/cache:     621792   10887072
   Swap:     14352376         56   14352320


free -m
                total       used       free     shared    buffers     cached
   Mem:         11239       4867       6371          0        389       3870
   -/+ buffers/cache:        607      10631
   Swap:        14015          0      14015



# Display partitions being used for swap

cat /proc/swaps
   Filename                                Type            Size    Used    Priority
   /dev/mapper/rvg-swaplv                  partition       14352376        56      -1


# Show shared memory limits
ipcs -lm
   ------ Shared Memory Limits --------
   max number of segments = 4096
   max seg size (kbytes) = 67108864
   max total shared memory (kbytes) = 17179869184
   min seg size (bytes) = 1
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
YUM CRON Enabling automatic updates in Centos 7 and RHEL 7
Viewed 12067 times since Fri, Oct 26, 2018
Linux - How to get IP and MAC address of ethernet adapter in Linux
Viewed 2856 times since Fri, Jun 8, 2018
Linux: Disks diagnostic using smartctl
Viewed 15284 times since Wed, Jul 25, 2018
Linux: how to monitor the nofile limit
Viewed 10824 times since Wed, Jul 25, 2018
Using IOzone for Linux disk performance analysis
Viewed 8407 times since Wed, Jul 25, 2018
How To Ping Specific Port Number
Viewed 4536 times since Mon, Jun 1, 2020
RHEL: Route network packets to go out via the same interface they came in
Viewed 3270 times since Sat, Jun 2, 2018
RHEL: Reinstalling Boot Loader on the Master Boot Record (MBR)
Viewed 3539 times since Sun, May 27, 2018
linux ssh Remotely Initiated Reverse SSH Tunnel
Viewed 3326 times since Wed, Apr 22, 2020
stunnel Securing telnet connections with stunnel
Viewed 1640 times since Sun, Dec 6, 2020