Recent

Author Topic: CPU usage  (Read 15542 times)

Rickmeister

  • New Member
  • *
  • Posts: 21
CPU usage
« on: March 27, 2016, 08:21:35 am »
Hi there, first post, long-time forum-viewer.

Got a serious issue with Lazarus on my Linux Mate laptop, even while idling with all windows minimized it uses around 75-95% cpu-power.  >:D The fan is running at max speed, and by doing so it drains the battery in notime, I'm forced to have the computer plugged in at all times when running Lazarus. The IDE is also very slow and often it locks up when trying to close down dialogs, clicking the 'OK' buttons is useless, and from time to time I have to kill the window (xkill). Tried both precompiled deb packages and compiling it from source, but all my efforts hasn't given any results. Tried google for some quick answers, but so far I haven't found anything that could help me. As for now the IDE is useless, and I would really like to get it working. I've got it installed on a Win7 machine and on a MacBook, and on those machines it runs like a charm.

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: CPU usage
« Reply #1 on: March 27, 2016, 08:44:40 am »
I have no problems at all on a debian lxde laptop, so this may be mate specific. It should almost idle out after a minute or so. I also tested it in a ubuntu 14.04 running on a virtualbox machine under windows 10. Same thing: almost idles after some time.
Specialize a type, not a var.

Rickmeister

  • New Member
  • *
  • Posts: 21
Re: CPU usage
« Reply #2 on: March 27, 2016, 08:49:21 am »
Got it running right now, and after ~15 minutes or so it's still using around 80%. Might be a Mate issue, will try to install Ubuntu desktop instead, if I'm lucky it will start to work properly.

Rickmeister

  • New Member
  • *
  • Posts: 21
Re: CPU usage
« Reply #3 on: March 27, 2016, 09:54:17 am »
Fresh install of Fedora, installed fpc, compiled Lazarus but no luck. Still very high cpu-usage after idling for approx 10 minutes, so it wasn't Mate-related I guess  %) Laptop is burning hot, fan is at max speed and the IDE is a bit sluggish and tends to freeze up now and then. Compiled from 1.6 source, now running at 56% cpu usage when minimized and idling.

Fedora Workstation fresh install
fpc 3.0.0 X86_64
Lazarus compiled from 1.6 source

Handoko

  • Hero Member
  • *****
  • Posts: 5130
  • My goal: build my own game engine using Lazarus
Re: CPU usage
« Reply #4 on: March 27, 2016, 09:58:02 am »
I never have CPU usage issue running Lazarus on several Linux OSes. Now I'm using Lazarus 1.6 on Ubuntu MATE 15.10 64-bit. My desktop pc is Intel Core 2 Quad + NVidia 8400. I also enable several desktop effect by using Compiz.

Maybe there is something wrong with your hardware. Perhaps the BIOS configuration isn't configured properly.

Rickmeister

  • New Member
  • *
  • Posts: 21
Re: CPU usage
« Reply #5 on: March 27, 2016, 10:09:00 am »
Computer #1:
HP EliteBook 8460p
OS :Fedora Workstation
CPU usage ~80%
OS: WIndows7pro
CPU usage ~10% (sometimes lower, just an estimate)

Computer #2:
ASUS ZenBook UX305
UbuntuMate 15.10
CPU usage ~80%

Computer #3:
MacBook Pro
OS; OSX ElCapitan
CPU usage ~10% (sometimes lower, just an estimate)

Computer #4:
Toshiba Kira-10Q
OS: Windows 10
CPU usage ~10% (sometime lower)
OS: Ubuntu Mate  15.10
CPU usage ~80%


I find this strange... Can't be that all my harware is faulty
« Last Edit: March 27, 2016, 10:15:37 am by Rickmeister »

Handoko

  • Hero Member
  • *****
  • Posts: 5130
  • My goal: build my own game engine using Lazarus
Re: CPU usage
« Reply #6 on: March 27, 2016, 10:45:40 am »
So you have tested it on different hardware and OSes. What about different version of Lazarus. Try to test Lazarus 1.4 or perhaps 32-bit version.

wp

  • Hero Member
  • *****
  • Posts: 11855
Re: CPU usage
« Reply #7 on: March 27, 2016, 10:49:04 am »
Out-of-the-box-Lazarus or any third-party packages installed?

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: CPU usage
« Reply #8 on: March 27, 2016, 10:54:50 am »
hello,
strange affair , on Ubuntu 14.04 64 bits Lazarus 1.6 (gtk 2)   CPU usage near 0% ( see attachment ). Have you changed something in configuration ( language , ...  )  ?

Friendly J.P
« Last Edit: March 27, 2016, 11:17:29 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: CPU usage
« Reply #9 on: March 27, 2016, 12:07:13 pm »
It really must be a config error somewhere, because I also tried deb-jessie, now in a vbox and that also neatly idles out.
Specialize a type, not a var.

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: CPU usage
« Reply #10 on: March 27, 2016, 04:40:24 pm »
Is there any specific, non-standard software that you always install on all your linux boxes?
Specialize a type, not a var.

Rickmeister

  • New Member
  • *
  • Posts: 21
Re: CPU usage
« Reply #11 on: March 27, 2016, 06:34:22 pm »
The Fedora installation is fresh, the only extra packages installed are fpc 3.0 and Lazarus, didn't touch anything else, no OS config files altered. Will try to get some more testing done later this evening, but so far the IDE is unusable under linux for me  :(

When running idle I have managed to get it down to ~15% cpu usage  on the Toshiba laptop, but as soon as I minimize the IDE the cpu usage skyrockets??
« Last Edit: March 27, 2016, 06:38:09 pm by Rickmeister »

Rickmeister

  • New Member
  • *
  • Posts: 21
Re: CPU usage
« Reply #12 on: March 27, 2016, 08:38:47 pm »
Changed to Lazarus 1.4.4.

An image is worth a tousand words, they say. Now it idles just fine on all linux boxes.

Rickmeister

  • New Member
  • *
  • Posts: 21
Re: CPU usage
« Reply #13 on: March 28, 2016, 01:01:38 pm »
Removed the Fedora installation with Lazarus 1.4.4 and installed 1.6 on the same OS (Fedora) and with an empty project Lazarus never uses less then 35% cpu power, and the strange thing is that the cpu usage spikes after minimizing/hiding the IDE. If I, by using the tools menu, select "rescan fpc source directory" the cpu usage goes down, but after a couple of minutes it's back up at 50% or more, with the IDE hidden and idling.

No options are changed, it's a fresh install of Fedora, fpc3.0 and Lazarus 1.6, tried on both HP Elitebook8460p (low end) and Toshiba Kira

*edit* screenshot from HP EliteBook, running fresh install of Fedora, FPC3.0, Lazarus 1.6 64bit, and Google Chrome installed. Can add that I've tried both 32 and 64 bit with same result
« Last Edit: March 28, 2016, 01:06:06 pm by Rickmeister »

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: CPU usage
« Reply #14 on: March 28, 2016, 02:18:15 pm »
Lazarus trunk/fpc 3.0.0 on Fedora Core 18 (32-bit) (VM  hosted on Win7-64).
Lazarus idle hardly gets > 1,5% CPU (minimized or not).

Bart

 

TinyPortal © 2005-2018