K
K
Konstantin Khairov2017-05-03 13:13:52
linux
Konstantin Khairov, 2017-05-03 13:13:52

Cache reserves almost all memory, how to limit?

Hello! For a long time I was looking for the cause of the server load, not a single process eats anything especially, etc. And then I checked cat /proc/meminfo and
this is what I got:
cat /proc/meminfo
MemTotal: 2054064 kB
MemFree: 83460 kB
Buffers: 91716 kB
Cached: 1695844 kB The
cache reserves 1.6 GB of 2 GB of RAM on the server. How can I limit this, I tried to google but found nothing. Thank you in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Moseychuk, 2017-05-03
@fshp

Nothing needs to be restricted. All available memory is used for cache. If an application needs a lot of memory, the OS will automatically release it.

E
Erelecano Oioraen, 2017-05-03
@Erelecano

www.linuxatemyram.com
www.linuxatemyram.ru

K
kolu4iy, 2017-05-11
@kolu4iy

Don't touch the cache. Run memtest86 if the server is physical.
Hangs are only due to kernel level issues. Do you have kernel panic and other segmentation faults in dmesg output?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question