This is a discussion on while(true) { sleep(1000) } and iotop show operations writes - why? - Linux ; 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, ...
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.