- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swap reservation
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
03-14-2002 05:47 AM
03-14-2002 05:47 AM
swap reservation
process to *reserve* swapspace?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 05:50 AM
03-14-2002 05:50 AM
Re: swap reservation
If an app needs to be paged out to free up real mem, then it must be able to have the swap reserved.
man swapinfo.
You can also set swap mem on to false in the kernel and page in memory (useful if you have 100G of memory!)
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 05:54 AM
03-14-2002 05:54 AM
Re: swap reservation
reservation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 05:58 AM
03-14-2002 05:58 AM
Re: swap reservation
swapping is needed if your memory is full with processes and there is no space available for more required processes. Then either whole processes ( swapping ) or pages ( paging ) are outsourced into swapspace. This should appear not very intensively or often, if so, you should add physical RAM to your computer. Swapping and paging is very slow compared with processes which are run directly out of RAM. But swapspace guarantees, that you are still able to act, if your RAM is fully occupied. Computers with up to a GB RAM it is a normal amount of swapspace round about two times total RAM amount.
more information see:
man swapinfo
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 06:00 AM
03-14-2002 06:00 AM
Re: swap reservation
kibo:root> kmtune | grep swap
allocate_fs_swapmap 0
maxswapchunks 512
nswapdev 10
nswapfs 10
remote_nfs_swap 0
swapmem_on 1
See this link for more:
http://docs.hp.com//hpux/onlinedocs/os/KCparam.SwapMemOn.html
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 06:28 AM
03-14-2002 06:28 AM
Re: swap reservation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 06:33 AM
03-14-2002 06:33 AM
Re: swap reservation
Your system will still run, but things will be VERY VERY SLOW.
Paging really should not be an issue today. If you start using swap significantly, then you buy more RAM. RAM is cheap!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 03:08 AM
03-15-2002 03:08 AM
Re: swap reservation
So for example if you have 1GB of RAM and 800MB of processes, the *disk* swap space is not *used* at all, so the "USED" field of the "dev" line(s) would be zero and there would be *no* disk *activity*.
If you have HP-UX 11.X, you may also want to read the section on "Lazy Swap" in the Release Notes (/usr/share/11.00RelNotes). Note however that that is for very specific cases, while swapmem_on addresses the more general cases.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 11:44 AM
02-18-2003 11:44 AM
Re: swap reservation
Only if you are experiencing memory pressure do you need more ram (it did not sound like you were).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 11:49 AM
02-18-2003 11:49 AM
Re: swap reservation
I understood it in this way. It wants to make sure that there is swap space available in case if it needs to page out. Best way to confirm it is by reserving the swap space.
For ex., if you have 1 GB memory and if you alloted only 100MB of swap, what will happen if the system has to pageout 200MB if it
didn't reserve the swap space?.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 11:54 AM
02-18-2003 11:54 AM
Re: swap reservation
This is designer's choice. By default HP-UX reserves swap for allocations. Period.
This can be changed using lazy swap allocation (like Frank already stated). Beginning with 11.00 you could flag an executable to use lazy swapping with the chatr(1M) command. Programs can e.g. use mmap(2) with the MAP_NORESERVE option, like the java VM usually does.
Some other vendors use the lazy scheme by default... however, if swap gets full, "lazy processes" need to be killed. That's the disadvantage, so lazy swapping is somewhat "more dangerous" and risky.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 11:22 PM
02-18-2003 11:22 PM
Re: swap reservation
Just wondering: Why did you 'wake' this thread which was nearly a year old?