Re: ORBIT-MT problem, clean-up process, CPU load 100 %



Hi Zulkarnaen,

>         Something wrong with my ORBIT-MT-0.5.7 ..
> 
>         when i try ..calculator client server ..which included
> with tarball
> found at $(ORBIT_PREFIX_DIR)/test/multithreaded/
> 
>         I got something peculiar like this ..
> 
> - first i run  the server  ....    $./server > cal.ior
> 
>    and isssued 'ps' command it's appear like this
> 
>   875 pts/3    S      0:00 lt-server
>   889 pts/3    S      0:00 lt-server
>   890 pts/3    S      0:00 lt-server
> 
> - the i run the client .... $./client `cat cal.ior `
>    till it exited. Then I issued 'ps' command again that show me
> this ..
> 
>   875 pts/3    S      0:00 lt-server
>   889 pts/3    S      0:00 lt-server
>   890 pts/3    R      0:08 lt-server
>   961 pts/3    S      0:00 lt-server
> 
> Does it mean orbit-mt not clean up all the process(thread)
> properly ????

ORBit-mt uses thread pools. That means, that in theory every thread is being
reused due to the high cost of starting a new thread. Just now, however, only
one thread (per thread pool, ORBit uses one thread pool) is being reused. You
can change that by calling 

void g_thread_pool_set_max_unused_threads (gint max_threads)

max_threads == -1 here means, that a thread is never stoped. However, as I
noticed looking at the code to answer your question, there is a bug, that
prevents the -1 case from working. That will be fixed in the next version.

> And one more thing .. that .. after client exit.. my CPU load raise to
> almost 100% used bye 'lt-server' process all the time until i killed the
> server ..

Hm, I have no idea, why that happens. Can you give further evidence, what
going wrong. It works as expected here.

Bye,
Sebastian
-- 
Sebastian Wilhelmi
mailto:wilhelmi ira uka de
http://goethe.ira.uka.de/~wilhelmi




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]