[tekui-devel] 100% cpu usage by TekUI demo

Stefan Reich stefan.reich.maker.of.eye at googlemail.com
Sat May 11 18:33:51 CEST 2013


I think I just saw the 100% CPU bug with a simple test app of mine (just
one window with some stuff, no idle handlers etc...).

So both the nohup and gc explanations seem to fall short...

Will observe further and report!

Thanks,
Stefan


On Sat, May 11, 2013 at 6:27 PM, Timm S. Mueller <
tmueller at schulze-mueller.de> wrote:

> On Sat, 11 May 2013 17:50:14 +0200
> Stefan Reich <stefan.reich.maker.of.eye at googlemail.com> wrote:
>
> > Thanks for answering the other question, Timm!
> >
> > Here's a new one...
> >
> > This is after leaving the demo app open for a while (top excerpt);
> >
> > 28522 stefan    20   0 46276 7180 2660 S 85.1  0.2  41:27.15
> > lua
> >
> > ps -aef|grep 28522
> > stefan   28522 26920 81 16:56 pts/0    00:41:30 lua bin/demo.lua
> >
> > I ran it with nohup, and nohup.out is empty.
> >
> > Lua interpreter is standard (5.1.4 from Debian package).
> >
> > Hmm...
> >
> > What's up with that?
>
> My guess is that this is related to nohup interacting with tekUI's
> feature to transform lines from stdin into user input messages. If this
> is not desired, remove -DENABLE_STDIN from the config file and
> recompile.
>
> Besides, the demo application is constantly keeping itself busy by
> updating some elements with memory and garbage collector statistics,
> and there are some demos that might add interval handlers, too. To
> further reduce CPU usage, comment out the lines containing
> addInputHandler and remInputHandler from demo.lua.
>
> > Cheers,
> > Stefan
>
> - Timm
>
> --
> Timm S. Mueller <tmueller at schulze-mueller.de>
> Schulze & Mueller GbR, Jungstr. 2, 10247 Berlin,
> Gesellschafter: Franciska Schulze, Timm S. Mueller,
> Tel. +49 30 85610000, http://www.schulze-mueller.de/
> _______________________________________________
> tekui-devel mailing list
> tekui-devel at lists.neoscientists.org
> http://lists.neoscientists.org/mailman/listinfo/tekui-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.neoscientists.org/pipermail/tekui-devel/attachments/20130511/2addee6f/attachment.html>


More information about the tekui-devel mailing list