Operating System - HP-UX
1752781 Members
6377 Online
108789 Solutions
New Discussion юеВ

Re: how to extend the swap file system

 
SOLVED
Go to solution
rajesh73
Super Advisor

how to extend the swap file system

i want to extend swap sapce 4 GB to 10GB.kindly advice how to extend .

$swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 74 4022 2% 0 - 1 /dev/vg00/lvol2
reserve - 1683 -1683
memory 3060 2152 908 70%
total 7156 3909 3247 55% - 0 -
10 REPLIES 10
Torsten.
Acclaimed Contributor

Re: how to extend the swap file system

Consider to create another LVOL for swap.
SAM will help you.

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!   
rajesh73
Super Advisor

Re: how to extend the swap file system

"Consider to create another LVOL " means to create new lv or extend the lv

kindly find the below preocedure
1.go SAM
2.disk file system
3.swap
4.in actions menu-two options is availble which option i want to chose
add device swap-
add file system swap--

5.their is reboot required for after file system creation
Torsten.
Acclaimed Contributor
Solution

Re: how to extend the swap file system

Create a new LVOL, extending is not possible.

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!   
P Arumugavel
Respected Contributor

Re: how to extend the swap file system

Extending primary swap is not possible. But in some way you could try which is not reliable.
Either going by creating secondary swap through sam/CLI, or change the swap value while re-ignite your system.

Regds...
Torsten.
Acclaimed Contributor

Re: how to extend the swap file system

But the question is if you really need such large swap space?

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!   
rajesh73
Super Advisor

Re: how to extend the swap file system

yes ,we need total swap space is 10GB
P Arumugavel
Respected Contributor

Re: how to extend the swap file system

Please read:

The amount of swap, added to the amount of memory available, defines the virtual memory available for processes. The minimum recommendation is twice as much swap space as physical memory. Keep in mind, this is an "old" formula. If you have two, three, four or many more gigabytes of physical memory, this would result in way too much swap space. Granted, there are the pathological cases that would require you to have eight to ten gigabytes of swap with, say, four gigabytes of physical memory. If you try to execute a process that would exceed the amount of available memory plus available swap, you will get a "out of memory" message. If you configure more swap than you will ever need, you are wasting disk space. The correct swap size will vary considerably depending on the size and number of application(s) run on a system. The correct swap size can be determined by monitoring swap usage while working with real data. This could be done either with the swapinfo command or using a tool like HP's Glance Plus. Glance Plus allows you to monitor system resources on a per process basis and will display the high water mark (since you started glance). You would configure a system with more swap space than you expect to need, then run Glance Plus while running an application(s). By monitoring the high water mark, you can determine the maximum swap space used and adjust the swap size accordingly. Obviously, if you experience out of memory errors, swap size is too small.

There are many systems with less swap space than physical memory. This is perfectly fine. The person who specified the system probably recommended all that memory so that they would not have to swap! We have seen systems with swap space equal to 50% that of physical memory. Just be sure to have swapmem_on EQUAL TO 1!!

NOTE: For best performance, swap space should be distributed evenly across all disks configured with swap, at the same priority .


Rgds...
Torsten.
Acclaimed Contributor

Re: how to extend the swap file system

I hope this is not based on the old and obsolete formula

swap = 2.5 x RAM size.

However, create a new device swap inside a new LVOL.

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!   
Dennis Handly
Acclaimed Contributor

Re: how to extend the swap file system

>we need total swap space is 10GB

You plan to run applications that need 6 Gb + 3.2 Gb more than you are using when you did that swapinfo?