Suse Linux zmd 耗用100% CPU

    最近的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 前后台作业切换及脱机管理
 

你可能感兴趣的:(Suse Linux zmd 耗用100% CPU)