[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] High CPU usage (up to 99.9%) on startup
From:       "James Ellis" <james.ellis () gmail ! com>
Date:       2007-05-05 4:07:58
Message-ID: ff7ed7160705042107o17ed155q94ee8991376e9b65 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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|O_LARGEFILE) = 12
read(12, "GIF89a\24\0\22\0\241\1\0.Dr\377\377\377\233\t\t\0\0\0!"..., 4000)
= 113
close(12)


open("/path/to/file/jscripts/link.js", O_RDONLY|O_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.ellis@gmail.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"
> 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, "\0", 1)                       = 1
> gettimeofday({1178276607, 657596}, NULL) = 0
> write(3, ";\3\5\0+\4`\2\0\0\0\0\0\0\0\0f\0\17\0\235\6\5\0O\t`\2\0"...,
> 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
>
>

[Attachment #5 (text/html)]

Futher information on this - According to strace Quanta looks to be doing ad \
infinitum &quot;lstat64&quot; and &quot;fstat64&quot; function calls. Then opening an \
closing various if not all files in the project.<br>In fact it looks like it is \
trying to read the first line of every file (path/to/file is my replacement)&nbsp; : \
<br><br><br>open(&quot;/path/to/file/images/.svn/text-base/browse.gif.svn-base&quot;, \
O_RDONLY|O_LARGEFILE) = 12<br>read(12, \
&quot;GIF89a\24\0\22\0\241\1\0.Dr\377\377\377\233\t\t\0\0\0!&quot;..., 4000) = \
113<br>close(12)  <br><br><br>open(&quot;/path/to/file/jscripts/link.js&quot;, \
O_RDONLY|O_LARGEFILE) = 12<br>fstat64(12, {st_mode=S_IFREG|0664, st_size=2436, ...}) \
= 0<br>fstat64(12, {st_mode=S_IFREG|0664, st_size=2436, ...}) = 0<br>mmap2(NULL, \
4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb56ba000 \
<br>read(12, &quot;var url = tinyMCE.getParam(\&quot;exte&quot;..., 4096) = \
2436<br>close(12) <br><br><br>Does anyone know why? Is it rebuilding the project \
file?<br><br><br>Cheers.<br>James<br><br><br><br><div><span class="gmail_quote"> On \
5/4/07, <b class="gmail_sendername">James Ellis</b> &lt;<a \
href="mailto:james.ellis@gmail.com">james.ellis@gmail.com</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi<br><br>On loading \
Quanta up I&#39;m finding that CPU usage is jumping to 99.9%. An strace on the Quanta \
pid is giving information about &quot;gettimeofday&quot;<br>I know it&#39;s happening \
when my CPU fan starts running hard... :) The high CPU usage lasts for about 30-60 \
seconds then drops to normal. <br><br>strace -&gt;<br><br>gettimeofday({1178276607, \
657470}, NULL) = 0<br>ioctl(5, FIONREAD, \
[0])&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 0<br>write(6, &quot;\0&quot;, \
1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 1<br>gettimeofday({1178276607, 657596}, NULL) = 0 <br>write(3, \
&quot;;\3\5\0+\4`\2\0\0\0\0\0\0\0\0f\0\17\0\235\6\5\0O\t`\2\0&quot;..., 1572) = \
1572<br>ioctl(3, FIONREAD, \
[0])&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 0<br>gettimeofday({1178276607, 657942}, NULL) = 0<br>select(18, [3 4 5<br><br>

etc etc<br><br>Any ideas what could be causing this. It&#39;s only started to happen \
in the last week or so and Quanta hasn&#39;t been updated in a while.<br>I searched \
on bugs.kde and nothing much came up Quanta related. <br><br>Specs:<br><br>Kubuntu \
7.04<br>KDE 3.5.6-0ubuntu20 (kubuntu packages)<br>Quanta/kdewebdev 3.5.6-0ubuntu1 \
(kubuntu packages)<br><br><br>Cheers<br><span class="sg">James<br><br> \
</span></blockquote></div><br>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic