Re: Strange performance problem with fork/exec in a multithreaded
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: Strange performance problem with fork/exec in a multithreaded




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Strange performance problem with fork/exec in a multithreaded  
Paul Pluzhnikov


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-11-06 10:51 PM

Roland Spatzenegger <cymric@npg.net> writes:

> I have a performance problem in my linux-application which starts
> other programs with fork/exec.

You probably should be asking in c.o.l.d.{apps,system} ...

> In the C++ Application I use ACE/TAO (so the fork exec is called from
> a Corba Thread) and the stdin/stderr from the shellscript are
> redirected to a file (in the fork()).

Fork()ing mutithreaded apps is asking for trouble: it requires that
*all* libraries you link to implement atfork handlers correctly
(which may not be trivial).

> So I think the problem must be in the clone() or waitpid() call (?).
> Has anyone an idea how to track down the problem?

Try creating a minimal test case.
Also note that versions of kernel and glibc are likely to be
relevant (as well as whether you are using LinuxThreads or NPTL),
so you should state them.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:13 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register