My Oracle Support Banner

Hwmgmtd Could Cause High CPU Usage on Solaris 11.2 when snmpd Runs with Non-Root User (Doc ID 2104705.1)

Last updated on NOVEMBER 05, 2023

Applies to:

Sun Server X3-2L - Version All Versions and later
Information in this document applies to any platform.

Symptoms

The below is a part of prstat(1M) and truss(1) command for hwmgmtd.  The prstat command indicates hwmgmtd is constantly running on a CPU.

Also, truss command will show accept() with EAGAIN error for file descriptior#9 which is one of socket descriptor.

: prstat (prstat -L -c -p <hwmgmtd_pid>) :
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/LWPID
1290 root 51M 9732K cpu4 0 0 2004:23:2 9.4% hwmgmtd/2
1290 root 51M 9732K sleep 59 0 0:29:19 0.0% hwmgmtd/4
1290 root 51M 9732K sleep 59 0 0:09:21 0.0% hwmgmtd/3
1290 root 51M 9732K sleep 58 0 0:00:03 0.0% hwmgmtd/1
Total: 1 processes, 4 lwps, load averages: 0.93, 1.03, 1.05
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/LWPID
1290 root 51M 9732K cpu7 0 0 2004:23:5 12% hwmgmtd/2
1290 root 51M 9732K sleep 59 0 0:29:19 0.0% hwmgmtd/4
1290 root 51M 9732K sleep 59 0 0:09:21 0.0% hwmgmtd/3
1290 root 51M 9732K sleep 58 0 0:00:03 0.0% hwmgmtd/1
Total: 1 processes, 4 lwps, load averages: 1.00, 1.04, 1.05

: truss (truss -faeld -o truss.out -p <hwmgmtd_pid> ):
1290/1: psargs: /usr/lib/ssm/hwmgmtd
1290/2: 0.0030 recv(8, 0xFB8CD9A4, 4, 0) Err#9 EBADF
1290/2: 0.0032 accept(9, 0x00000000, 0x00000000, SOV_DEFAULT) Err#11 EAGAIN
1290/2: 0.0033 pollsys(0xFB8CD860, 2, 0xFB8CD928, 0x00000000) = 1
1290/2: 0.0034 recv(8, 0xFB8CD9A4, 4, 0) Err#9 EBADF
1290/2: 0.0035 accept(9, 0x00000000, 0x00000000, SOV_DEFAULT) Err#11 EAGAIN
1290/2: 0.0036 pollsys(0xFB8CD860, 2, 0xFB8CD928, 0x00000000) = 1
1290/2: 0.0037 recv(8, 0xFB8CD9A4, 4, 0) Err#9 EBADF
1290/2: 0.0038 accept(9, 0x00000000, 0x00000000, SOV_DEFAULT) Err#11 EAGAIN
1290/2: 0.0039 pollsys(0xFB8CD860, 2, 0xFB8CD928, 0x00000000) = 1
1290/2: 0.0040 recv(8, 0xFB8CD9A4, 4, 0) Err#9 EBADF
1290/2: 0.0041 accept(9, 0x00000000, 0x00000000, SOV_DEFAULT) Err#11 EAGAIN
1290/2: 0.0042 pollsys(0xFB8CD860, 2, 0xFB8CD928, 0x00000000) = 1
1290/2: 0.0042 recv(8, 0xFB8CD9A4, 4, 0) Err#9 EBADF
1290/2: 0.0043 accept(9, 0x00000000, 0x00000000, SOV_DEFAULT) Err#11 EAGAIN
1290/2: 0.0044 pollsys(0xFB8CD860, 2, 0xFB8CD928, 0x00000000) = 1

: pfiles (pfiles <hwmgmtd_pid>) :
1290: /usr/lib/ssm/hwmgmtd
Current rlimit: 65535 file descriptors

5: S_IFREG mode:0644 dev:557,1 ino:93587795 uid:0 gid:0 size:5
O_RDWR|O_CREAT|O_EXCL FD_CLOEXEC
/system/volatile/ssm-hwmgmtd.pid
offset:5
7: S_IFDOOR mode:0444 dev:560,0 ino:47 uid:0 gid:0 size:0
O_RDONLY|O_LARGEFILE FD_CLOEXEC door to nscd[721]
/system/volatile/name_service_door
9: S_IFSOCK mode:0666 dev:562,0 ino:62057 uid:0 gid:0 size:0
O_RDWR|O_NONBLOCK
SOCK_STREAM
SO_SNDBUF(16384),SO_RCVBUF(5120)
sockname: AF_UNIX /var/run/ssm-hwmgmtd.socket
:

 

Changes

This issue happens when snmpd is being run as a non-root user with the "-u" option like below.

: ps -ef|grep snmpd :
snmpd 1283 1 0 Jul 22 ? 51:27 /usr/sbin/snmpd -u 100

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.