- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swap calculation
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
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
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-21-2012 04:02 AM
03-21-2012 04:02 AM
HI all,
I want to know how to calculate total swap space currently assigned in my system. shall i add (12240+15008)=27248Mb?
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 12240 1546 10694 13% 0 - 1 /dev/vg00/lvol2
dev 15008 1543 13465 10% 0 - 1 /dev/vg00/lvol10
reserve - 19761 -19761
memory 32737 5842 26895 18%
total 59985 28692 31293 48% - 0 -
#
Total physical memory is 32GB
# machinfo|grep -i memory
Memory = 32736 MB (31.968750 GB)
#
Regards,
A
Ani
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2012 10:05 PM
03-21-2012 10:05 PM
Solution>I want to know how to calculate total swap space
Why? The value is printed on the total line:
total 59985 28692 31293 48%
There is no need to know how it is calculated, it's just there. :-)
It's the sum of the values in the second column. The memory row is pseudo-swap which no ordinary mortal can compute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2012 12:05 AM
03-22-2012 12:05 AM
Re: swap calculation
HI,
I want to understand this . For our servers i need to check the ratio of swap memory & physical memory.
Total : -is showing swap+real memory right?
if i need to calculate how much swap space is allocated in my system then shall i add the "dev" value showing on swapinfo o/p?
if so then as per above o/p my swap memory is (12240 + 15008)= 27248 ?
total:27248 (swap) + 32736 (real)=599984 ?
please let me know if i am wrong...
Ani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2012 12:48 AM - edited 03-22-2012 01:31 AM
03-22-2012 12:48 AM - edited 03-22-2012 01:31 AM
Re: swap calculation
>Total: is showing swap+real memory right?
No. Total is device swap plus pseudo-swap. Where the formula for computing the latter is too complex to understand and changes on OS versions.
As you saw above, on 11.31, it "seems" pretty close to memory size but I've heard of numbers like 7/8 or 3/4 for previous OS releases.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2012 01:28 AM
03-22-2012 01:28 AM
Re: swap calculation
Thank you
Ani