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
3 Ways to Check Linux Kernel Version in Command Line
Viewed 1131 times since Fri, Apr 19, 2019
10 Linux cryptsetup Examples for LUKS Key Management (How to Add, Remove, Change, Reset LUKS encryption Key)
Viewed 1550 times since Tue, Jul 31, 2018
How to encrypt a partition using LUKS?
Viewed 722 times since Fri, Jul 13, 2018
RHEL: Bonding network interfaces
Viewed 1315 times since Sat, Jun 2, 2018
stunnel Securing telnet connections with stunnel
Viewed 97 times since Sun, Dec 6, 2020
LVM: Recovering Physical Volume Metadata
Viewed 959 times since Sat, Jun 2, 2018
An easier way to manage disk decryption at boot with Red Hat Enterprise Linux 7.5 using NBDE
Viewed 2789 times since Mon, Aug 6, 2018
Improve security with polyinstantiation
Viewed 420 times since Fri, May 15, 2020
Jak wygenerować silne hasła jednorazowe w Linuksie?
Viewed 1101 times since Thu, May 24, 2018
stunnel How To Set Up an SSL Tunnel Using Stunnel on Ubuntu
Viewed 107 times since Sun, Dec 6, 2020