/srv/irclogs.ubuntu.com/2014/11/07/#ubuntu-gnome.txt

mgedminlaptop died a swappy death07:50
mgedminI upgraded two laptops to ubuntu gnome 14.10 and both do this about once a week :(07:51
mgedminboth run without swap because both have SSDs07:51
mgedminone has 8 gigs of ram, the other has 2 gigs07:51
darkxstmgedmin, I am confused how can a laptop die a swappy death when its not using swap?07:53
darkxstyou shouldnt have any problems with 8gb and no swap, 2gb might be problematic07:54
mgedminHDD LED on, computer nonresponsive (caps lock takes 60 seconds between keypress and led being on), mouse movement limited to 1/2px per minute07:54
mgedminthe onset is instant07:54
mgedminwaiting 20 seconds for some help (OOM killer?) doesn't help07:54
mgedminI don't _know_ that it was OOM07:54
darkxstits booting into shell?07:55
mgedminwhat do you mean?07:55
darkxstlike you are in gnome-shell and its doing this?07:55
mgedminyes07:55
mgedminI'm looking at atop logs07:56
darkxstis it really using swap though, or something else flogging drives07:56
darkxstmgedmin, or iotop07:56
mgedminit shows the disk being busy between 92 and 102%, doing mostly reads at 230 MB/s07:56
mgedminthis is forensic study now, I had to alt-sysrq-s,u,b reboot07:56
mgedminatop writes a snapshot of the system state every 10 minutes to a binary log file07:57
mgedminwhen the laptop became non-responsive gnome-shell's clock said 09:1407:57
mgedminI turned it off at about 09:3707:57
mgedminwell, I hit Alt-SysRq-K at that point to kill X07:58
mgedminthe S,U,B was at 09:3907:58
mgedminwhich is lucky, since atop wrote its last system snapshot at 09:3807:58
darkxstI hit a similar issue caused by media-scanner, but you shouldnt have that installed on Ubuntu-GNOME unless you also have ubuntu desktop installed07:58
mgedminlet's look at the 09:28 snapshot: I have 4.1G in cache, 112M free, 0 swap, sda is busy 102%, reading at 250 MB/s07:59
darkxstcan you ssh in and find what is causing the reads?07:59
mgedminprocesses reading from disk include: skype (8%), VBoxHeadless (7%), chromium-browser (7%) kswapd0 (6%)07:59
mgedminbasically everything is reading from disk07:59
mgedminwhoa, the page scan rate is 1603e608:00
mgedminat 09:08:32 it was "PAG |  scan  76411 |"08:00
mgedmin10 minutes later it was 2744e508:00
mgedminten minutes later it was 1603e608:00
mgedminand ten minutes later it was 1630e608:01
mgedminmy hypothesis: the kernel decides it needs to free some ram, so it starts discarding mapped executable pages08:01
mgedminand then all the running apps have to read them back in all the time08:01
mgedminwhich makes for 250 MB/s read rate and processes like Skype reading 13.5GB of data in a 10 minute window08:02
mgedminif I had some swap, maybe the kernel would push some dirty pages out08:02
darkxstmgedmin, not too sure but you could try an older kernel and see if that helps08:02
darkxstI have to cook dinner, then head out for the night, ping me tomorrow08:03
mgedminI want a system monitor applet in my gnome-shell08:11
mgedminone that shows the amount of free memory I have and doesn't block the main gnome-shell thread08:12
darkxstmgedmin, my one is largely unmaintained now, and it does block unfortunately08:41
darkxststupid libgtop doesn't have an async api08:41
mgedmindoes gjs support threads?08:41
darkxstnope08:41
darkxstand it likely never will08:42
mgedminjay08:42
mgedminI used to use https://extensions.gnome.org/extension/120/system-monitor/ until I discovered that little gotcha with network filesystems going away08:42
darkxstmost of the real GNOME libraries have async api's though08:42
mgedminI don't think the kernel has an async version of statvfs, does it?08:43
darkxstheh, I just disabled network filesystems, since it was causing blocking on stale mounts08:43
darkxstwell not just, ages ago08:43
* mgedmin files https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1390358 and has no hopes of this being looked at seriously08:49
ubot5Ubuntu bug 1390358 in linux (Ubuntu) "Computer unusable under memory pressure with no swap space" [Undecided,Confirmed]08:49
darkxstmgedmin, did this just start happening? or you only just upgraded to 14.1008:53
mgedminbefore 14.10 it was "basically never" on my main laptop08:55
mgedminafter 14.10 it's about once a week08:55
mgedminon my second laptop (2gigs of ram, a thinkpad x200, used as a media center at home) actually the same08:55
mgedminit would run out of ram about once a week (gnome-shell memleak in 12.04), but I could recover with alt-f2 r08:56
mgedminhey, it's now running 14.04, not 14.1008:56
mgedminand when it freezes this way I can't recover with alt-f2 r, I have to alt-sysrq-s,u,b08:56
mgedminso hm08:56
darkxstits pretty damn critical if you can't even switch to a VT08:57
mgedminthe media laptop typically freezes when my wife opens a youtube video08:57
mgedminI can switch to a vt, if I'm patient enough08:57
mgedminI can't log in, because  login it times out after 60 seconds without giving me a chance to enter my password08:57
mgedminonce, just once, I lived through this kind of disk storm08:58
mgedminvmstat was funny to look at08:58
darkxstmgedmin, i bet, anyway Im out now08:59
=== ljcr is now known as dsfa
=== dsfa is now known as ljcr

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!