[fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

Bo Berglund bo.berglund at gmail.com
Mon Oct 4 08:16:06 CEST 2021

On Sun, 03 Oct 2021 19:51:49 +0200, Bo Berglund via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

>In this scenario I expected next to no CPU usage when this is running as a
>service controlled by systemd, but in fact top shows the service to consume 10%
>CPU when it is doing nothing, no client connected and no task running...
>How can I find out what is the cause of this?
>I am developing using Lazarus 2.0.12 and FPC 3.2.0 on the RPi3B+.

I found the LazProfiler on the wiki: https://wiki.freepascal.org/LazProfiler

Could it be used to profile a service command line application (no GUI) too or
is it limited to "normal" GUI type applications?

Does it work on ARM Linux?


Bo Berglund
Developer in Sweden

More information about the fpc-pascal mailing list