- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How much swap space ??/
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
12-06-2005 05:35 AM
12-06-2005 05:35 AM
I want to know that
how much swap my server has configured?
Swap should be approximately 1.5 times the size of physical memory.
I want to make sure we are configured at or near that for my server.
How will i do?
If you need any command output then i will post it here.
Thanks,
Vipin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:39 AM
12-06-2005 05:39 AM
Re: How much swap space ??/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:41 AM
12-06-2005 05:41 AM
Re: How much swap space ??/
You can also use glance to obtain the info on swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:42 AM
12-06-2005 05:42 AM
Re: How much swap space ??/
swapinfo -tam
Thanks,
BL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:44 AM
12-06-2005 05:44 AM
Re: How much swap space ??/
Do a
#swapinfo -mat
This should help.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:47 AM
12-06-2005 05:47 AM
SolutionYou already have the answer to your first question from your posting of your 'swapinfo -tam' output in your previous post. You have 24GB of device swap configured.
There is no rule that you need x-times physical memory. You have enabled "pseudoswap" since you see a line marked "memory" in the 'swapinfo' output. This means that 75% of memory is counted as swap space for the purposes of memory accounting. It is not really used, and is of benefit in avoiding ENOMEM (#12) errors when new processes are started.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 06:00 AM
12-06-2005 06:00 AM
Re: How much swap space ??/
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 570 3526 14% 0 - 1 /dev/vg00/lvol2
dev 20480 575 19905 3% 0 - 1 /dev/vg00/swap2
reserve - 16417 -16417
memory 32735 21107 11628 64%
total 57311 38669 18642 67% - 0 -
# machinfo
....
Memory = 32735 MB (31.967773 GB)
...
....
Swap should be approximately 1.5 times the size of physical memory.
I want to make sure we are configured at or near that for my server.
How will i do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 06:04 AM
12-06-2005 06:04 AM
Re: How much swap space ??/
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 06:07 AM
12-06-2005 06:07 AM
Re: How much swap space ??/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 07:02 AM
12-06-2005 07:02 AM
Re: How much swap space ??/
how will i check?
I will talk 2 my seniors,
if he says to increase the swap space from 24 to 48Gb,
what will be the steps?
Please suggest
thanks
vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 07:07 AM
12-06-2005 07:07 AM
Re: How much swap space ??/
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 07:40 AM
12-06-2005 07:40 AM
Re: How much swap space ??/
As I indicated, you can tell if pseudo swap is enabled by the presence of a line labeled "memory" in the output of 'swapinfo -tam'. If you don't see a line beginning with "memory" in the first column, then it isn't enabled. The corresponding kernel parameter is 'swapmem_on' and is set to one (1) to enable pseudo-swap or zero (0) to disable it.
If your managament insists on using disk for swap, create a second, or third, device swap space on a volume group *other than* vg00. For example:
# lvcreate -C y -r n -L 4096 -n lvol1 /dev/vg01
# swapon -p 0 /dev/vg01/lvol1
# echo "/dev/vg01/lvol1 ... swap pri=0 0 0" >> /etc/fstab
I suggest that multiple device swap spaces use the same swap priority for best performance and that their priority be algebracically less than primary swap's priority. THus, I have chosen a swap priority of zero (0) in the above example, since primary swap has a priority of one.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 09:09 PM
12-06-2005 09:09 PM
Re: How much swap space ??/
Yes the rule of thumb says/was that swap should be set at 1.5 times physical memory. Nowadays however if ones applications are not causing alot of swapping or pageing then large swap areas are really nit required.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2005 12:23 AM
12-07-2005 12:23 AM
Re: How much swap space ??/
#swapinfo -tam will provide details on configured swap in system
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2005 04:38 AM
12-11-2005 04:38 AM