开发者社区> leshami> 正文

Suse Linux zmd 耗用100% CPU

简介:     最近的Suse Linux 10(SP3)的top命令总是显示zmd进程耗用了100%的CPU资源,而整个系统中system级别占用CPU则占用了40%以上且根本不曾释放。
+关注继续查看

    最近的Suse Linux 10(SP3)的top命令总是显示zmd进程耗用了100%的CPU资源,而整个系统中system级别占用CPU则占用了40%以上且根本不曾释放。尝试重启服务器之后,故障依旧。下面是这个问题的描述与处理。

1、top命令显示zmd cpu占用100%,system usage 40%以上
top - 09:55:10 up 33 days, 13:44,  4 users,  load average: 1.09, 1.12, 1.06
Tasks: 217 total,   2 running, 215 sleeping,   0 stopped,   0 zombie
Cpu(s):  6.2%us, 42.6%sy,  0.0%ni, 48.5%id,  1.0%wa,  0.0%hi,  1.6%si,  0.0%st
Mem:   7527676k total,  7475372k used,    52304k free,    74720k buffers
Swap:  2104472k total,  1246612k used,    857860 free,  1984724k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    3633 root      34  19  110m  21m 9180 S  100  0.3 822:51.15 zmd    
   22402 robin     15   0  5656 1216  792 R    2  0.0   0:00.01 top 
                                                                             
2、关于zmd的描述
The ZENworks Agent is named zmd. It is sometimes referred to as the ZENworks Management Daemon (zmd).

The ZENworks Agent performs software management functions on the ZENworks managed device, including updating, installing, and removing software and performing basic queries of the device's package management database. Typically, these management tasks are initiated through the ZENworks Control Center or the rug utility, which means you should not need to interact directly with the ZENworks Agent.

#主要功能是管理设备,更新,安装以及移除软件以及对设备包管理进行查询,这个ageng并不影响整个系统的运行。
The ZENworks Agent is installed to the following directory:

/opt/novell/zenworks/sbin

For SUSE LINUX Enterprise Server 10 (SLES 10) and SUSE LINUX Enterprise Desktop 10 (SLED 10) devices, the ZENworks Agent is located in the following directory:

/usr/sbin

6.1.1 ZENworks Agent (zmd) Cache Settings
As the ZENworks Agent (zmd) performs its duties, it maintains a cache that stores the content of bundles that are downloaded for installation on that managed device. You can control the age of contents in the cache and its size by using cache settings. Cache cleanup is enforced on both client startup and refresh.

If the process of downloading the bundle is interrupted on the managed device, the zmd starts the download of individual packages from where it was left off.

The cleaning of cached information is always enabled. You can configure the following settings using the rug set command in the rug utility to manage the cache. For more information about the rug utility, see Section 4.4, rug.

关于zmd的链接:http://www.novell.com/documentation/zlm72/lm7admin/?page=/documentation/zlm72/lm7admin/data/bxltra0.html

 

3、关闭zmd进程
SZDB:/usr/sbin # ps -ef | grep zmd
root      3265     1  0 May14 ?        00:00:01 zmd /usr/lib/zmd/zmd.exe
root      3633     1 99 May14 ?        13:31:04 zmd /usr/lib/zmd/zmd.exe
root     21841 20286  0 09:43 pts/2    00:00:00 grep zmd

--> Author : Robinson
--> Blog   :
http://blog.csdn.net/robinson_0612

#刚开始时通过yast来禁止zmd启动,执行失败,不得不先kill这个进程,然后再disable成功
SZDB:/usr/sbin # kill -9 3633   #kill掉那个占用100% cpu的进程
SZDB:/usr/sbin # top            #再次top,system usage下面到1%以下

top - 10:27:39 up 14:17,  3 users,  load average: 0.16, 0.09, 0.29
Tasks: 226 total,   1 running, 225 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2%us,  0.3%sy,  0.0%ni, 99.3%id,  0.2%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   7527676k total,  7479032k used,    48644k free,    75048k buffers
Swap:  2104472k total,        0k used,  2104472k free,  6463032k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                       
 3265 root      34  19  100m  20m 9124 S    0  0.3   0:01.01 zmd                                           

#启用yast来disable novell-zmd启动
yast system  system services(runlevel)     novell-zmd

/etc/init.d/novell-zmd stop returned 0 (success):
Shutting down ZENworks Management Daemon..done

#如果后续需要用到novell-zmd,可以将其启动即可
#测试了一下,将novell-zmd再次enable,会依旧出现上述情形,估计是个bug,有兴趣的朋友可以继续google。

 

4、更多参考
  SUSE Linux 10 配置裸设备(raw devices)
  SUSE Linux 10 下重命名网卡名字
  ulimit: open files: cannot modify limit: Operation not permitted
  Linux HugePage 特性
  Linux 下配置 HugePages
  Linux 前后台作业切换及脱机管理
 

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
Linux 性能监控之CPU&内存&I/O监控Shell脚本2
Linux 性能监控之CPU&内存&I/O监控Shell脚本2
53 0
Linux 性能监控之CPU&内存&I/O监控Shell脚本1
Linux 性能监控之CPU&内存&I/O监控Shell脚本1
37 0
PHP是如何和Linux的CPU交互的?生命周期是怎样的?底层原理是什么?
PHP是如何和Linux的CPU交互的?生命周期是怎样的?底层原理是什么?
25 0
Linux搭建了Docker ,每个容器分配的内存和CPU是多少?是怎么分配的?底层原理是什么?
Linux搭建了Docker ,每个容器分配的内存和CPU是多少?是怎么分配的?底层原理是什么?
343 0
CPU相关概念及如何在Linux中查看CPU信息
文章目录 一、CPU相关概念 1、物理CPU 2、物理CPU内核 3、逻辑CPU 4、几核几线程 二、Linux中查看物理CPU、物理内核、逻辑CPU命令 1、查看物理CPU个数 2、查看每个物理CPU核心数 3、查看逻辑CPU的个数 三、CPU架构 1、多个物理CPU 2、多核CPU 3、多核超线程
90 0
Linux CPU监控(下)
Linux CPU监控(下)
90 0
Linux CPU监控(上)
Linux CPU监控(上)
137 0
Linux:查看服务器信息,CPU、内存、系统版本、内核版本等
Linux:查看服务器信息,CPU、内存、系统版本、内核版本等
230 0
linux smp_init() 流程,cpu状态迁移流程
linux smp_init() 流程,cpu状态迁移流程
41 0
Linux系统篇—CPU使用率是怎么回事
CPU 使用率是最直观和最常用的系统性能指标,更是我们在排查性能问题时,通常会关注的第一个指标。所以我们更要熟悉它的含义。
154 0
+关注
leshami
传播知识,分享快乐!十年以上数据库,系统运维与管理,性能优化经验。全部文章,欢迎扩散,转载请注明出处!
文章
问答
视频
文章排行榜
最热
最新
相关电子书
更多
ECS运维指南 之 Linux系统诊断
立即下载
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
相关实验场景
更多
相关镜像