Operating System - HP-UX
1829905 Members
1590 Online
109993 Solutions
New Discussion

login at console and rlogin fails-Possible cause: insufficient memory or swap space.

 
Pasarakoda Dharmarao
Occasional Contributor

login at console and rlogin fails-Possible cause: insufficient memory or swap space.

 
5 REPLIES 5
Ravi_8
Honored Contributor

Re: login at console and rlogin fails-Possible cause: insufficient memory or swap space.

Hi,
clearly shows that you have 1GB RAM and only 512 MB swap which is not suppose to be. now you need to increase the swap, since you don't have space in any VG's better to add another HDD extend the vg00 to that disk and increase the swap.
never give up
Pasarakoda Dharmarao
Occasional Contributor

Re: login at console and rlogin fails-Possible cause: insufficient memory or swap space.

Hi Ravi,
Thanks a lot for prompt reply.
This action is forseen as last resort, since customer doen not like to extend the hardware.
best regards,
./Rao
Santosh Nair_1
Honored Contributor

Re: login at console and rlogin fails-Possible cause: insufficient memory or swap space.

Hi,

Regarding your questions:

1. Swap is being used as reserve. Every time a process starts up on HPUX, it reserves area in swap so that it will somewhere to go in case of paging. For this reason, it is recommended that you have as much swap area as you have physical memory. There is an excellent white paper on HPUX memory management that discusses this and question #2. The white paper is at:

http://www.docs.hp.com/dynaweb/hpux10/hpuxen0a/b76/@Generic__BookTextView;hf=0

3&4. Yes, adding more swap will help. And since swap does not really need to be mirrored, you can use the mirrored disk as additional swap area.

5. You will need to change MAXSWAPCHUNKS to at least 512. This will allow you to address up to 1GB of swap. Your current setting only address up to 512 MB of swap. I would recommend setting this parameter to 2048 or even 4096 so that you can add more swap in the future without having to rebuild the kernel and reboot.
Just changing this parameter alone will not fix the problem though. You would still need to increase swap (as mentioned above).

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Stefan Farrelly
Honored Contributor

Re: login at console and rlogin fails-Possible cause: insufficient memory or swap space.


To answer your questions;

1. On HP-UX swap device always shows 0% USED, unless you actually have processes paged out to disk, then it shows some space used. BUT, swap is still being used to register space on disk just in case it does need to be swapped out. So using swapinfo to see if device swap is being used to register programs is not accurate. You need to use glance/perfview instead.
2. So, if you have 512MB of RAM, but only 256MB of swap you will only be able to load 256MB of programs into memory. This is not ideal! You should at a minum set swap=RAM. HP recommend setting swap to RAM*2.

3. It doesnt matter where your device swap is setup, any disk is fine. Priority doesnt really matter - only if it becomes used. Your swap areas should be mirrored though, else if your system disk dies and you use the mirror to boot/run off you will have the same problem you have now of not enough swapspace.

4. Yes, SWAP must = RAM at a minimum.

5. No, adjusting kernel parameters wont really help. Setting swapmem_on = 1 might help a little, but its no substitue for having enough device swap in the first place.
Im from Palmerston North, New Zealand, but somehow ended up in London...
James R. Ferguson
Acclaimed Contributor

Re: login at console and rlogin fails-Possible cause: insufficient memory or swap space.

Hi:

The most immediate problem I see is the DBC_MAX_PCT is *too high*. You are undoubtedly consuming too much precious memory in buffer cache. I would start by reducing this value to somewhere between 10-15%.

...JRF...