FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
sahmed_FTNT
Staff
Staff
Article Id 294211
Description This article describes how the 'diagnose hard sysinfo memory' command is usually used for memory troubleshooting.
Scope All versions of FortiOS.
Solution

To see the memory allocated by the kernel the following commands show the same outputs and can be used:

 

get hardware memory

fnsysctl cat /proc/meminfo

diagnose hard sysinfo memory

 

Here is how to read this command to determine the memory of the device during troubleshooting:

 

diagnose hard sysinfo memory
MemTotal: 1911036 kB            <- Total Memory of the hardware.
MemFree: 911804 kB              <- Total free memory of the hardware.
Buffers: 47244 kB               <- Buffer size for temporary memory.
Cached: 393348 kB               <- Cached memory for disk I/O access.
SwapCached: 0 kB                <- Cache for memory pages.
Active: 573964 kB               <- Memory used for recently used processes.
Inactive: 76000 kB              <- Memory used for processes that were not recently active.
Active(anon): 463264 kB         <- Anonymous memory.
Inactive(anon): 24252 kB        <- Anonymous memory.
Active(file): 110700 kB         <- Buffer/cache memory which is in active use. This memory is in recent use and is not used by any other process.
Inactive(file): 51748 kB        <- Buffer/cache memory which is free. This memory is not in use and can be used by any other process.
Unevictable: 0 kB               <- Pages can't be swapped out for multiple reasons.
Mlocked: 0 kB                   <- Pages locked to memory, Mlocked pages are also Unevictable.
SwapTotal: 0 kB                 <- Total Swap space in memory.
SwapFree: 0 kB                  <- Free Swap space in memory.
Dirty: 20 kB                    <- Memory in wait to get written back to the disk.
Writeback: 0 kB                 <- Memory which is currently written on the disk.
AnonPages: 209384 kB            <- Non file back pages mapped into user space.
Mapped: 78796 kB                <- Mapped files like, libraries.
Shmem: 278144 kB                <- Shared memory.
Slab: 89648 kB                  <- in-kernel data structures cache.
SReclaimable: 8292 kB           <- Part of slab/memory which can be claimed.
SUnreclaim: 81356 kB            <- Part of slab/memory which can not be claimed.
KernelStack: 1360 kB            <- Non-reclaimable kernel memory.
PageTables: 16720 kB            <- Amount of memory dedicated to the lowest level of the page.
NFS_Unstable: 0 kB              <- Memory not promised to the storage.
Bounce: 0 kB                    <- Memory used for bounce buffers.
WritebackTmp: 0 kB              <- Memory used for temporary purpose for writeback buffers.
CommitLimit: 955516 kB          <- Amount of memory available to be allocated.
Committed_AS: 7521252 kB        <- Sum of all the memory available to be allocated.
VmallocTotal: 663552 kB         <- Total size of Vmalloc memory area.
VmallocUsed: 152496 kB          <- Total size of Vmalloc memory area in used.
VmallocChunk: 349128 kB         <- Total size of free Vmalloc memory area.

 

Refer to the Linux documentation for more details:  proc.txt  -> search for '/proc/meminfo'.