Posted on July 19, 2021 1:18 pm
 |  Asked by Daniel Galaz
Print Friendly, PDF & Email

Hello, how are you? I have a question, I work with 2 edges 7050QX, which have 4GB of ram memory, I am passing 5 GB of traffic and the equipment has used 90% of ram, I have not had a problem, but is this normal?

Posted by Shreyas Ruwala
Answered on July 19, 2021 2:52 pm

Hi Daniel,

Could you attach below output for us to review?

bash FastCli -p 15 -c 'show tech-support | no-more' | gzip -9 -c > /mnt/flash/$HOSTNAME-sh-tech.gz

Shreyas Ruwala

Posted by Stuart Dayer
Answered on July 19, 2021 3:47 pm

Hello Daniel,

How are you calculating the amount of used RAM?

To correctly calculate the available amount of memory the free memory plus any buffers or cache memory are added together.
The link below provides more information on this.

Example form lab switch:
On switch sw3
Mem: 3978148k total, 3461332k used, 516816k free, 187008k buffers
Swap: 0k total, 0k used, 0k free, 1796032k cached
Total physical memory is 3,978,148k
Available free physical memory is 516,816k. To calculate available memory on the switch you also add buffers 187,008k and cache memory 1,796,032k giving a total available memory of 2,499,856k.

Check Flash:
The bash df –h output from my lab switch below shows the disk free space when the switch booted the 4.16.8M image. This shows there was 142M of free flash memory, with 91% of flash utilised.

Posted by Aniket Bhowmick
Answered on July 21, 2021 2:52 am

Hi Daniel

To check available memory in RAM, just run this command:

switch#show version

Total memory: 8099008 kB                <--- Total memory size
Free memory: 5994372 kB         <-- this is the free memory in RAM currently.

If you want to have a more detailed information, you can run the command:

switch#bash cat /proc/meminfo



Posted by Kushal Nepali
Answered on July 27, 2021 2:37 am

Hi Daniel.

Seeing a high memory utilization can be a normal behaviour for EOS because it uses Linux page caching. Provided that enough memory is available from the buffers and cached memory for demanding applications.

This means that EOS will dynamically reallocate the free memory to ongoing processes which are requesting more memory, This helps with overall processing speeds. The switch won't reach 100% memory utilisation but it can even reach 99% .

Hope this helps answer your question.

Post your Answer

You must be logged in to post an answer.