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
Linux nslookup Command Examples for DNS Lookup
Viewed 504 times since Sat, Sep 29, 2018
Oracle Linux 7 – How to audit changes to a trusted file such as /etc/passwd or /etc/shadow
Viewed 1067 times since Wed, Jul 25, 2018
LVM: Reduce SWAP size by shrinking existing Logical Volume
Viewed 733 times since Sat, Jun 2, 2018
stunnel basics and pki standards
Viewed 918 times since Fri, Sep 28, 2018
How to use yum command on CentOS/RHEL
Viewed 1040 times since Wed, Oct 17, 2018
Open SSL Encrypt & Decrypt Files With Password Using OpenSSL
Viewed 695 times since Mon, Feb 18, 2019
How to Analyze or Read OS Watcher Output in three easy steps -- With Example ?
Viewed 3063 times since Thu, Jun 21, 2018
RHEL: Checking HBAs
Viewed 1386 times since Sun, May 27, 2018
Tilix: Advanced Tiling Terminal Emulator for Power Users
Viewed 1232 times since Thu, Apr 18, 2019
RHEL : How to deal with “CLOSE_WAIT” and “TIME_WAIT” connection
Viewed 3065 times since Thu, Feb 14, 2019