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



Hi Zulkarnaen,

> > > 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.
> 
> 
>         Hmm ... I found it happened also for simple
>         echo-server/echo-       client in $ORBIT_PREFIX_DIR/test
> 
>         may i show you some  commands and the result ..on my box .
> 
>         bash# pwd
>         /root/ORBit-mt-0.5.7/test
>         bash# ./echo-server > echo.ior &
>         [1] 8868
> 
>         bash# ps ax | grep server
>          8868 pts/5    S      0:00 lt-echo-server
>          8883 pts/5    S      0:00 grep server
> 
>         (then i execute echo-client ...)
> 
>         bash# ./echo-client `cat echo.ior `
>         time elapsed:0.011061 seconds.
>         bash#
> 
>         now  i doing "top" in other window while echo-server still running
>         .the result of top below ..
> 
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
>  8868 root      18   0  1144 1144   940 R       0 99.4  0.4   2:32 lt-echo-server
>   786 root       9   0 36756  35M  1984 R       0  0.1 14.4   0:06 X
> 
>         Did something wrong ...
>         can You see lt-echo-server still has "R" state,even  client has
>         exited ..
> 
>         Here what i got with sample in $ORBIT_PREFIX_DIR/multithread
> 
> 
> 
> bash# pwd
> /root/ORBit-mt-0.5.7/test/multithread
> bash# ./server > cal.ior &
> [2] 8934
> 
> bash# ps ax | grep server
>  8868 pts/5    R     16:00 lt-echo-server
>  8934 pts/5    S      0:00 lt-server
>  8952 pts/5    S      0:00 lt-server
>  8953 pts/5    S      0:00 lt-server
> bash# ./client `cat cal.ior `
> now calculating 880 x 506 for 4 seconds.
> now calculating 309 x 280 for 9 seconds.
> now calculating 937 x 552 for 1 seconds.
> now calculating 34 x 624 for 5 seconds.
> now calculating 253 x 848 for 8 seconds.
> now calculating 25 x 265 for 6 seconds.
> now calculating 391 x 723 for 1 seconds.
> ...

What system is that running on? I really have no idea, what's happening. Can
you try to debug that probem and see, where it is running. you can let the
server run inside gdb

cd test
gdb .libs/lt-echo-server # This is to get the binary, echo-server is a script

Then in gdb you do:

run >/tmp/ior

Then in another window: 

cd test
echo-client $(</tmp/ior)

Then in gdb you press Ctrl-C and type in 

bt 

to see, what the prog is doing. Send me that info and I'll look into that.

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]