Lazarus
Installation => Linux => Topic started by: Rickmeister 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.
-
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.
-
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.
-
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
-
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.
-
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
-
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.
-
Out-of-the-box-Lazarus or any third-party packages installed?
-
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
-
It really must be a config error somewhere, because I also tried deb-jessie, now in a vbox and that also neatly idles out.
-
Is there any specific, non-standard software that you always install on all your linux boxes?
-
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??
-
Changed to Lazarus 1.4.4.
An image is worth a tousand words, they say. Now it idles just fine on all linux boxes.
-
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
-
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
-
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
Doesn't really help me alot %) I've resigned and installed 1.4.4 as 1.6 is not usable on any of my linux boxes. Not running VM linux installations, not sure if that should make any difference. Tested on both 64 and 32 bit images and with different hardware, and 32 and 64 bit Lazarus builds. Nothing helps, the IDE is sluggish, doesn't respond and crashes frequently
-
Just to clarify:
All Lazarus 1.6 installations where 'out-of-the-box' on fresh linux installations, only the bare minimum installed. I've tried with both the prebuilt rpms and compiled Lazarus from source. Tested on hardware as described in an above post, with both Fedora23 and Ubuntu Mate 15.10 - all yields the same result - an unusable IDE that eats cpu-power (and battery time). I have no clue what may cause this as I'm not a Linux guru. Haven't touched any settings inside the IDE, the only thing I've done is loaded it up and left it to idle with the default project. Never seen it drop below 35% cpu usage.
-
I saw all of your tests were performed on laptop computers, have you tried to do the same installation on desktop pcs? You mentioned that the issue won't happen on the same machines if they use Win7. So I guess there might be some kind of bug if Lazarus + Linux + laptop combination. You know, laptop's processors are build to better power save, perhaps that power saving feature is the cause of this issue.
Is here anybody use Lazarus on Linux laptop?
-
Fedora Core 18 VM on Win7-64 on a laptop.
Bart
-
By using Linux VM on Windows machine, it means the power management system is not handled directly by Linux.
If you google using keywords: "ubuntu power management issue", you will see there were several reports of similar issue.
-
I saw all of your tests were performed on laptop computers, have you tried to do the same installation on desktop pcs? You mentioned that the issue won't happen on the same machines if they use Win7. So I guess there might be some kind of bug if Lazarus + Linux + laptop combination. You know, laptop's processors are build to better power save, perhaps that power saving feature is the cause of this issue.
Is here anybody use Lazarus on Linux laptop?
Maybe it isn't just my fault then :P I've only got laptops, mostly because I travel alot and bringing a stationary computer along with you is just to much hazzle :)
But something must have happened between 1.4.4 and 1.6, the earlier Lazarus versions doesn't have this issue
-
There could be Linux kernel and power management issue. I think they may ignore you, but for the sake of humanity, you should post a bug report on linux forum. 8-)
-
hello,
my configuration (desktop) with 0 % CPU usage for Ubuntu 14.04 LTS 64 bits Lazarus 1.6 was :
Processor : 4x Intel(R) Core(TM)2 Quad CPU Q8300 @ 2.50GHz
Memory : 6111MB (2304MB used)
Graphic card : Nvidia GeForce GT 220
Resolution : 1920x1080 pixels
and you Rickmeister, what are your configurations for your laptops ?
-
There are many who use it on laptop. So power consumption has always been important.
You should try to find out what uses the cpu. Run it in gdb and break a few times, and see what it does. Or run it in valgrind (slow), or any profiler you know.
-
There could be Linux kernel and power management issue. I think they may ignore you, but for the sake of humanity, you should post a bug report on linux forum. 8-)
No other applications has this problem, so my guess is that it's a Lazarus bug. Eclipse Luna uses less CPU power, and I've always thought of that as a CPU hog.
-
hello,
my configuration (desktop) with 0 % CPU usage for Ubuntu 14.04 LTS 64 bits Lazarus 1.6 was :
Processor : 4x Intel(R) Core(TM)2 Quad CPU Q8300 @ 2.50GHz
Memory : 6111MB (2304MB used)
Graphic card : Nvidia GeForce GT 220
Resolution : 1920x1080 pixels
and you Rickmeister, what are your configurations for your laptops ?
HP EliteBook 8460p
Processor: Intel Core i5-2520M @ 2.50Ghz X 4
Memory: 3.8 Gig
Graphics card: Intel Sandybridge Mobile
OS: Fedora 23 64bit
Resolution: 1366 x 768
Not a monster by far, but it should be well enough power to run Lazarus
-
I've got both core i3-4200u and core i7-5500u laptops, both running manjaro linux 64-bit and in both lazarus are running fine with near 0% cpu. I even got one running under virtualbox (manjaro lxqt 64-bit), which also consumes near 0% cpu.
-
Played around with the lazrus 1.6 source, and when deleting this line in ide/fpmake.pp I finally found it:
I'm now satisfied with the IDE. It now runs fine, no locks-ups and the CPU usage is down to 0% when idling. Took me approx 20 rebuilds to get this :D
[edit] Spelling..... *sigh*
-
The same problem to me with: Lazarus 1.8.2 QT5 VERSION + (Ubuntu Mate 18.04 64 bit OR Linux Mint Mate 14 64 bit)
4 cores, one of them is at 100%, working with Lazarus IDE or running the compiled program alone!
The same executable file, moved to a Manjaro 18 64 bit, is working fine, 0.1% CPU only.
I uninstalled the Lazarus QT5 version and replace it with GTK2 version then clean and rebuild the project.
Tadaaaaa, the GTK2 is not eating 100% CPU anymore on Ubuntu Mate 18.04 !
Any ideas?
Thanks
Teo
-
Any ideas?
Use the standard GTK2 Lazarus? You can build Qt applications with it, if you want. See the wiki for details.