- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Process: swap usage
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
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
07-14-2003 08:11 PM
07-14-2003 08:11 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 08:17 PM
07-14-2003 08:17 PM
Re: Process: swap usage
man vmstat
man top
Also refer to the links in the following thread for more info,
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc5c0506d69a7d711abdc0090277a778c,00.html
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 08:24 PM
07-14-2003 08:24 PM
Re: Process: swap usage
How much memory and swap is configured on your system??
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 08:30 PM
07-14-2003 08:30 PM
Re: Process: swap usage
I gutess the application problem. But I'd prove
it. So, I want to know the swap usage.Thanx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 08:38 PM
07-14-2003 08:38 PM
Re: Process: swap usage
#swapinfo -tam
This will show you swap usage.
But your problem is more liklely to be a result of not enough swap configured.
How much memory do you have on the system? At the absolute minimum you need at least as much swap as Physical memory (if you don't have pseudo swap enabled). Normally it is advisable to configure 1.5-2 x swap as physical memory.
Post output of:
# kmtune -q swapmem_on
# swapinfo -tam.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 01:45 AM
07-15-2003 01:45 AM
Re: Process: swap usage
# UNIX95=1 ps -eo vsz,pid,comm | sort -nr
Please note that sometimes (especially for "lazy swap" allocations) VSZ can be far too high (a good example is Java). On Itanium systems the text segment is also allocated "lazy", causing some maxssiz offset. However, it's a good first shot in most situations.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 02:00 AM
07-15-2003 02:00 AM
Re: Process: swap usage
to close to "dev" which means no new forks will
work,as reserve goes to swap kept for new forks.Which brings us to a strange conclusion
that you don't have enough swap (although 4gb souns nice).
Otherwise its a leak and you can use either ps
or Glance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 05:30 AM
07-15-2003 05:30 AM
Re: Process: swap usage
The swapmem parameter has the effect of disableing the HPUX feature of reserving swap memory when a process starts. If you have enough memory to prevent swapping, you're pretty safe not reserving it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 07:17 PM
07-15-2003 07:17 PM
Re: Process: swap usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 07:44 PM
07-15-2003 07:44 PM
Re: Process: swap usage
All processes when they start will reserve swap space. The amount they reserve is determined by the processes memory size. They reserve enough swap space so that if necessary the process can be swapped out.
Again I would reiterate that you need to be sure that you have enough swap configured. 4GB of swap is only just enough if you only have 4GB of memory. If you have more than 4GB of memory and pseudo_swap is not enabled then you definitely need more swap or to enable pseudo_swap.
If you are still having problems with the fork, then let us know how much RAM you have and also the output of swapinfo -tm and kmtune -q swapmem_on.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 07:56 PM
07-15-2003 07:56 PM
Re: Process: swap usage
I also want to know how to show the swap space for per process? A perocess will reserved how many swap space. Any tool can show this? Thankx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 08:24 PM
07-15-2003 08:24 PM
SolutionYour swap configuration looks OK.
Do you have pseudo swap enabled?
I'm not aware of any command that shows a processes swap reservation. My understanding is that its determined by the processes memory size. For examle if a process has size of 500MB then it will need to reserve at least this much swap space when it starts.
Are you having problems starting alot of processes or is it a particular process that gives the fork error??
Have a read of the HP document on swap.
http://www1.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchString=KBRC00001262&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&search.x=33&search.y=6
If you can provide a bit more detail on the error and when it occurs someone may be able to help.
Cheers
Con