www.smartbusinesschoices.com

Leading Business and Technology,
News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

while(true) { sleep(1000) } and iotop show operations writes
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux Development - Applications  
View previous topic :: View next topic  
Author Message
R.M.
Guest






PostPosted: Wed Nov 05, 2008 11:33 am    Post subject: while(true) { sleep(1000) } and iotop show operations writes Reply with quote

Hello,
Big programs, for example java with only simple loop:

int i = 0;
while(true)
{
sleep(1000);
System.out.println("test" + i++);
}

$sudo swapoff -a

and iotop show write(3kB/s) (1 write per 15-30 seconds)

ubuntu 8.04, kernel 2.6.24, core 2 duo, 2GB RAM

strace stop at futex, and ltrace stop at thread

$sudo strace -p 31006
Process 31006 attached - interrupt to quit
futex(0xb7b53bd8, FUTEX_WAIT, 31007, NULL

$sudo ltrace -S app
[...]
SYS_mprotect(0xb7cf8000, 4096, 0) = 0
SYS_clone(0x3d0f00, 0xb7d484c4, 0xb7d48bd8, 0xbfae4d9c, 0xb7d48bd8) =
898
<... pthread_create resumed> ) = 0
+++ killed by SIGTRAP +++

how can i localize problem?

please, please, help ...

reagards,
R.M.
Back to top
Display posts from previous:   
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux Development - Applications  
Page 1 of 1
All times are GMT

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum