cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Issues....

Dave Cast
Frequent Advisor

Memory Issues....

Does anyone know where I could find an memory issue on an HPUX 11.31 system?

I've checked /var/adm/syslog
dameon.log
kern.log
syslog.log

I received an error in Data Protector - that said "cannot allocate shared memory segement"

I've not been able to find anything in the above logs....
Today is different and tomorrow the same.
5 REPLIES
Michael Steele_2
Honored Contributor

Re: Memory Issues....

Did you also try the MP event logs?
or /etc/opt/resmon/logs?
or cstm memory diagnostic?
or kmeminfo?
or dmesg?
or for and mca in /etc/tombstones?

When you get a "cannot allocate shared memory segement"

http://h30499.www3.hp.com/t5/ITRC-Data-Protector-Forum/80-1003-Cannot-allocate-attach-shared-memory-IPC-Cannot-Create/m-p/3370868#M33490

Support Fatherhood - Stop Family Law
Bill Hassell
Honored Contributor

Re: Memory Issues....

> I received an error in Data Protector - that said "cannot allocate shared memory segement"

Seems fairly straightforward. Check the shared memory kernel limit usage:

kcusage shmmax shmmni shmseg

This will show current and maximum settings. To look at the history for a day (-d) or for a month (-m):

kcusage -d shmmax shmmni shmseg

Data Protector needs a lot of shared memory space, especially for high performance tape drives. To see the current shared memory segments:

ipcs -bmop


Bill Hassell, sysadmin
Vivek_Pendse
Valued Contributor

Re: Memory Issues....

Check the MP logs. Filter with alert level of "Warning". Also, cstm can tell you some thing.
As per the error, this is some thing different than actual memory issue; kernel tuning for shared memory parameters can resolve this issue.

Thanks,
Vivek
Dennis Handly
Acclaimed Contributor

Re: Memory Issues....

>cannot allocate shared memory segment
>I've not been able to find anything in the above logs.

This isn't a hardware error. It is a programming or sys admin error and as such, won't be logged.

What does "swapinfo -tam" show when you get the error?

Manix
Honored Contributor

Re: Memory Issues....

you may track some memory consumers in hpux.

UNIX95=1 ps -ef -o vsz,rsz,cpu,pid,wchan,comm | sort -rn 10 | head 10

ipcs -mac

should give you the owner and the creator of the process using that shared memory segment.

kcusage -d shmmax will so the usage of the segment & it`s size as well !!.


Thanks
Manix
HP-UX been always lovable - Mani Kalra