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
Get UUID of Hard Disks [Update]
Viewed 2812 times since Tue, Jul 17, 2018
RHEL: Services basic management - chkconfig
Viewed 6635 times since Sat, Jun 2, 2018
How To Create a Linux Swap File
Viewed 3308 times since Fri, Jun 8, 2018
What Is /dev/shm And Its Practical Usage
Viewed 9067 times since Tue, Mar 12, 2019
How to Migrate from RHEL 8 to CentOS 8
Viewed 4034 times since Fri, May 15, 2020
Watchdog script to keep an application running
Viewed 20046 times since Tue, Jul 31, 2018
ZFS: Verify/change properties of a zfs filesystem
Viewed 3383 times since Sun, Jun 3, 2018
Linux 16 Useful Bandwidth Monitoring Tools to Analyze Network Usage in Linux
Viewed 17770 times since Mon, Sep 21, 2020
Linux Cluster Tutorial
Viewed 2804 times since Sat, Sep 29, 2018
How to schedule crontab in Unix Operating Systems
Viewed 2650 times since Fri, Jun 8, 2018