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
Oracle Linux 7 – How to audit changes to a trusted file such as /etc/passwd or /etc/shadow
Viewed 3489 times since Wed, Jul 25, 2018
HowTo: Retrieve Email from a POP3 Server using the Command Line
Viewed 12834 times since Mon, Feb 18, 2019
RHEL7: How to get started with Firewalld.
Viewed 12811 times since Wed, May 22, 2019
Linux Customizing Bash
Viewed 2654 times since Sun, Dec 6, 2020
red hat 7 tmpfiles service
Viewed 2311 times since Thu, Oct 11, 2018
rabbitmq Troubleshooting TLS-enabled Connections
Viewed 3137 times since Sun, Dec 6, 2020
LVM: Reduce SWAP size by removing a Logical Volume
Viewed 2536 times since Sat, Jun 2, 2018
Managing temporary files with systemd-tmpfiles on Red Hat Enterprise Linux 7
Viewed 10400 times since Sun, Nov 22, 2020
Linux Chage Command to Set Password Aging for User
Viewed 3011 times since Tue, Sep 11, 2018
Learn Linux System Auditing with Auditd Tool on CentOS/RHEL
Viewed 5079 times since Fri, Apr 5, 2019