Problem with cached VPS

xuancong6000

Verified User
Joined
Oct 12, 2012
Messages
79
when I type command: free -m it appear "-/+ buffers/cache"
Code:
[root@server1 ~]# free m
                                 total       used        free
Mem:                           5242880    4251152      991728
-/+ buffers/cache:                        1196732     4046148
Swap:                                0          0           0
this is info RAM off my VPS:
Code:
[root@server1 ~]# cat /proc/meminfo
MemTotal:        5242880 kB
MemFree:          992584 kB
Cached:          3054228 kB
Active:          1753708 kB
Inactive:        2321096 kB
Active(anon):     794220 kB
Inactive(anon):   226356 kB
Active(file):     959488 kB
Inactive(file):  2094740 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                28 kB
Writeback:             0 kB
AnonPages:       1020576 kB
Shmem:              3724 kB
Slab:             175464 kB
SReclaimable:     153848 kB
SUnreclaim:        21616 kB

cached is use alot of RAM. First I had install APC and limit cache is 1GB but it also use more than 3GB of RAM so I disable it and change to xcache but it still again I don't know how can to solve it please help me fix this issure thanks alot
I had attached info of my VPS
 

Attachments

  • cache.png
    cache.png
    22.4 KB · Views: 94
Last edited:
I've got this:

Code:
# cat /proc/meminfo
MemTotal:      8161468 kB
MemFree:        121496 kB
Buffers:        294648 kB
Cached:        5862416 kB
SwapCached:         24 kB
Active:        1566088 kB
Inactive:      5668184 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      8161468 kB
LowFree:        121496 kB
SwapTotal:     8016416 kB
SwapFree:      8015888 kB
Dirty:            1044 kB
Writeback:           0 kB
AnonPages:     1077100 kB
Mapped:          24688 kB
Slab:           765936 kB
PageTables:      12532 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  12097148 kB
Committed_AS:  2540572 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    267008 kB
VmallocChunk: 34359470883 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB

and that's OK.

MemTotal: 8161468 kB
Cached: 5862416 kB
MemFree: 121496 kB

Unless I configure and maintenance your server, I can not guarantee your server will be running OK. But the amount of memory used for cache does not seem to me to be abnormal.
 
I've got this:

Code:
# cat /proc/meminfo
MemTotal:      8161468 kB
MemFree:        121496 kB
Buffers:        294648 kB
Cached:        5862416 kB
SwapCached:         24 kB
Active:        1566088 kB
Inactive:      5668184 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      8161468 kB
LowFree:        121496 kB
SwapTotal:     8016416 kB
SwapFree:      8015888 kB
Dirty:            1044 kB
Writeback:           0 kB
AnonPages:     1077100 kB
Mapped:          24688 kB
Slab:           765936 kB
PageTables:      12532 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  12097148 kB
Committed_AS:  2540572 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    267008 kB
VmallocChunk: 34359470883 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB

and that's OK.

MemTotal: 8161468 kB
Cached: 5862416 kB
MemFree: 121496 kB

Unless I configure and maintenance your server, I can not guarantee your server will be running OK. But the amount of memory used for cache does not seem to me to be abnormal.
yes thanks you very much:). Can you for me advice should I use APC or xcache for VPS with directadmin control
 
Back
Top