[05:25] Hello, I am running Kubuntu 16.10 on a Dell laptop. For some reason, 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. Is this [05:25] a kernel issue? How can I determine what is causing this? [11:33] i have a some problem with intel 7265 wireless adapter on my laptop. how i can solve this? [11:33] hello! [11:35] i use linux mint 18. kernel 4.4.0-45 [11:42] by asking in a mint channel ? [12:41] Hello, I am running Kubuntu 16.10 on a Dell laptop. For some reason, 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. Is this [12:41] a kernel issue? How can I determine what is causing this? [12:57] could be a kernel issue, or a display driver issue, or ... some *stat commands are good for those kinds of things [12:59] him-cesjf, i suggest usign forkstat and fnotifystat to see what's up [12:59] apw: Hi, could you please guide me on how to narrow down the exact cause? [12:59] 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 [12:59] cking: Okay, I'll try [13:00] him-cesjf, and maybe cpustat too [13:01] cking, thanks [13:01] Installing forkstat [13:21] cking: cpustat log - http://paste.ubuntu.com/23383540/ [13:21] cking: fnotifystat log - http://paste.ubuntu.com/23383534/ [13:21] cking: forstat log - https://paste.ubuntu.com/23383516/ [13:21] forkstat* [13:22] plasmashell is very busy [13:22] you can get more stats on what it is doing using healthcheck, e.g. sudo health-check -p plasmashell [13:23] nothing from other two log files? [13:23] Sure [13:23] him-cesjf, lets drill down on the top offender first [13:23] http://kernel.ubuntu.com/~cking/health-check - sudo apt-get install health-check [13:23] Sure [13:24] cking, but I'm not going to be around this afternoon, so use that tool and past the details in this channel and I'll pick it up from there hopefully tomorrow [13:24] him-cesjf, ^ [13:27] Oh, um okay. here is health-check file - http://paste.ubuntu.com/23383576/ [13:27] cking: ^ [13:29] him-cesjf, seems to be spinning on a poll(), I'd file a bug against that application and put that information above in the bug report [13:30] cking: Okay, filing bug report. Thanks for pointing it out! [13:30] 28967 plasmashell poll 4589.4564 112804 0 0.0 sec 0.0 sec 0.0 sec [13:30] Yes, noticed [13:30] this shows that it's spinning on a zero timeout poll and that's bad :-( [13:30] Anything else possible other than filing bug report to solve it? [13:31] ouch :) [13:35] cking: Any other possible cause? [13:43] him-cesjf, nothing else looks like the culprit to me [13:47] Thanks [14:11] hey, I've reported https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1636847 [14:11] Ubuntu bug 1636847 in linux (Ubuntu) "unexpectedly large memory usage of mounted snaps" [Undecided,Confirmed] [14:11] it would be great if someone could look at that and see if the bug is in squashfs itself or in the particular config we use [14:14] zyga, there is some pretty suspicious sources of memory "use" calculations in that [14:15] zyga, anyhow thanks for the heads up will find someone to look at it [14:15] apw: can you be more specific? [14:15] apw: memory does quickly run out though, in simple real-world tests oom killer jumps in just a few mounts in [14:15] apw: (after mounting empty snaps) [14:16] apw: and my numbes agree with slabtop [14:16] total slabs allocated doesn't tell us how much of them is in use [14:16] just how much memory is in them currently [14:16] apw: mounting 5 empty snaps crashes the box on 1GB VM [14:17] apw: in any case, I'd love feedback on how to improve this [14:17] apw: the relevant code is https://github.com/zyga/mounted-fs-memory-checker/blob/master/analyze.py#L19 [14:17] yep [14:17] cking: apw: Filed bug report - https://bugs.launchpad.net/ubuntu/+source/plasma-workspace/+bug/1636869 https://bugs.kde.org/show_bug.cgi?id=371712 [14:17] Ubuntu bug 1636869 in plasma-workspace (Ubuntu) "Plasmashell polling on zero timeout" [Undecided,New] [14:17] KDE bug 371712 in DataEngines "Plasmashell polling on zero timeout" [Major,Unconfirmed] [14:18] do you have a nice emppyt snap ? [14:18] apw: and https://github.com/zyga/mounted-fs-memory-checker/blob/master/analyze.py#L48 [14:18] apw: everything is in that repo [14:18] apw: just look around [14:18] apw: I also collected raw traces from various kernels and distros [14:18] apw: fork that repo and run the overview script, it just chruns the datq [14:18] apw: fake payload is in https://github.com/zyga/mounted-fs-memory-checker/tree/master/payload [14:19] zyga, won't be me, will get someone to look at it though [14:19] apw: if you want to see the numbers this is what I get from the script now: http://paste.ubuntu.com/23383523/ [14:19] apw: thank you, noted [14:19] apw: and do let them tell me if I counted this incorrectly [14:20] + ./analyze.py ubuntu 16.04 4.4.0-45-generic 4 size-1m.squashfs.xz.heavy [14:20] zyga, what does the 4 mean [14:20] apw: for core system [14:21] apw: four* [14:22] zyga, and you are just mounting it, right ? or are you looking at the contents [14:22] apw: just mounting [14:22] apw: the contents is a 0 sized file [14:22] apw: or in this case, a 1mb file [14:22] apw: (of urandom data) [14:22] apw: you can run those traces with the same file in vfat and ext4 for comparison [14:23] apw: there memory usage doesn't change at all (nearly) [14:23] squashfs, that well tested filesystem :< [14:23] apw: we're the only distro that uses this set of kernel config options [14:24] apw: my traces include kernel config from each system [14:24] snaps are literally about the only thing which uses squashfs [14:24] apw: it is worth looking into two things IMHO: 1) why are single cpu systems using so much more memory as compared to a four-cpu system [14:25] apw: and is the multi-threaded, per-cpu decompressor worth it (other distros use one single threaded decompressor) [14:26] rtg, apw any chance you will have 4.9 rc rebased ontop of unstable in the coming weeks ? [14:26] zyga, yeah, well i can intuit why that might trigger that behavior, i assume we are hitting pathalogical memory allocator behaviour by our memory patterns [14:26] manjo, some chance [14:26] zyga, and the majority on those pages have just one teensy bit of useful allocation in them [14:26] apw: all of the memory is in kmalloc-4096 slab [14:26] zyga, can you point me at the config delta, as logically i should give you a test kernel with that changed to confirm it is tha [14:26] tthat [14:27] rtg, before Nov 11 ? [14:28] apw: well, not on one line but just grep for squashfs in https://github.com/zyga/mounted-fs-memory-checker/tree/master/traces/ubuntu/16.10/4.8.0-26-generic/ncpus-1 and https://github.com/zyga/mounted-fs-memory-checker/blob/master/traces/fedora/24/4.7.9-200.fc24.x86_64/ncpus-1/kernel.config [14:28] apw: I can do that if you want to but I'd rather have someone investigate deeer and just run those tests again [14:28] deeper* [14:29] zyga, so there is no deadline to make any improvement here ... [14:29] apw: well, as soon as it starts to explode on us :/ [14:29] apw: I think we don't want 130MB per snap [14:29] on small sytems [14:29] right so making it go away is more important than why it is [14:29] yes [14:29] broken, so if we switch the config you test that [14:29] and if it works we ship that, and find out _why_ later [14:30] worth a try [14:31] CONFIG_SQUASHFS_DECOMP_SINGLE [14:31] i assume it is those ones you want flipped here [14:32] zyga, also what release are you testing in, so i make a test kernel in the right version [14:32] apw: this is all focused on snappy so currently that's a xenial kernel [14:32] apw: correct [14:32] apw: that seems to be the most plausible one [14:33] i'll flip that _SINGLE and get you some kernels, can you test amd64 i assume so [14:33] zyga, ^ [14:33] I sure can, thanks [14:39] manjo, 4.9 won't be released before Nov 11 [14:40] rtg, yes I know it is still rc 2 [15:09] zyga, ok ... people.canonical.com/~apw/lp1636847-xenial/ has test kerenls with that flipped over ... [15:10] zyga, ping me when you know if that is better [15:10] apw: thanks, downloading now [16:13] apw: just ran the numbers again, looking much better [16:13] apw: the 131 MB/snap is down to 4 [16:15] apw: data pushed back to the repo [16:17] apw: Curious about polling in terms of software. I know about polling in microprocessor/hardware where it polls to check the status of a device, like in printer. What does polling mean in software, like how we noticed in plasmashell few minutes ago? [16:19] him-cesjf, the poll call is a way to avoid active polling, whne done correct [16:19] zyga, ok, so i think we switch that up in the next sru kernel, and i'll have one of my engineers look at why it is broken in that other seemingly superiour mode [16:20] zyga, could you report tht in the bug as well for me, helps with sru'ing it [16:26] apw: I didn't follow why polling was done for plasmashell and what active polling means for it [16:26] Sorry if I am bothering with basic questions [16:26] apw: with pleaseure, thank you for the kernel [16:27] well poll is normally used for waiting for events from like the mouse and the like, well the input in general, and respses from teh display server, this should be an waiting poll, but if you do it wrong it will return immediatly to tell you did it wrong for instance and then you can get into a cpu consuming loop [16:29] Yes, but polling is usually for a device/hardware from what I kow taking classes in microprocessor in electronics, why plasmashell requires polling is what I am trying to understand [16:29] know from* [16:31] it is concept not related to hardware specifiically [16:31] though in general unpredictable events are from hardware/users etc [16:31] in this case though the name is a missnoma, it is used to avoild polling on files [16:32] it specifically is used to "wait for anything to happen to any one of this set of file descriptors" [16:32] and those usually are connected to your devices and display server in this kind of context [16:33] it should sit their quietly and do nothing until something happens, but it showing up in the stats [16:33] imply it is not... and something is wrong in that application [16:34] apw: done [17:30] apw: Still around? [17:30] vaugly [17:32] https://bugs.kde.org/show_bug.cgi?id=371712 someone replied and thinks the lag due to plasmashell is not a problem [17:32] KDE bug 371712 in DataEngines "Plasmashell polling on zero timeout" [Major,Needsinfo: waitingforinfo] [17:33] Maybe I didn't explain the problem well? [17:38] apw^ [17:40] it sounds like they ahve suggested a reasonable course of action [17:40] Umokay [17:47] apw: Could you give me a one line explaination of this line so that I can explain the same in reply. I am not good in interpretting it? [17:47] 28967 plasmashell poll 4589.4564 112804 0 0.0 sec 0.0 sec 0.0 sec [17:47] just shove it in verbatim, they will know what it means [17:47] if not they should not have asked for it [17:51] Sure [21:18] hello everyone, is there a bug where an application loading the CPU causes a full system freeze currently out for kernel 4.4.0-45? I can't seem to find one