Operating System - HP-UX
1748265 Members
3965 Online
108760 Solutions
New Discussion юеВ

Re: Swap size - 131072 MB

 
SOLVED
Go to solution
f. halili
Trusted Contributor

Swap size - 131072 MB

I'm building a new machine and one of my requirements is to make swap 2.5x the memory.Memory of machine is 64 gig.

At install when I'm on the filesystem tab and chaging the the space for swap it maxed to 131072. Is there a way to set a bigger number?

Thanks,
f. halili
derekh
10 REPLIES 10
Rita C Workman
Honored Contributor

Re: Swap size - 131072 MB

If you must put in that much swap disk, just build the box and then add swap disk afterwards.

Just a thought,
Rita
R.O.
Esteemed Contributor

Re: Swap size - 131072 MB

Take a look to the space available for swap. You might also check the swap related kernel parameters, as "maxswapchunks", depending on the O.S. version you have.

Regards,
"When you look into an abyss, the abyss also looks into you"
Steven Schweda
Honored Contributor

Re: Swap size - 131072 MB

> I'm building a new machine [...]

Not a very detailed description of anything.

> [...] At install when I'm on the filesystem
> tab [...]

"At install" of what, exactly? Whose "the
filesystem tab"? After you did what?

> [...] Is there a way to set a bigger
> number?

There may be, but it might depend on what
you're doing, and with my weak psychic
powers, that's not very clear.
f. halili
Trusted Contributor

Re: Swap size - 131072 MB

Hi R.O.

I'm still installing from DVD, so I still can't change the maxswapchunks.

Thanks,
f. halili
derekh
f. halili
Trusted Contributor

Re: Swap size - 131072 MB

Hi Rita,

The 2nd swap space is a good plan. Do you know if 131072 is a true limit?

Thanks,
f. halili
derekh
f. halili
Trusted Contributor

Re: Swap size - 131072 MB

Hello Steven,

Here it is with more details ...

I'm building a new machine HPUX 11.31 and one of my requirements is to make swap size 2.5x the memory. Memory of machine is 64 gig.

At OS install when I'm on the filesystem tab at Ignite itool, changing the the space for swap it maxed to 131072. Is there a way to set a bigger number?


Thanks,
f. halili
derekh
Johnson Punniyalingam
Honored Contributor
Solution

Re: Swap size - 131072 MB

As posted above. adding secondary swap will be the better approach,

>>> chaging the the space for swap it maxed to 131072.

This could be System Default max-limit value of (Primary-swap) which can bet set.

Step for Adding Secondary swap:-


Create the logical volume for your secondary swap:
# lvcreate -L 128 /dev/vgxx

NOTE: "-L 128" is the size of desired swap

Verify the physical volume:
# pvdisplay /dev/dsk/cxdxdx

Verify the physical volume assigned to volume group:
# vgdisplay -v

Verify the logical volume:
# lvdisplay /dev/vgxx/lvolxx

Use SAM to declare your new secondary swap or use the command line:
# swapon /dev/vgxx/lvolxx

Verify it has been added in "/etc/fstab" when using SAM, or add it manually when using the command line.

Example:
/dev/vgxx/lvolxx . swap defaults 0 0
Problems are common to all, but attitude makes the difference
Torsten.
Acclaimed Contributor

Re: Swap size - 131072 MB

>> to make swap 2.5x the memory.


The question is if this is *really* needed and why?

What if you have - let's say 1TB RAM. Would you still need 2.5x swap size?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
f. halili
Trusted Contributor

Re: Swap size - 131072 MB

thanks all!
derekh