- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Increase SWAP
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 02:44 AM
09-13-2006 02:44 AM
# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 1241176 2953128 30% 0 - 1 /dev/vg00/lvol2
reserve - 1323104 -1323104
memory 4182736 2557532 1625204 61%
# swapinfo -M
Kb Kb Kb PCT
TYPE AVAIL USED FREE USED
memory 4182736 2557532 1625204 61%
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 02:50 AM
09-13-2006 02:50 AM
Re: Increase SWAP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 02:50 AM
09-13-2006 02:50 AM
Re: Increase SWAP
write again little more clearly...what application are runnign, to what limit u want to increase the swap...whether u have extra separate disk..or u want FS swap???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 02:51 AM
09-13-2006 02:51 AM
Re: Increase SWAP
The easiest way is to use SAM, but you would need some disk space available...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 02:52 AM
09-13-2006 02:52 AM
SolutionFirst make sure that your maxswapchunks value will allow for more swap.
Second if creating device swap you can use a command like this:
lvcreate -l (size) -n swap123 -C y -r n /dev/vgxx
Then enable swap:
swapon -p 1 /dev/vgxx/swap123
Make sure to add the entry in the fstab file
/dev/vgxx/swap123 /default swap pri=1
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 03:06 AM
09-13-2006 03:06 AM
Re: Increase SWAP
swapinfo -tam
to give a better output from swapinfo.
Secondly, to add extra swapfile (you can't increase the primary swapfile without rebuilding the server) you need to create a new logical volume, enable it with swapon, and add it to /etc/fstab to it is reused on boot.
However you should investigate whether you actually need to add swap. Your output shows you have 4Gb of device swap and about 5Gb RAM (memory line generally shows about 0.75 x real RAM).
Now assuming you have pseudo-swap enabled (the swapmem_on kernel parameter) it looks like you probably do not need any extra swap.
However if you do need to add more you will need to ensure that maxswapchunks kernel parameter is sufficiently large to allow the extra swap space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 03:09 AM
09-13-2006 03:09 AM
Re: Increase SWAP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 03:25 AM
09-13-2006 03:25 AM
Re: Increase SWAP
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 948 3148 23% 0 - 1 /dev/vg00/lvol2
reserve - 2310 -2310
memory 4085 1277 2808 31%
total 8181 4535 3646 55% - 0 -
Now here in the above output my swap space is memory-- 4085... or total -- 8181 what is Dev?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 03:27 AM
09-13-2006 03:27 AM
Re: Increase SWAP
By using SAM, it will be aware of the values of maxswapchunks kernel parameter, and will inform you if you need modifying (it will give the values you need...) and you will have to compile a new kernel...
We cant give you more help since we do not know what you have (as kernel values that is...) and the size swap you want to add...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 03:32 AM
09-13-2006 03:32 AM
Re: Increase SWAP
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 948 3148 23% 0 - 1 /dev/vg00/lvol2
reserve - 2310 -2310
memory 4085 1277 2808 31%
total 8181 4535 3646 55% - 0 -
here i am confused...what is my virtual memory now is it
memory-- 4084 or
total --8181 ? do i need to take toatl field as my total virtual memory or the memory field as total virtual memory??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 03:56 AM
09-13-2006 03:56 AM
Re: Increase SWAP
HOw much memory do you have on this box?
From what we see here with your swapinfo, is is only the value of your swap/pseudo-swap (memory used as swap).
The total of both gives you the total size of your virtual memory.
So here you have:
4GB of device swap
4GB of memory usable as swap
-----------
8GB total of virtual memory...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 04:08 AM
09-13-2006 04:08 AM
Re: Increase SWAP
Lakshmikanth
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 948 3148 23% 0 - 1 /dev/vg00/lvol2
reserve - 2310 -2310
memory 4085 1277 2808 31%
total 8181 4535 3646 55% - 0 -
Let's start from the bottom up:
The total line indicates the amount of swap that have been reserved ( not used ).
The memory line, indicates how much pseudo-swap have been used, this line is not to be confused with physical memory.
Reserved line, indicated swap that was separated in case is needed.
Dev, shows how much swap was actually used since the last reboot. We can see that the most that you have used is 23%.
Unless you are planning on running more intensive application(s), you do not really need to add more swap, and even if you do,
adding more swap would not be the right solution, but adding more memory and then if needed adding more swap.
For the moment I think you are just fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 04:47 AM
09-13-2006 04:47 AM