- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HpUX - Python - fork & exec in Threads hang - int...
Operating System - HP-UX
1754143
Members
3649
Online
108811
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО05-03-2004 07:09 AM
тАО05-03-2004 07:09 AM
HpUX - Python - fork & exec in Threads hang - intermittently
Hi,
I am facing the following problem on HP & python.
Background:
I have a GUI (QT package) and I am running tasks in Threads. These threads spawn a process and read the output of the process and then display the O/P on the GUI.
Now I can get a new process spawned by using a menu option.
Now every alternate time the process hangs (spawned from the same gui):
I.e. First process hangs.
Second goes through fine.
Third goes fine
Fourth hangs.
More on the problem:
This is what happens, when I call
os.fork()
In the parent process I get the Pid of the child and the parent is fine.
But in the child process (even before calling exec) my print statements work but anything os.XXX function call fails. I did a very simple stuff: before calling exec:
Os.system("touch /tmp/m1") and this system call fails (for situations where the process hangs).
NOTE: The hp system is:
HP-UX 11.11
It has MSCS cluster installed on it.
Python: 2.2.3
Has any body seen such a hanging of processes.
Thanks
-Ajay B
I am facing the following problem on HP & python.
Background:
I have a GUI (QT package) and I am running tasks in Threads. These threads spawn a process and read the output of the process and then display the O/P on the GUI.
Now I can get a new process spawned by using a menu option.
Now every alternate time the process hangs (spawned from the same gui):
I.e. First process hangs.
Second goes through fine.
Third goes fine
Fourth hangs.
More on the problem:
This is what happens, when I call
os.fork()
In the parent process I get the Pid of the child and the parent is fine.
But in the child process (even before calling exec) my print statements work but anything os.XXX function call fails. I did a very simple stuff: before calling exec:
Os.system("touch /tmp/m1") and this system call fails (for situations where the process hangs).
NOTE: The hp system is:
HP-UX 11.11
It has MSCS cluster installed on it.
Python: 2.2.3
Has any body seen such a hanging of processes.
Thanks
-Ajay B
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2004 07:18 AM
тАО05-03-2004 07:18 AM
Re: HpUX - Python - fork & exec in Threads hang - intermittently
Could be a lot of things:
Corrupt process table.
Too many processes.
SG getting hung up. You said SG is installed, is the box part of a cluster? Are their monitor scriptts?
Some performance data collection might help. See attachement
SEP
Corrupt process table.
Too many processes.
SG getting hung up. You said SG is installed, is the box part of a cluster? Are their monitor scriptts?
Some performance data collection might help. See attachement
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
тАО05-03-2004 11:01 AM
тАО05-03-2004 11:01 AM
Re: HpUX - Python - fork & exec in Threads hang - intermittently
Hi Steven,
The problem had gone after we rebooted the machine. (But thats not exceptable in a customer environment).
The system load at that point was very light.
I do not expect any kind of resource problem.
Also using this in python programatically I do not too much say in memory management and hence memory corruption is also a remote possibility. Also the same program never gave any problem on Non-cluster hosts. Though this obsevation may be misleading.
The box is a part of two node cluster (MC / ServiceGuard)
The ran the script you provide. It is tared.
Thanks
The problem had gone after we rebooted the machine. (But thats not exceptable in a customer environment).
The system load at that point was very light.
I do not expect any kind of resource problem.
Also using this in python programatically I do not too much say in memory management and hence memory corruption is also a remote possibility. Also the same program never gave any problem on Non-cluster hosts. Though this obsevation may be misleading.
The box is a part of two node cluster (MC / ServiceGuard)
The ran the script you provide. It is tared.
Thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP