- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Swapinfo - wrong output
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
06-25-2007 02:51 AM
06-25-2007 02:51 AM
I've write simple app which is allocating a lot of memory - aprox 24x256MB. My serwer has 2GB of physical ram and 4GB of swap memory. When I run my app swapinfo shows strange output:
# swapinfo -mta
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 - 4096 -4096
memory 2046 2045 1 100%
total 6142 6141 1 100% - 0 -
Whats the explanation of this?
Best regards
Przemek
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2007 02:56 AM
06-25-2007 02:56 AM
Re: Swapinfo - wrong output
HP-UX defines memory as RAM plus swap. It is treated as one pool and allocated as needed. When a process opens, it allocates swapspace, in the event that it needs to be swapped to disk.
This output tells me you have 2 GB of ram, 100% used and 4 GB of swap, which is not used at all.
The fact that swap is apparently not being used may be because your swap file is not active or is having disk problems.
Further checks on the system are warranted.
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
06-25-2007 03:10 AM
06-25-2007 03:10 AM
Re: Swapinfo - wrong output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2007 03:14 AM
06-25-2007 03:14 AM
Re: Swapinfo - wrong output
To activate swap requires a reboot.
Take a look at /var/adm/syslog/syslog.log and /etc/rc.log
Perhaps there was a problem at startup time.
Also, it could simply be a display bug in swapinfo. Has the system been updated with a normal bi-annual patch update?
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
06-25-2007 03:23 AM
06-25-2007 03:23 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2007 03:30 AM
06-25-2007 03:30 AM
Re: Swapinfo - wrong output
System was rebooted and nothing has changed. I have two version's of HPUX system. 11.11 with goldpack running on C-class and 11.23 running on rp4400. On both systems situation is the same. In logs there are no error messages. I have no idea whats cause the problem.
Przemek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2007 03:42 AM
06-25-2007 03:42 AM
Re: Swapinfo - wrong output
To: A. Clay Stephenson
You were right. I only invoked malloc function without setting value. When I use memset swap usage was diffrent than 0%. Thank you for your help.
Best regards
Przemek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2007 03:43 AM
06-25-2007 03:43 AM