Operating System - HP-UX
1837230 Members
2196 Online
110115 Solutions
New Discussion

Re: Memory problem on K410

 
SOLVED
Go to solution
John Peace
Frequent Advisor

Memory problem on K410

K410
HPUX 11.0
It has 1.1GB of Physical memory and I have 3 seperate logical volumes of swap at 1GB each.

I am getting the following errors when doing different things on the server:

frecover:
frecover(5441): malloc error: not enough virtual memory to use fastsearch.

glance:
mi_bufset_checks - KI bufsize too small 65536
midaemon: Wed May 4 08:59:00 2005
rlim_max = 4997120, cpus = 3
midaemon: Wed May 4 08:59:00 2005
bufs = 2, maxmem = 393216
midaemon: Wed May 4 08:59:00 2005
Increase system maxdsiz

Currently the maxdsize is 5000000

I tried to increase it to 67108864 and got the following:

Cannot build a kernel using /usr/sbin/config. The standard output of the command is shown below:
Make: Cannot allocate memory. Stop.
config: make did an exit(1)
The command exitted with exitcode -71


I looked at Virtual Memory Activity in sam and got:

virtual memory activity

avm - 2119
free - 241768
re - 22
at - 10
pi - 4
fr - 0
de - 13
sr - 0
in - 968
sys - 738
cs - 126

CPU
cpu procs
us sy id r b w
1 2 97 0 1 0
2 2 96
2 2 96

memory setting from system properties in SAM:

Physical Memory: 1153.0 MB
Real Memory:
Total: 44331.9 KB
Virtual Memory:
Active: 12385.6 KB
Total: 38617.3 KB
Free Memory Pages: 241187 at 4 KB/page
Swap Space:
Avail: 3552 MB
Used: 81 MB


Where do I look to find out where my problem really is? EMS Monitoring is enabled on this system. We have not seen any memory errors. We did have a drive go bad. It did contain one of the swap spaces. The drive has been replaced and the swap space recreated. We started having these problems right before the hard drive went bad.

Thanks
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: Memory problem on K410

can you post the output of

kmtune

and

swapinfo -ta

?

live free or die
harry d brown jr
Live Free or Die
Steven E. Protter
Exalted Contributor

Re: Memory problem on K410

I would check system usage with glance/gpm to start, check out all the memory information and kernel parameters see if they are being maxed.

You may have a kernel limitation that limits allocation of shared memory shmmax for example.

You need some data.

If you don't have glance/gpm you can do a 60 day trial or use the sar utils I'm attaching.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Peace
Frequent Advisor

Re: Memory problem on K410

Glance is installed but will not run. kmtune and swapinfo are in attachment. Thanks.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Memory problem on K410

You maxdsiz is only 5MB and that is ridiculously small. It should be set to at least 256MB. Currently, 5MB is too small to even allow kernels to be built BUT because the current kernel was able to be built that means that the kernel before it had maxdsiz set to a size that would at least allow you build new kernels.

You need to boot from vmunix.prev and use it to build a new kernel.

I would set maxdsiz to about 512MB, maxssiz to 32MB (or 64MB), and maxtsiz to 128MB. These are all reasonable values and will keep you from having problems building kernels in the future. Note that these values are all per-perprocess limits and really have nothing to do with how much physical or virtual memory you have. Also note that these values are set in bytes and not in 4K pages so that to set 512MB, you need to enter 0x20000000 (or 536870912).
If it ain't broke, I can fix that.
John Peace
Frequent Advisor

Re: Memory problem on K410

Rebooted with vmunix.prev Everything looks good now.

Thanks again. I will closee this thread and award points.
John Peace
Frequent Advisor

Re: Memory problem on K410

Thanks to everyone for the help.