Operating System - HP-UX
1752608 Members
4374 Online
108788 Solutions
New Discussion юеВ

Re: HP-UX(11.23) pstat_getproc() EOVERFLOW

 
SOLVED
Go to solution

HP-UX(11.23) pstat_getproc() EOVERFLOW

Hi everyone.

I have a trouble on HP-UX(11.23 64bit)

Some application(32bit) have occurred EOVERFLOW at pstat_getproc().

I don't know what condition of application in cae of this error.

I'd like to know the reappearance condition of this error and ask the programmer to fix bug.
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: HP-UX(11.23) pstat_getproc() EOVERFLOW

It depends, there are several that return EOVERFLOW. But probably it is saying the values are too big to return and the application should be recompiled with -D_PSTAT64.
See pstat(2).

Re: HP-UX(11.23) pstat_getproc() EOVERFLOW

I have read pstat(2) and understand how to solve the problem with -D_PSTAT64 option.

But I need to find the condition of this issue.

while this issue don't occurr at Single-processor server, it occurrs several times at 2-processor server.
Dennis Handly
Acclaimed Contributor

Re: HP-UX(11.23) pstat_getproc() EOVERFLOW

>I need to find the condition of this issue.

Why? The solution is to always use -D_PSTAT64.
It is probably not worth your or the programmer's time to find out why.
There are status flags to indicate exactly which field doesn't fit, pst_valid. There seems to be only three fields that can have problems:
PST_ADDR PST_WCHAN PST_MAXRSS

Basically the value returned doesn't fit in either 2 G or 4 G, 32 bits.
Look at all of the fields in struct pst_status.

The 11.31 man page has lots of details:
http://docs.hp.com/en/B2355-60130/pstat.2.html

Re: HP-UX(11.23) pstat_getproc() EOVERFLOW

> Look at all of the fields in struct pst_status.

Thank you for your suggestion.

I'll try it next Monday.

Re: HP-UX(11.23) pstat_getproc() EOVERFLOW

Hi Dennis

I try to run the application with -D_PSTAT64 option compiled and I've got the solution with confidence.

From 9:00 am to 7:00 pm , the fixed application didn't occurred EOVERFLOW at pstat_getproc()

although the old application got an error per 5times.

Thank you for your advise.
Dennis Handly
Acclaimed Contributor
Solution

Re: HP-UX(11.23) pstat_getproc() EOVERFLOW

>although the old application got an error per 5times.

Somehow some of these were too big: PST_ADDR PST_WCHAN PST_MAXRSS

Re: HP-UX(11.23) pstat_getproc() EOVERFLOW

Thanks a lot.

at last

I sleep well tonight.