List Info

Thread: High CPU usage (up to 99.9%) on startup




High CPU usage (up to 99.9%) on startup
user name
2007-05-04 06:17:10
Hi

On loading Quanta up I'm finding that CPU usage is jumping to 99.9%. An strace on the Quanta pid is giving information about "gettimeofday"
I know it's happening when my CPU fan starts running hard... The high CPU usage lasts for about 30-60 seconds then drops to normal.

strace ->

gettimeofday({1178276607, 657470}, NULL) = 0
ioctl(5, FIONREAD, [0])   ;           ;   = 0
write(6, "", 1)       ;           ;     = 1
gettimeofday({1178276607, 657596}, NULL) = 0
write(3, ";35+4`2f1723565Ot`2";..., 1572) = 1572
ioctl(3, FIONREAD, [0])   ;           ;   = 0
gettimeofday({1178276607, 657942}, NULL) = 0
select(18, [3 4 5

etc etc

Any ideas what could be causing this. It's only started to happen in the last week or so and Quanta hasn't been updated in a while.
I searched on bugs.kde and nothing much came up Quanta related.

Specs:

Kubuntu 7.04
KDE 3.5.6-0ubuntu20 (kubuntu packages)
Quanta/kdewebdev 3.5.6-0ubuntu1 (kubuntu packages)


Cheers
James

Re: High CPU usage (up to 99.9%) on startup
user name
2007-05-04 23:07:58
Futher information on this - According to strace Quanta looks to be doing ad infinitum "lstat64" and "fstat64" function calls. Then opening an closing various if not all files in the project.
In fact it looks like it is trying to read the first line of every file (path/to/file is my replacement)  :


open("/path/to/file/images/.svn/text-base/browse.gif.svn-base", O_RDONLY_LARGEFILE) = 12
read(12, "GIF89a24222411.Dr377377377233tt!"..., 4000) = 113
close(12)


open("/path/to/file/jscripts/link.js", O_RDONLY_LARGEFILE) = 12
fstat64(12, {st_mode=S_IFREG|0664, st_size=2436, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0664, st_size=2436, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb56ba000
read(12, "var url = tinyMCE.getParam("exte";..., 4096) = 2436
close(12)


Does anyone know why? Is it rebuilding the project file?


Cheers.
James



On 5/4/07, James Ellis < james.ellisgmail.com">james.ellisgmail.com> wrote:
Hi

On loading Quanta up I'm finding that CPU usage is jumping to 99.9%. An strace on the Quanta pid is giving information about "gettimeofday&quot;
I know it's happening when my CPU fan starts running hard... The high CPU usage lasts for about 30-60 seconds then drops to normal.

strace ->

gettimeofday({1178276607, 657470}, NULL) = 0
ioctl(5, FIONREAD, [0])   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; = 0
write(6, "&quot;, 1) &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; = 1
gettimeofday({1178276607, 657596}, NULL) = 0
write(3, ";35+4`2f1723565Ot`2";..., 1572) = 1572
ioctl(3, FIONREAD, [0])   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; = 0
gettimeofday({1178276607, 657942}, NULL) = 0
select(18, [3 4 5

etc etc

Any ideas what could be causing this. It's only started to happen in the last week or so and Quanta hasn't been updated in a while.
I searched on bugs.kde and nothing much came up Quanta related.

Specs:

Kubuntu 7.04
KDE 3.5.6-0ubuntu20 (kubuntu packages)
Quanta/kdewebdev 3.5.6-0ubuntu1 (kubuntu packages)


Cheers
James


Re: High CPU usage (up to 99.9%) on startup
country flaguser name
Romania
2007-05-05 03:29:53
Try to see if renaming the $HOME/.kde/share/config/quantarc
helps or 
not.

Andras

_______________________________________________
Quanta mailing list
Quantamail.kde.org
https://
mail.kde.org/mailman/listinfo/quanta

Re: High CPU usage (up to 99.9%) on startup
user name
2007-05-11 00:47:47
Hi Andras

Thanks for the response.

Unfortunately all that did was remove my indendation, backup and tabbing settings. so I just moved the file back.

I did some tests on opening quanta after renaming the rc file and much the same happens. Quanta seems to be fstat649;ing every file in the project - including a  65 meg database dump as follows:

fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
read(13, "4407327.74.6.74.49', 0, '74.6.74"..., 4096) = 4096
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=65462382, ...}) = 0
fstat64(13,  <unfinished ...>
Process 6949 detached


I can understand why that may be causing quanta to heat up but shouldn9;t it just list the file? I'll see if I can exclude that file from the project.

Thanks again
James


On 5/5/07, Andras Mantia < amantiakde.org">amantiakde.org&gt; wrote:
Try to see if renaming the $HOME/.kde/share/config/quantarc helps or
not.

Andras

_______________________________________________
Quanta mailing list
Quantamail.kde.org">Quantamail.kde.org
https://mail.kde.org/mailman/listinfo/quanta



[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )