- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swapinfo memory line
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-26-2009 07:42 AM
тАО07-26-2009 07:42 AM
According to swapinfo man page:
...
memory Memory paging area (also known as pseudo-swap).
This is the amount of system memory that can be
used to hold pages in the event that all of the
above paging areas are used up. See "Paging
Allocation" below. This line appears only if
memory paging is enabled.
...
BUT on my system:
# model
ia64 hp server rx2620
# uname -a
HP-UX hpsrv3 B.11.31 U ia64
# dmesg | grep Physical
Physical: 2085612 Kbytes, lockable: 1339168 Kbytes, available: 1507160 Kbytes
# swapinfo -tm
swapinfo -t
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2
reserve - 302004 -302004
memory 1984012 552236 1431776 28%
total 6178316 854240 5324076 14% - 0 -
AVAILABLE MEMORY is 1507160 Kbytes and the size of pseudo-swap should be set at 7/8 of the Available memory at system startup time,which is definitely not 1984012.
On the other hand HP-UX CSE Official Study Guide and Desk Reference, ISBN : 0-13-146396-9 says "The memory line lists the amount of pseudo-swap configured. Also note that the usage on the memory line includes usage by other kernel subsystems and not just pseudo-swap." (9.3 Configuring Additional Swap Devices
)
Which is right?!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2009 09:13 AM
тАО07-26-2009 09:13 AM
Re: swapinfo memory line
(I would suggest you always use -tam because K is just too small a unit.)
>AVAILABLE MEMORY is 1507160 Kbytes and the size of pseudo-swap should be set at 7/8 of the Available memory
I think available memory for swapinfo is total memory. But that still gives 95% of your 2 Gb.
I would suggest you shouldn't worry about the value of the avail memory line of swapinfo. What you get is what it is.
swapinfo(1m) says:
For the memory paging area this value is also not necessarily constant, because it reflects allocation of memory by the kernel as well as by processes that might need to be paged.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2009 01:12 PM
тАО07-26-2009 01:12 PM
Re: swapinfo memory line
I don't worry about the value, just wondering...
swapinfo(1m) is too old(and may be there are some errors). For example:
"2.
If all file system paging areas are completely allocated and the request is still not satisfied, the system will try to use memory paging as described on the memory line above. (Memory paging is controlled by the tunable parameter swapmem_on, which defaults to 1 (on). If this parameter is turned off, the memory line will not appear.)"
- This is HP-UX v3 and swapmem_on is not tunnable.
- My device/file system paging areas are not allocated at all, but the system uses memory paging?!(according to my memory line above).
It's look like the memory line is completely useless, and I really don't know how to interpret it( as far as I don't have the source).
and what is worse I haven't info about the pseudo-swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2009 02:09 AM
тАО07-27-2009 02:09 AM
Re: swapinfo memory line
No, it tells you how much is used and how much is free.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2009 08:43 AM
тАО07-27-2009 08:43 AM
Re: swapinfo memory line
total(avail) = dev(avail) + memory(avail)
=> memory is the pseudo-swap (it is a part of the total swap )
I still don't know how the size of pseudo-swap is calculated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2009 08:52 AM
тАО07-27-2009 08:52 AM
Re: swapinfo memory line
Memory to HP-UX is ram plus swap.
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
тАО07-28-2009 03:58 AM
тАО07-28-2009 03:58 AM
Re: swapinfo memory line
> => memory is the pseudo-swap (it is a part of the total swap )
I mean the swapinfo's "memory line" ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 05:55 AM
тАО07-28-2009 05:55 AM
Re: swapinfo memory line
Frankly -- your numbers make no sense as given. Your memory line is 95% of total physical, not available. Possible, but highly unlikely without tweaking the heuristic -- which isn't something that is/should be done externally. When you add in that the available memory was only 1507160 kB, however -- it makes even less sense.
So -- given all that, I'm suspicious as to if you've done a Memory OLA operation. [This is part of why dmesg is *not* a reliable way to get your physical memory].
First, compile and run the attached program so we can see where the system is at now. If the reported physical memory is higher than your dmesg, you know you had Memory OLA. To find out when, I'd probably do:
evmget -A -t "@timestamp @@"
but then again, I'm not terribly perfect with awk and friends so I know I generate a bunch of data to slog through some times.
An alternate approach is to check the syslog for a Memory Class line after boot (VM will issue one on every Memory OL* success such that the updated Physical/Lockable/Swapmem totals are known for each Memory Class [System as a whole, Kernel Only, User Only]).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 07:45 AM
тАО07-28-2009 07:45 AM
Re: swapinfo memory line
no Memory OLA (btw, rx2620 is a low entry server and don't support OL* functionality )
[root@hpsrv3 /]# dmesg | grep Physical
Physical: 2085612 Kbytes, lockable: 1339168 Kbytes, available: 1507160 Kbytes
[root@hpsrv3 /]# ./335520 (your script!)
Memory Stat total used avail %used
physical 2036.7 994.6 1042.1 49%
active virtual 483.1 321.1 161.9 66%
active real 248.1 156.2 92.0 63%
memory swap 1937.5 539.4 1398.1 28%
device swap 4096.0 297.6 3798.4 7%
Activations: 0 total, 0 rate. Deactivations: 0 total, 0 rate.
Reclaims from Swap: 0 total (Up 0), 0 rate.
[root@hpsrv3 /]# swapinfo -tm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 299 -299
memory 1938 540 1398 28%
total 6034 839 5195 14% - 0 -
This is another rx2620 machine (both are real systems with the same hp-ux v3, not VM) :
dmesg | grep Physical
Physical: 2085612 Kbytes, lockable: 1325676 Kbytes, available: 1500560 Kbytes
[root@hpsrv4 /]# swapinfo -tm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2048 0 2048 0% 0 - 1 /dev/vg00/lvol2
reserve - 414 -414
memory 1938 585 1353 30%
total 3986 999 2987 25% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 07:56 AM
тАО07-28-2009 07:56 AM
Re: swapinfo memory line
(/var/adm/syslog/syslog.log)
Jun 3 17:43:50 hpsrv3 vmunix: Memory Class Setup
Jun 3 17:43:50 hpsrv3 vmunix: -------------------------------------------------------------------------
Jun 3 17:43:50 hpsrv3 vmunix: Class Physmem Lockmem Swapmem
Jun 3 17:43:50 hpsrv3 vmunix:
Jun 3 17:43:50 hpsrv3 above message repeats 2 times
Jun 3 17:43:50 hpsrv3 vmunix: System : 1937 MB 1937 MB 1937 MB
Jun 3 17:43:50 hpsrv3 vmunix: Kernel : 1937 MB 1937 MB 1937 MB
Jun 3 17:43:50 hpsrv3 vmunix: User : 1484 MB 1315 MB 1320 MB
and memory info:
Jun 3 17:43:50 hpsrv3 vmunix: Memory Information:
Jun 3 17:43:50 hpsrv3 vmunix: physical page size = 4096 bytes, logical page size = 4096 bytes
Jun 3 17:43:50 hpsrv3 vmunix: Physical: 2085612 Kbytes, lockable: 1339168 Kbytes, available: 1507160 Kbytes