Operating System - HP-UX
1833051 Members
2332 Online
110049 Solutions
New Discussion

Erro: Insufficient swap or memory available

 
take2mir
Advisor

Erro: Insufficient swap or memory available

Hi,
What's the best way to handle the error above? May I extend the targeted memory?
7 REPLIES 7
Mike Shilladay
Esteemed Contributor

Re: Erro: Insufficient swap or memory available

Hi,

How are you using the memory, i.e. are you using a virtual machine or vPar? Or are you using a single machine?

If you have loaded the machine and not specified enough swap then the machine will struggle, even if it isn't using it. HPUX reserves swap for the processes to swap from memory, even if it never has to.

A general rule of thumb is swap = 2 x memory.

Real memory for 64bit HPUX requires an absolute minimum of 512MB, though that in my opinion should be more than 1GB.

Mike
Dennis Handly
Acclaimed Contributor

Re: Erro: Insufficient swap or memory available

Where does this error come from?
Kapil Jha
Honored Contributor

Re: Erro: Insufficient swap or memory available

How much memory you currenty have
physical and swap.
Either you have very less memory or u r running some very big processes???
Better to increase swap according to above reply.And memory atleast should be 1GB.
BR,
Kapil
I am in this small bowl, I wane see the real world......
Rita C Workman
Honored Contributor

Re: Erro: Insufficient swap or memory available

You have not given enough information to get a reliable answer.

Error could be caused by (as already stated) you did not allocate sufficient swap space.
Error could be triggered by incorrect settings on parms even when processing seems light.
Error could be triggered because you are running more than the system can handle in the best of settings.
Error could be triggered because you are running more than the box has physical memory to handle.
Error could be triggered because your DBA started up another "instance" without checking if the system could handle it.
....and the list goes on....

Supply details: System physical memory;kernel parms. You confirmed the SGA values, so you know they aren't running more than box can handle. Then we can help you better.

Thanks,
Rita
Steven E. Protter
Exalted Contributor

Re: Erro: Insufficient swap or memory available

Shalom,

In general,

Best way to deal with real memory shortages is to add memory.

If impossible, try and reduce the use of memory. Tune Oracle sga and applictions to use less, or run less services.

Its almost never a good idea to extend swap past 2 times RAM. As rules of thumbs go they apply to entry level systems. Systems with a large amount of memory can get by with less swap.

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
take2mir
Advisor

Re: Erro: Insufficient swap or memory available

I check through all my disks and found that 2 hardisks are out of memory. One disk has just only 8Mbytes left and another one is totally out of memory (0 Mbytes). How should I know that two disks give the error? And how should I extend the memory for both of the disks?

Thank you
Dennis Handly
Acclaimed Contributor

Re: Erro: Insufficient swap or memory available

>I check through all my disks and found that 2 hardisks are out of memory.

A terminology correction. Disks aren't out of memory. They are out of space. (Perhaps their controllers might be. :-)
Only applications or the kernel are out of memory.

This is unrelated to your "Insufficient swap or memory" error.