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
Super Grub2 Disk
Viewed 7666 times since Wed, May 22, 2019
Understanding logrotate utility part 1
Viewed 2641 times since Fri, Nov 30, 2018
How To: Create Self-Signed Certificate – OpenSSL
Viewed 3959 times since Mon, Feb 18, 2019
Linux RAID Mdadm Cheat Sheet
Viewed 6712 times since Fri, May 15, 2020
Top 10 darmowych i publicznych serwerów DNS
Viewed 3116 times since Tue, May 22, 2018
Linux Linux Network Statistics Tools / Commands
Viewed 10691 times since Mon, Sep 21, 2020
Open SSL Encrypt & Decrypt Files With Password Using OpenSSL
Viewed 10562 times since Mon, Feb 18, 2019
FIO (Flexible I/O) – a benchmark tool for any operating system
Viewed 20710 times since Wed, Jul 25, 2018
How to deal with dmesg timestamps
Viewed 5003 times since Wed, Oct 3, 2018
linux manual tools
Viewed 3730 times since Fri, Sep 28, 2018