1834499 Members
2466 Online
110068 Solutions
New Discussion

Re: swap space problem

 
Mihai Matei
Advisor

swap space problem

Hi,

I modified maxswapchunks=25 , for 50 MB of swap (in order to find out how the system behaves when swap space is scarce). Well, it boots fine, but I can't modify maxswapchunks back to the previous value, because I can't recompile the new kernel (out-of-memory errors). Is there a way out of this?

(HP-UX 11.11, 256MB)
8 REPLIES 8
Hai Nguyen_1
Honored Contributor

Re: swap space problem

Mihai,

You can boot your system using the previous kernel.

Interrupt the autoboot when the system is booting up then enter the ISL prompt to issue the command to boot from previous kernel.

Hai
Pete Randall
Outstanding Contributor

Re: swap space problem

Sure, reboot using the old kernel. Interrupt the boot process and specify vmunix.prev.


Pete

Pete
Hai Nguyen_1
Honored Contributor

Re: swap space problem

Mihai Matei
Advisor

Re: swap space problem

thank you.
Caesar_3
Esteemed Contributor

Re: swap space problem

Hello!

When you compile kernel the old version saved
as vmunix.prev
so in the boot you can load it and then compile again the kernel.

Caesar
Bill Hassell
Honored Contributor

Re: swap space problem

Just a note for future testing. You don't have to reduce maxswapchunks to limit swap space. This number specifies the upper limit when you add swap space, but you can certainly define a very small primary swap area for testing. Then you can add more swap space to prevent the problem you saw when trying to create a new kernel.


Bill Hassell, sysadmin
Richard Ace_1
Advisor

Re: swap space problem



Yep agree to boot off your .PREV.

N.B.
The formula for Configuring SWAP is as follows.

Formula example:

MAXSWAPCHUNKS X SWCHUNKS X 1024 =
8000 X 2048 Def X 1024 = 16777216000
= 16Gb

This then sets a "maximum setting" of 16Gb's of swap allowed to be configured.

"As Bill said"

If you have secondary swap space and you want to reduce the amount of swap space you could hash out the entry in the /etc/fstab

Example

/dev/vg00/swap2 ... swap pri=2 0 0

Then reboot, the server will come back with less swap only primary configured.


Richard Ace_1
Advisor

Re: swap space problem

Configuring MAXSWAPCHUNKS sorry