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
04-29-2003 06:21 AM
04-29-2003 06:21 AM
swapinfo
Why is this?
For example on our system currently: -
gfeps3:/# swapinfo -t
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 760024 3434280 18% 0 - 1 /dev/vg00/lvol2
reserve - 2707168 -2707168
memory 3224800 1755672 1469128 54%
total 7419104 5222864 2196240 70% - 0 -
gfeps3:/# swapinfo -dftr
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 760024 3434280 18% 0 - 1 /dev/vg00/lvol2
reserve - 2705420 -2705420
total 4194304 3465444 728860 83% - 0 -
According to swapinfo -t we're using 70% of the total memory capacity of the system (real + swap) whereas the second (which openview monitors) is 83%!
Cheers, Sy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:27 AM
04-29-2003 06:27 AM
Re: swapinfo
I would seriously look at adding more memory to this machine. Your performance can't be very good as things stand right now.
(I know this doesn't answer your question, but I'd look at the bigger problem first)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:30 AM
04-29-2003 06:30 AM
Re: swapinfo
man swapinfo to check the impact of the additional command line options.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:32 AM
04-29-2003 06:32 AM
Re: swapinfo
swapinfo -d shows 'device' info only. So it will not show you pseudo-swap.
If you do it without the '-d' option it will show everything. Check 'man swapinfo' for more details.
Can you modify your OV script that monitors swap so it does not use the '-d' option?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:32 AM
04-29-2003 06:32 AM
Re: swapinfo
Indeed you need memory but for your question
you need to use -dftrM.
The M adds the memory or it is not added.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:34 AM
04-29-2003 06:34 AM
Re: swapinfo
For 11.0
PHCO_22676 s700_800 11.00 swapinfo(1M) patch
Symptoms PHCO_22676
1. swapinfo displays incorrect output for swap > 2GB.
2. swapinfo displays incorrect totals.
3. swapinfo displays incorrect file system type.
This may be your case here. Search the patch db (keyword = swapinfo) for other version of OS to find out if they is such patch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:37 AM
04-29-2003 06:37 AM
Re: swapinfo
Besides I've never worked at a company that's let me spend enough money on memory to have 0% swap usage, in my experience it just doesn't happen in reality!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:39 AM
04-29-2003 06:39 AM
Re: swapinfo
: so it does not use the '-d' option?
That's easily done, however my concern was that this is the default monitor supplied by HP, so there must be a reason?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:42 AM
04-29-2003 06:42 AM
Re: swapinfo
Thanks, but this patch is already installed. I don't think the problem is with swapinfo itself, but in the way the monitor uses the command (for whatever reason).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:43 AM
04-29-2003 06:43 AM
Re: swapinfo
Why is pseudo-swap not counted? pseudoswap does not exist! It is only a number which prevents your system from having to have loads of diskspace for swap.
Suppose you have 8Gb of physical memory, Every loaded page must have some swapspace. So you need at least 8Gb of swapspace which you probably never use, because you bought all this memory.
To prevent this HP invented pseudo swap, 75% of memory is counted extra as (pseudo)swapspace.
Greetzz
Donald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:49 AM
04-29-2003 06:49 AM
Re: swapinfo
: It is only a number which prevents your system from having to have loads of diskspace for swap.
Yes, but the whole point of doing swapinfo -t is to see how much total "virtual memory" is available, this including RAM, plus physical swap.
The memory column is the pseudo-swap, but has to be counted because this represents also the RAM that can be used (well IIRC it's actually 75% of real ram, taking into account kernel and buffer cache memory which will never be swapped).
If you don't count this, then you're ONLY counting the memory used in physical swap, and not in memory too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:54 AM
04-29-2003 06:54 AM
Re: swapinfo
'85%' is the usual ceiling used for deciding when to add more swap. You're indicating 83% used in the second display.
I would add more.
a) lvcreate -L 1024 -n swap -C y -r n /dev/vg##
NOTE1: 1024 mb
NOTE2: -C = contiguous.
NOTE3: -r = no bad block relo.
b) swapon -f -p 1 /dev/vg##/swap
c) /etc/fstab
.
.
/dev/vg##/swap ... swap pri=1 0 1
NOTE1: ALWAYS USE PRIORITY = 1!!!!
NOTE2: All swap should be priority = 1 except /dev/vg00/lvol2, ignore this.
If error on b) complains about 'maxswapchunks' then you'll need to adjust this kernel parameter and reboot. No other way around it. Otherwise, no reboot is required with 'swapon'.
To reset 'maxswapchuncks' use this procedure:
sysdef | grep -i maxswapchuncks
sysdef | grep -i swchunk
maxswapchuncsks = total swap / 1024 * swchunk
Launch SAM and adjust, or, use kmtune.
Respond if you need the kmtune procedure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 07:13 AM
04-29-2003 07:13 AM
Re: swapinfo
Quite a few opinions and views here. I'm not sure if I want to step into it.
Oh well.
Pseudo swap. Reserved by system as 3/4 swap space for applications usage. Its used first, before device. So its an incorporation of system swap which is automatically set aside.
Pseudo swap is also a performance enhancer. By automatically reserving swap for applications, before applications call for it, performance is enhanced.
It's much faster to reserve
space within memory. But, on heavily used
systems you will see even device swap being
used.
So use of device swap is dependent upon your use of pseudo swap, and although the default shipped by HP is sometimes turned off, depending upon the application. See 'swapmem_on = 1' kernel parameter.
Don't worry about using device swap. Its normal.