- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Concurreny problem
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
02-05-2004 01:10 AM
02-05-2004 01:10 AM
Concurreny problem
I was running multiple processes on my system for data loading.
The main script spawned out three additional shells running different loading scripts
concurrently. After the spawning, there were four processes running
at the same time. The processes were all running with my own user account.
When I ran the utility TOP, it showed only one CPU was utilized 100% and the other three
CPUs were idled. Why was that? I was expecting all CPUs were fully utilized.
Can you think of any reason why only one CPU was utilized, but not four?
Is there any restriction because of the user account (not root)?
Any help here will be greatly appreciated and points will always be assigned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 01:18 AM
02-05-2004 01:18 AM
Re: Concurreny problem
OK, I'll be obvious:
How were these other processes "spawned"? In the background?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 01:19 AM
02-05-2004 01:19 AM
Re: Concurreny problem
When you say spawn, there are multiple variants spawning can occur. Depending on how it is implemented it can be spawned with
the environment of the parent, run totally separate, independent, or be effectively blocked with a semaphore. What does the script look like, and I may be able to give you guidance.
In C (which the OS is written in) there are the exec functions. They have different properties. Any of these functions can spawn a process, but they have wildly different results...
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 01:20 AM
02-05-2004 01:20 AM
Re: Concurreny problem
Another thought:
Is it possible any other processes have set affinity to those other three processors? Our Informix database has this capability, for example.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 01:22 AM
02-05-2004 01:22 AM
Re: Concurreny problem
How about a hint as to what the jobs are that you are forking over?
Data loading into what?
tarring up stuff?
zipping up stuff?
relational database row inserts?
Oracle SQLloader? Oracle Import?
> only one CPU was utilized 100% and the other three CPUs were idled. Why was that?
- Because they were waiting on soem terminal input?
- Because the job takes out a high level (applicaiton) lock?
How about trying to run the job twice from two windows... does that get two active jobs or is one also idle? Does the system you are loading into have tools to monitor process states? wait events? lock contention?
Cheers,
Hein.