大网数据广告活动
服务器运维问答

How conservative should I be when considering current cache use on a system?

· 52CE 我爱测

Periodically, as with any large online service, we evaluate the current load on our hardware, and make attempts at "right-sizing" so that we're not paying for severely underutilized hardware. How concerned should I be when factor…

问题原文

原帖链接 · MrDuk · CC BY-SA 3.0

Periodically, as with any large online service, we evaluate the current load on our hardware, and make attempts at "right-sizing" so that we're not paying for severely underutilized hardware.

How concerned should I be when factoring cache memory in use? It's my understanding that cache is by and large used as an optimization, but I seem to recall also reading that cache could stay held for a while beyond needing to be used -- a sort of waste due to excessively available resources. Here's an example of one of our current systems:

So my question then is, how "safe" should I play it when considering how much load this host can (or should) hold? Do I consider everything, used/buffers/cache, as 100% required for optimal use? Or can I be more lenient with cache, and assume the system may swap out cache entries more frequently, but not to a point that would actually cause application performance issues?

已采纳解答

原帖链接 · shodanshok · CC BY-SA 3.0

Caching is all about reducing access to the underlying storage (HDD or SSD), so it all depends on your I/O workload. Decreasing the available cache can increase your iowait and disk's %utils stats, meaning that the physical disk can be under increased stress.

I suggest you to decrease your available memory in relatively small steps (ie: 4 GB at times) and check if your server performance decreased. If not, you can reduce again your memory (never under your application minimal requirements, obviously).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-01-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。