Codelite using 100% of a CPU core even when idle [SOLVED]
Posted: Fri Oct 22, 2010 7:22 pm
SOLVED = Bad Ubuntu install.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Ubuntu 10.04 LTS using Codelite v2.7.0.4375, installed from codelite_2.7.0.4375-ubuntu0_i386.deb obtained from http://kent.dl.sourceforge.net/project/ ... 0_i386.deb
Codelite is stock - I haven't changed the default plugins. It is using most of a CPU core even when idle, i.e. when starting up with no workspace loaded yet.
top:
The issue appears to be that Codelite is forking (actually cloneing) like crazy:
Apologies if this is a known issue, or there's an easy fix. I'm happy to provide more details if it would help.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Ubuntu 10.04 LTS using Codelite v2.7.0.4375, installed from codelite_2.7.0.4375-ubuntu0_i386.deb obtained from http://kent.dl.sourceforge.net/project/ ... 0_i386.deb
Codelite is stock - I haven't changed the default plugins. It is using most of a CPU core even when idle, i.e. when starting up with no workspace loaded yet.
top:
Code: Select all
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12084 colinmcd 20 0 180m 78m 20m R 53 2.0 5:22.11 codelite
Code: Select all
ps -ef | grep codelite
colinmcd 12084 1 48 15:55 ? 00:06:21 codelite
strace -p 12084 -o /tmp/straced
less /tmp/straced
Process 12084 attached - interrupt to quit
^CProcess 12084 detached
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb5a257c8) = 3652
--- SIGCHLD (Child exited) @ 0 (0) ---
futex(0xb60cc838, FUTEX_WAKE_PRIVATE, 1) = 1
chdir("/home/colinmcd/.codelite") = 0
close(8) = 0
close(11) = 0
sched_get_priority_max(SCHED_OTHER) = 0
sched_get_priority_min(SCHED_OTHER) = 0
clone(child_stack=0xb54c33f4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xb54c3bd8, {entry_number:6, base_addr:0xb54c3b70, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb54c3bd8) = 3654
futex(0xb4301160, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0xb430115c, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
read(5, 0x8ebe5a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1287760185, 800029}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=6, events=POLLIN}], 4, 0) = 0 (Timeout)
close(10) = 0
close(9) = 0
kill(3652, SIG_0) = -1 ESRCH (No such process)
waitpid(3652, 0xbfc68928, 0) = -1 ECHILD (No child processes)
stat64("/usr/bin/codelite_indexer", {st_mode=S_IFREG|0755, st_size=226464, ...}) = 0
pipe([8, 9]) = 0
pipe([10, 11]) = 0
getcwd("/home/colinmcd/.codelite", 1024) = 25
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb5a257c8) = 3655
chdir("/home/colinmcd/.codelite") = 0
close(8) = 0
close(11) = 0
sched_get_priority_max(SCHED_OTHER) = 0
sched_get_priority_min(SCHED_OTHER) = 0
clone(child_stack=0xb54c33f4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xb54c3bd8, {entry_number:6, base_addr:0xb54c3b70, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb54c3bd8) = 3656
read(5, 0x8ebe5a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1287760185, 807855}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=6, events=POLLIN}], 4, 4) = 0 (Timeout)
gettimeofday({1287760185, 812167}, NULL) = 0
read(5, 0x8ebe5a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1287760185, 812261}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=6, events=POLLIN}], 4, 0) = 0 (Timeout)
read(5, 0x8ebe5a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1287760185, 812370}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=6, events=POLLIN}], 4, 0) = 0 (Timeout)
read(5, 0x8ebe5a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
--- SIGCHLD (Child exited) @ 0 (0) ---
gettimeofday({1287760185, 827168}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=6, events=POLLIN}], 4, 0) = 1 ([{fd=3, revents=POLLIN}])
read(3, "A", 1) = 1
close(10) = 0
close(9) = 0
kill(3655, SIG_0) = -1 ESRCH (No such process)
waitpid(3655, 0xbfc68928, 0) = -1 ECHILD (No child processes)
stat64("/usr/bin/codelite_indexer", {st_mode=S_IFREG|0755, st_size=226464, ...}) = 0
...
strace -p 12084 -ff -o /tmp/straced
Process 11002 attached with 9 threads - interrupt to quit
Process 15176 attached
Process 15176 detached
Process 15177 attached
Process 15177 detached
Process 15178 attached
Process 15179 attached
Process 15178 detached
Process 15179 detached
Process 15180 attached
Process 15181 attached
Process 15180 detached
Process 15181 detached
Process 15182 attached
Process 15183 attached
...
ls /tmp/straced.*
/tmp/straced.10841 /tmp/straced.10999 /tmp/straced.15176 /tmp/straced.15181 /tmp/straced.15186 /tmp/straced.15191 /tmp/straced.15196
/tmp/straced.10990 /tmp/straced.11000 /tmp/straced.15177 /tmp/straced.15182 /tmp/straced.15187 /tmp/straced.15192 /tmp/straced.15197
/tmp/straced.10996 /tmp/straced.11001 /tmp/straced.15178 /tmp/straced.15183 /tmp/straced.15188 /tmp/straced.15193 /tmp/straced.15198
/tmp/straced.10997 /tmp/straced.11002 /tmp/straced.15179 /tmp/straced.15184 /tmp/straced.15189 /tmp/straced.15194
/tmp/straced.10998 /tmp/straced.12084 /tmp/straced.15180 /tmp/straced.15185 /tmp/straced.15190 /tmp/straced.15195