K
K
Konstantin2014-07-10 09:37:31
linux
Konstantin, 2014-07-10 09:37:31

The Debian file server is always full of RAM. Is it worth cleaning?

Dell Poweredge R720, 8 GB RAM, Debian Wheezy, will soon be introduced as a file server. After starting the system, in 20 minutes all the RAM is clogged

KiB Mem:   8147224 total,  8015004 used,   132220 free,  1751756 buffers
KiB Swap:  9765884 total,        0 used,  9765884 free,  5934160 cached

free -m
             total       used       free     shared    buffers     cached
Mem:          7956       7830        125          0       1710       5800
-/+ buffers/cache:        319       7637
Swap:         9536          0       9536

While working with files, I do The
echo 1 > /proc/sys/vm/drop_caches
memory is cleared and clogged, as I understand it, with the cache.
What is the risk of performing such an operation on a "live" server? And is it necessary at all?
My guess, but I could be wrong - if you run such a command periodically, then the load on the CPU should increase?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2014-07-10
@fallen8rwtf

No need to clean up. This is a normal operation of the system with RAM.
In Linux, this is the model for working with RAM. So that the memory is not idle, the pages that have been read are placed in the cache. This speeds up reread operations. When processes need memory, this cache will either be swapped out or dropped. In general, used \ free are not unambiguous indicators and you need to look at the whole picture.
Here is an interesting article on this subject:
markelov.blogspot.ru/2009/01/linux-procmeminfo.html

A
Ad3pt, 2014-07-10
@Ad3pt

www.linuxatemyram.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question