Summary: | Plasmashell polling on zero timeout | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Optional <hsr.desktop> |
Component: | DataEngines | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | major | CC: | kde, notmart, notuxius |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
sudo health-check -p plasmashell
perf perf.data.old perf.data file from "sudo perf record -F 100 -g --pid 3571" command |
A poll which timesout immediately isn't necessarily a problem, that just means we're trying to wait for a file which has data ready; The above attachment doesn't really tell me anything, if it is using CPU somewhere, I don't have a clue where. Can you try something like: perf record -F 100 -g plasmashell and reproduce the issue. also make sure to quit plasma properly with kquitapp5 plasmashell to flush recordings. Hey, thanks for your reply. All I know is that my operating system is lagging very often. It hangs every 10 seconds for 3-4 seconds which is annoying. And whenever there is a lag, the digital clock's second counter stops, laptop's fan revs to high speed, there is network disconnection and I often don't see what I type. All of this restores to normal after the lag subsides but this, as I said, happens very often on a regular basis. I tried to narrow down the issue with cpustat, fnotifystat, forkstat and health-check tools and found plasmashell as the offender, as also evident from poll lines. Plasmashell is very busy and spinning on zero timeout. Regrading what you asked, I closed plasma with the said command and restarted it by inputting just plasmashell and then ran your command. If I understand correctly your perf command is to collect stats when the issue reproduces but I cannot reproduce the issue by myself, it happens by itself. And a new problem appeared after running your command. A pop-up with title kdeconnectd stating following error: "Unable to save bookmarks in /home/sanguine/.local/share/user-places.xbel. Reported error was: Existing file /home/sanguine/.local/share/user-places.xbel is not writable. This error message will only be shown once. The cause of the error needs to be fixed as quickly as possible, which is most likely a full hard drive." Following this error I'm unable to open Dolphin file browser and hence unable to attach perf.data file Created attachment 101806 [details]
perf
perf
Created attachment 101807 [details]
perf.data.old
perf.data.old
thanks Current perf recordings have no debug symbols. Marking as needs info till we get the new set. (ping me on IRC again sometime, hopefully I'll be around) Debug symbols installed, recording perf data. Will be uploaded shortly Created attachment 101914 [details]
perf.data file from "sudo perf record -F 100 -g --pid 3571" command
sudo perf record -F 100 -g --pid 3571
Data uploaded (In reply to Optional from comment #2) > kdeconnectd stating following error: > "Unable to save bookmarks in /home/sanguine/.local/share/user-places.xbel. > Reported error was: Existing file > /home/sanguine/.local/share/user-places.xbel is not writable. This error most likely you tried to launch dolphin (or any app in which you used the file open dialog) as root, which is unconnected with this issue, and explicitly not supported to me perf report complains this trace doesn't have samples @Marco I don't launch any app with root. Launching Dolphin gave that error which is unrelated to bug reported and was later solved by quitting and relaunching plasmashell @Marco I ran following commands to fetch data: kquitapp5 plasmashell plasmashell sudo perf record -F 100 -g --pid "pid of plasmashell" Still if there is no traces then maybe the commands suggested are wrong. I did what I was asked to do Does running "perf report -g plasmashell" work on your system? If not, it definitely won't here. When running I get: WARNING: The perf.data file's data size field is 0 which is unexpected. Was the 'perf record' command properly terminated? Is this bug still relevant? Can you reproduce it currently? Nothing useful in the bug report. Hopefully has been fixed with other changes in the meantime |
Created attachment 101798 [details] sudo health-check -p plasmashell Very likely due to plasmashell, the OS hangs/responds very slowly in between while typing or switching tasks or while doing any work. During this hang/slow behaviour, I notice the fan revving in high speed, delay in typing, network disconnection and stuck digital clock seconds counter which restores to normal after the lag subsides but occurs every 10 seconds or so lasting for about 3-4 seconds. Sysinfo for 'TuxStick': Running inside KDE Plasma 5.7.5 on Ubuntu 16.10 (Yakkety Yak) powered by Linux 4.8.0-26-generic, CPU: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz at 2099/2700 MHz, RAM: 7443/7902 MB, Storage: 26/57 GB, 283 procs, 65.76h up health-check output attached