- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Swap size and maxswapchunks not consistent???
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
Discussions
Discussions
Forums
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
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
тАО07-15-2003 09:33 AM
тАО07-15-2003 09:33 AM
Swap size and maxswapchunks not consistent???
There is a 4GB device swap area on this machine - yet maxswapchunks is set at 256 and swchunk is set at 2. This should allow a max swap size of 512MB. Yet swapinfo -ta shows a swap device of 4GB. Didn't think this was possible. Any ideas?
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 524288 0% 0 - 1 /dev/vg00/lvol2
reserve - 524288 -524288
memory 6627864 6224628 403236 94%
total 10822168 6748916 403236 62% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2003 09:42 AM
тАО07-15-2003 09:42 AM
Re: Swap size and maxswapchunks not consistent???
'maxswpchunks' specifies the number of 'swchunk' blocks that can be allocated. The 'swchunck' size, however is in 1K blocks. Hence (maxswapchunks* swchunk*1024) is the maxiumum amount of swap you can configure.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2003 09:43 AM
тАО07-15-2003 09:43 AM
Re: Swap size and maxswapchunks not consistent???
The only thing that comes to mind is that there's one more piece to the formula. From SAM's help on configurable kernel paramters:
" Total swap space is defined by:
swchunk xmaxswapchunks xDEV_BSIZE
where DEV_BSIZE is 1024 bytes. "
So, if DEV_BSIZE was larger than 1024 bytes, this would account for it, but I'm not sure how DEV_BSIZE would even be changed.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2003 09:54 AM
тАО07-15-2003 09:54 AM
Re: Swap size and maxswapchunks not consistent???
I guess you are not using all the swap ( 4GB) configured on your system. Run dmesg to see any warning about this.
Currently you have:
max swap configured = 256 x 1024 x 2048 (Bytes)= 512 MB
In order to be able to use 4000 MB you need to increase maxswapchunks accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2003 09:56 AM
тАО07-15-2003 09:56 AM
Re: Swap size and maxswapchunks not consistent???
"
maxswapchunks xswchunk xDEV_BSIZE
For example, using default values for swchunk (2048) and
maxswapchunks (256), and assuming DEV_BSIZE is 1024
bytes, the total configurable swap space equals 537 Mbytes. "
I can't make these numbers coincide with what Ray is seeing - nor with what James is saying. Would anyone care to clarify?
Pete "Where's My Slide Rule" Randall
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2003 10:05 AM
тАО07-15-2003 10:05 AM
Re: Swap size and maxswapchunks not consistent???
Unable to add all swap for device: Primary Swap
. Increase the tunable parameter maxswapchunks by 1792 and re-configure your system.
It seems that I need to increase maxswapchunks(which I already knew) but it looks like swapinfo is showing what would be allocated instead of what actually is. Which still seems a little strange to me.
Oh well - I will make the change and reboot and just fix it instead of wondering why.
Thanks for the info. Points are on the way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2003 10:19 AM
тАО07-15-2003 10:19 AM
Re: Swap size and maxswapchunks not consistent???
Your 'swapinfo' only shows a device swap with 512K. THe 'memory' portion is reported because you have pseudoswap enabled. Don't count this as part of your calculation. It's a fudge factor for the kernel's use only in allowing new processes to spawn.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2003 10:25 AM
тАО07-15-2003 10:25 AM
Re: Swap size and maxswapchunks not consistent???
This is correct:
maxswapchunks will be 256 + 1792 = 2048;
max swap space = 2048 x 1024 x 2048 = 4294967296 Bytes = 4194304 Kbytes = 4096 MB.
Elena.