- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- One Interesting Problem for U geeks
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
тАО07-11-2001 07:08 AM
тАО07-11-2001 07:08 AM
I ran a C Program which forks() some processes
continuously in a infinte loop..
It has created some 100's of processes
in mins and the system is now damn slow..
and it is not ready to give birth to any
more process.
So here is thing.
We all sys Admins decided to try out
"Who will succeed in executing atleast an ls
without rebooting the system ? "
and after so many tries we have one
solution..
But I would like to know from U geeks
what U will do when the system's process table
is full and U exceeded maxuprc (remmeber U are
not a Super User)..
I would like to have some more ways from U
guys to execute atleast an ls when the system
is in above said condition..
Waiting for replies
Thanks in advance
Sundar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2001 07:18 AM
тАО07-11-2001 07:18 AM
Re: One Interesting Problem for U geeks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2001 07:52 AM
тАО07-11-2001 07:52 AM
Re: One Interesting Problem for U geeks
Nothing much to do if the no of macuprc is full , you cant do anyhting unless
1. Someone ( including root ) kills the allocated process.
2. The process initated by that user completes and exits , hence frees some of the processes available.
All the best .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2001 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2001 10:58 AM
тАО07-11-2001 10:58 AM
Re: One Interesting Problem for U geeks
When I was in college some of the more enterprising students used to do precisely what you describe -- created a C program with the following line:
main() {
while(1){
fork();
}
}
The only way our administrators were able to kill these processes was to reboot the system. The problem is these processes are reproducing at such a rate that they will chew up your entire process table and nobody will be able to create a new process on the system. Yes, they'll die off because they are exceeding maxuprc, but as one dies off, another one will fork() to take its place.
My recommendation of the above code is "DON'T DO IT". When you have something like this chewing up resources so quickly, there really is no easy way of killing it without rebooting your system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2001 11:06 AM
тАО07-11-2001 11:06 AM
Re: One Interesting Problem for U geeks
Cheers...
Satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2001 11:13 AM
тАО07-11-2001 11:13 AM
Re: One Interesting Problem for U geeks
The windows popped until they started to slow on all machines and we had to reboot all classroom machines.
Since you are not getting any work done on that machine anyway, hit the TOC button and reboot it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2001 12:14 PM
тАО07-11-2001 12:14 PM
Re: One Interesting Problem for U geeks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2001 10:56 PM
тАО07-11-2001 10:56 PM
Re: One Interesting Problem for U geeks
One Paula came up with what I expected..
Even though Urprocess table is full U can
execute the commands using exec as it is not
going to create any sub shell or process..
so exec will work out..
Anyways..
Thanks to all of U
Sundar