- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: output of "sar -c" command
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
08-14-2003 08:22 AM
08-14-2003 08:22 AM
Could anyone explain me what it means when fork/s has a high number in the sar -c output?
And what could be done to decrease this value if it is necessary.
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2003 08:29 AM
08-14-2003 08:29 AM
Re: output of "sar -c" command
For example,
find / -exec echo {} \;
would spawn a new echo process for each file found on the entire system.
You need to examine your box using Glance, top, ps -ef and note if many processes are being spawned and terminating very quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2003 08:31 AM
08-14-2003 08:31 AM
Re: output of "sar -c" command
Check on sar -v for the number of processes (proc-sz column). This tells you the current number of processes and the maximum available on the system. If this is approaching its limit, increase the value of nproc in the kernel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2003 08:40 AM
08-14-2003 08:40 AM
Re: output of "sar -c" command
A fork followed by an exec loads a new image into a new process, a fork by itself loads the current image into a new process.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2003 09:46 AM
08-14-2003 09:46 AM
Re: output of "sar -c" command
Clay's pointer to the abuse of 'find' is elegantly demonstrated in 'sar' data when a user uses '-exec' to spawn a process for every argument produced by 'find'. The lesson is to pipe to 'xargs' to spawn a "batch" of arguments to a single task:
Run 'sar -c' and observe for yourself the difference between the very (stupid) brutal :
# find / -exec ls -l {} \;
...versus...
# find / |xargs -L500 ls -l
See the man pages for 'xargs' for more information, but teach your users the benefit!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2003 10:37 AM
08-14-2003 10:37 AM
Re: output of "sar -c" command
If the fork/s has a high number, this could cause bad performance? And what is affected, the CPU with more load?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2003 10:52 AM
08-14-2003 10:52 AM
Re: output of "sar -c" command
Are you seeing any performance problems indications? What is the CPU usage? What is the run load?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 05:28 AM
08-15-2003 05:28 AM
Re: output of "sar -c" command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 05:49 AM
08-15-2003 05:49 AM
SolutionYour 'sar' and 'top' output don't offer a great amount of information.
I'd run 'glance' with a rapid refresh rate (~5 seconds) and examine at the "process list" screen. Look for processes that are marked "died". You may be able to see a fair number of them and then using their pid and ppid track down the rapid spawning that is occuring. You may find that you have an orphaned process that is running away.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 06:18 AM
08-15-2003 06:18 AM
Re: output of "sar -c" command
I'm using glance in character mode.