- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: fork error !! HP-UX 11.31
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
тАО09-02-2009 12:32 AM
тАО09-02-2009 12:32 AM
fork error !! HP-UX 11.31
it work find.
when i deploy it on new host" HP-UX B.11.31 U ia64" ,after four hours ,
it occur fork fail error (errno 11,No more processes).
"ps -ef |wc -l" no more than 300 process,
I checked some parameters also .they saw ok.
maxuprc 3780
nproc 4200
following is the result of (sar -v).it saw ok .
$sar -v -f /var/adm/sa/sa28
HP-UX B.11.31 U ia64 08/28/09
00:00:00 text-sz ov proc-sz ov inod-sz ov file-sz ov
21:50:00 N/A N/A 323/4200 0 1135/35648 0 4077/2147483647 0
21:55:01 N/A N/A 312/4200 0 1115/35648 0 4079/2147483647 0
22:00:01 N/A N/A 311/4200 0 1112/35648 0 4096/2147483647 0
22:05:01 N/A N/A 316/4200 0 1122/35648 0 4106/2147483647 0
22:10:00 N/A N/A 310/4200 0 1110/35648 0 4097/2147483647 0
22:15:01 N/A N/A 311/4200 0 1113/35648 0 4096/2147483647 0
22:20:01 N/A N/A 313/4200 0 1118/35648 0 4104/2147483647 0
22:25:00 N/A N/A 312/4200 0 1114/35648 0 4096/2147483647 0
22:30:00 N/A N/A 311/4200 0 1111/35648 0 4085/2147483647 0
22:35:00 N/A N/A 311/4200 0 1112/35648 0 4087/2147483647 0
I tried to reboot server.it also occured fork fail error after some hours.
At last, i check my program.
i found action of signaal SIGCHLD was set to SIG_IGN.
signal(SIGCHLD, SIG_IGN);
chang it to this .it did't occure fork fail error any more!!.
signal(SIGCHLD, wait_child);
void wait_child(int sig)
{
wait(NULL);
signal(SIGCHLD, wait_child);
}
thses is my doubt.
if fork fail was because of parent process's no-wait.why result of 'ps -ef ' and 'sar -v' saw well?
I know zombie processes can be showed by ps .is there hidden processes in the systems?
Thanks in advance
- Tags:
- fork
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2009 04:47 AM
тАО09-02-2009 04:47 AM
Re: fork error !! HP-UX 11.31
When faced with this problem I would probably first make a little program to fork 'n' children which all go to sleep to test how many process the system allows you to create.
I might try look at the process-id to see if there was a jump/hole
Instrument the application to log an timestamp fork + pid, or use truss for that.
Good luck!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2009 04:56 AM
тАО09-02-2009 04:56 AM
Re: fork error !! HP-UX 11.31
How many processes is this application designed to fork?
Could it just be exceeding maxuprc ?
What is the error on the fork?
"If fork() fails with an error value of EAGAIN, it could be an indication that maxuprc was reached by that particular user."
http://docs.hp.com/en/B3921-90010/maxuprc.5.html
See also this related, recent, topic:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1368384
Also check parameter nkthread.
It is typically automatically adjusted with nproc, but maybe someone was too smart?
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2009 11:59 PM
тАО09-02-2009 11:59 PM
Re: fork error !! HP-UX 11.31
I checked some parameters also. they saw ok.
>maxuprc 3780 nproc 4200
It looks like it. My ps will return "
Perhaps Hein is correct in that you have nkthread < nproc?
But kctune(1m) implies it won't let you make that mistake.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2009 01:43 AM
тАО09-03-2009 01:43 AM
Re: fork error !! HP-UX 11.31
I found /var/adm/syslog not be updated some months.syslogd core down at some months ago.So i can't found any information from syslog.
I check nkthread parameters with kctune ,it saw no problem:
nkthread 7184 (((nproc*7)/4)+16) Immed