Highlighted
Absent Member.. GTrejos7 Absent Member..
Absent Member..
222 views

[Support Tip] On several HP-UX servers after upgrade to 11.12 ver of OA Agent scopeux aborts

Environment:

 

HP-UX 11.31 running 11.12 OA agent

 

Cause:

 

 

We can see that midaemon is not running, but scopeux depends on it:

 

-----------------------------------------

Perf Agent status:

WARNING: scopeux    is not active (Perf Agent data collector)

WARNING: midaemon   is not active (Measurement Interface daemon)

---------------------------------------------------

 

And in the log file for midaemon “status.mi”,  we can see the following error:

----------------------------------

 

Start midaemon       11.11.025  2012-12-08_0031 HP-UX 11 =*=

midaemon: Tue Sep 10 11:48:35 2013

Unable to find newly enabled CPU.

Please use -prealloc to allocate bufsets for all CPUs.

---------------------------------------------

 

This is the same issue as one CPE case in the labs. 

 

 

SOLUTION:

 

Workaround is to make midaemon allocate bufsets for all total number of CPUs configured.

For midaemon we have the following parameter:

 

-prealloc <value>

specifies the highest CPU ID the midaemon should pre-

allocate bufsets for. By default, bufsets are only allocated

for active CPUs, at startup time, and then dynamically as

CPUs become active. If the value provided as argument is

greater than the highest possible CPU ID, bufsets will be

allocated for all CPUs, present or not, active or not. This

was the default for previous versions of the midaemon. Note

that, when running the midaemon single-threaded, trace

buffers are pre-allocated regardless of this option.

DEFAULT: 0.

Execute icapstatus, and verify the total number of CPU cores. Allocate bufsets based on the total number of CPU cores.

Explanation on setting -prealloc:

• allocate bufsets for total cpus using "midaemon -prealloc"

Example: # midaemon -prealloc= < Total number of Physical CPUS>

[ Here we need to use the Total number of Physical CPUS]

• So if any other midaemon options are already in use then add this option along with them like below:

If existing command is :

midameon -pids 10000 -kths 10000 -smdvss 512M

Then change it to:

midaemon -prealloc= < Total number of Physical CPUS> -pids 10000 -kths 10000 -smdvss 512M

If for example the Total number of Physicas CPUS on system is 8 the command will look like below:

midaemon –prealloc=8 -pids 10000 -kths 10000 -smdvss 512M

Steps to do it:

1) Stop Performance Agent (PA) using "/opt/perf/bin/ovpa stop"

2) Stop perfd using "/opt/perf/bin/pctl stop"

3) Check if any glance or , xglance running , then stop them all.

4) Check if still midameon is running , then stop it using "/opt/perf/bin/midaemon -T"

4) Check if midamon stopped, if not then its hanging. Kill it using "kill -9 <MIDAEMON PID>"

5) Edit PA start up script, /etc/rc.config.d/ovpa and add the following option,

MWA_START=1

MWA_START_COMMAND="/opt/perf/bin/mwa start"

MWA_PROTOCOL=http

MIPARMS="-prealloc=8 -pids 10000 -kths 10000 -smdvss 512M"

export MIPARMS

MIPARMS="-prealloc=<Total Number of Physical CPUs> -pids 10000 -kths 10000 -smdvss 512M"

Example:

if Total number of Physical CPUS is 8 then following is the way to set it.

export MIPARMS="-prealloc=8 -pids 10000 -kths 10000 -smdvss 512M"

export MIPARMS

 

 

 

6) Start PA using "/opt/perf/bin/ovpa start"

7) Start perfd using "/opt/perf/bin/pctl start"

😎 Check 'ps -ef|grep midaemon' output of midameon to see whether midaemon is running with configured parameters.

 

PS: In Example the MIPARMS is based on the user values as explained above.

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
If you liked it I would appreciate KUDOs.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.