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

What would cause KSMD to use CPU on a machine with no VMs?

· 52CE 我爱测

I have a CentOS 6 machine that is used as a database (mysql) and application server. Recently I've noticed that KSMD is waking up and using exactly a half a core for anywhere from a couple of minutes to several hours. As near as …

问题原文

原帖链接 · Brad Silva · CC BY-SA 3.0

I have a CentOS 6 machine that is used as a database (mysql) and application server.

Recently I've noticed that KSMD is waking up and using exactly a half a core for anywhere from a couple of minutes to several hours.

As near as I can tell, KSMD is only used on to do memory dedup for virtual machines. The Documentation for this OS says: "A KSM cycle is triggered when the thres value added to the sum of all qemu-kvm processes RSZ exceeds total system memory."

I've checked, no VMs running on this machine.

Any ideas?

已采纳解答

原帖链接 · Brad Silva · CC BY-SA 3.0

It turns out that Linux's KSM implementation was originally intended for use with VMs, but as it can save memory on non-virtual systems, is deployed by default on CentOS 6 and later.

This server's memory usage has been creeping up and that apparently triggered KSMD to start scanning.

Somewhere along the line the documentation for CentOS 6 didn't get updated (or Google is linking me to an older version). In addition, most of the links that I've found via Google queries still refers to KSM in the context of being exclusively used in KVM environments.

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

资料来源与适用范围

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

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

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