When compiled with systemd USE flag, qt-creator use journald for output. Running a project, poll fd on events=POLLIN in infinite loop, causing one cpu core to 100% . Recompiling qt-creator without "systemd" solves the problem. Reproducible: Always Steps to Reproduce: 1.USE="systemd" emerge qt-creator 2.run qt-creator 3.open a project 4.wait 1 min, qt-creator eat CPU
Is systemd-journald running?
yes it's running systemctl status systemd-journald ● systemd-journald.service - Journal Service Loaded: loaded (/usr/lib64/systemd/system/systemd-journald.service; static; vendor preset: enabled) Active: active (running) since mer. 2015-04-29 17:25:04 CEST; 10min ago Docs: man:systemd-journald.service(8) man:journald.conf(5) Main PID: 110 (systemd-journal) Status: "Processing requests..." CGroup: /system.slice/systemd-journald.service └─110 /usr/lib/systemd/systemd-journald avril 29 17:25:04 gentoocyril systemd-journal[110]: Runtime journal is using 8.0M (max allowed 396.1M, trying to leave 594.1M free of 3.8G available → current limit 396.1M). avril 29 17:25:04 gentoocyril systemd-journal[110]: Runtime journal is using 8.0M (max allowed 396.1M, trying to leave 594.1M free of 3.8G available → current limit 396.1M). avril 29 17:25:04 gentoocyril systemd-journal[110]: Journal started avril 29 17:25:04 gentoocyril systemd-journal[110]: Missed 85 kernel messages avril 29 17:25:04 gentoocyril systemd-journal[110]: Permanent journal is using 584.1M (max allowed 4.0G, trying to leave 4.0G free of 65.6G available → current limit 4.0G). avril 29 17:25:04 gentoocyril systemd-journal[110]: Time spent on flushing to /var is 178.270ms for 768 entries. Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable
Well, this needs to go upstream as I don't think it's gentoo-specific.
upstream patch available: https://bugreports.qt.io/browse/QTCREATORBUG-14356 https://codereview.qt-project.org/#/c/115484/ works for me...
I know, that patch is in 3.5.0 which I will bump asap.