/srv/irclogs.ubuntu.com/2015/11/17/#ubuntu-kernel.txt

=== Elimin8r is now known as Elimin8er
=== lfaraone_ is now known as lfaraone
lesshastehi.. is there any way to enable an OOM killer on ubuntu?08:52
lesshasteIt is very annoying to have to turn the PC off at the wall08:52
hyperairit's enabled by default afaik08:53
lesshastehyperair, it really doesn't seem to be in practice08:53
hyperairyou probably have too much swap08:54
hyperairit hangs, right?08:54
lesshastehyperair, ah.. 08:54
hyperairbasically it needs time to fill up the swap, and thrash about for a bit08:54
lesshasteit is thrashing exactly08:54
hyperaironly when it can't allocate more memory does it trigger OOM08:54
hyperairas long as there's more swap, it can allocate more memory08:54
hyperairand thrash some more08:54
lesshasteoh.. I want it to kill the process when it is thrashing which I see is a different problem08:54
hyperairyeah that's a different problem08:54
lesshastebecause the thrashing is unkillable in effect08:54
hyperairi think you can play with overcommit ratio or something08:54
hyperairwell08:55
lesshasteas I can't even get to a terminal to type "kill"08:55
hyperairdepending on the size of your swap, you can actually just wait it out08:55
hyperairi've let a thrashing machine sit for 30 minutes, and it fixed itself08:55
lesshastehyperair,  I think that's potentially forever08:55
hyperairmost of the time i don't have the patience and cut the power though08:55
hyperairor start hammering the sysrq keys08:55
hyperairah08:55
lesshastehyperair, if I have a process which takes 1 hour normally and starts thrashing08:55
hyperairAH08:55
hyperairyes08:55
lesshasteI could be waiting for years08:55
hyperairthere's a sysrq key that triggers the OOM killer08:55
lesshasteoh!08:55
hyperairhttps://en.wikipedia.org/wiki/Magic_SysRq_key08:56
hyperairalt+sysrq+f08:56
hyperairyou need to enable it though08:56
lesshasteinteresting08:56
hyperairsee /etc/sysctl.d/10-magic-sysrq.conf08:56
lesshastehow do you get sysrq? It is in small letters on the prt sc key08:56
hyperairyeah08:56
lesshasteoh I need to enable it08:57
hyperairstart by trying to get hitting alt+sysrq+h. i think that dumps a help message into dmesg08:57
lesshasteit tried to take a screenshot :)08:57
lesshastelet me try  alt+shift08:57
hyperairlol08:57
hyperairi actually use the prtsc key08:57
hyperairalt+prtsc+whatever08:57
hyperairi disabled the screenshot taking though08:58
lesshasteit just tries to take a screenshot08:58
hyperairyou may or may not need the fn key on a laptop08:58
lesshasteit's a desktop08:59
hyperairright08:59
lesshaste[  823.370296] SysRq : This sysrq operation is disabled.08:59
hyperairhah08:59
lesshasteso that's something :)08:59
hyperairthat's something, yes08:59
hyperairsee the file i mentioned09:00
hyperairit's disabled by default because an attacker trying his/her luck might get lucky and kill the screensaver process without killing X09:00
lesshasteit says kernel.sysrq = 17609:01
lesshastewhich should be allow reboot/poweroff, enable remount read-only, enable sync command09:01
lesshastehow do you enable it if not in that file?09:01
hyperairsysctl kernel.sysrq=whatever09:02
hyperairas root09:02
lesshastehyperair, so what role that does file play?09:02
lesshastedoes that09:02
hyperairdefault sysctl setting09:02
lesshasteI mean /etc/sysctl.d/10-magic-sysrq.conf09:03
hyperairfor making it persistent across reboots09:03
lesshastewhat I mean is.. why isn't it enabled given that it is currentluy 17609:03
hyperairsysctl changes kernel parameters. that usually lasts until you reboot09:03
hyperairoh09:03
hyperairwell09:03
hyperairi dunno09:03
hyperairwhat does "sysctl kernel.sysrq" say?09:03
lesshasteI should say I have an unmodified ubuntu install 09:03
lesshastesysctl kernel.sysrq09:04
lesshastekernel.sysrq = 17609:04
hyperairi think it just allows a certain number of functions09:04
lesshasteoh i see09:04
hyperairhere's mine: [3277566.690317] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) force-fb(V) show-blocked-tasks(w) dump-ftrace-buffe09:04
hyperairr(z)09:04
lesshastewhat do you get from sysctl kernel.sysrq ?09:04
hyperair109:05
lesshasteok done09:05
lesshasteI really need a way to do alt-sys rq+h without it taking a screenshot!09:07
lesshasteaha!09:08
lesshastealg gr+prt sc+h does it09:08
lesshastealt gr I mean09:08
lesshaste[ 1540.531549] SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) force-fb(V) show-blocked-tasks(w) dump-ftrace-buffer(z) 09:08
lesshastesuccess09:08
lesshasteso what one would kill the task that is thrashing?09:09
lesshastewhich one09:09
lesshastehyperair, thanks for you help09:18
Eduard_MunteanuAre the kernel Git repos hosted over https somewhere?12:48
apwEduard_Munteanu, checking13:14
apwEduard_Munteanu, yes, https:// is one of the options: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial13:15
Eduard_Munteanuapw, thanks13:18
Eduard_MunteanuAny reason kernel.ubuntu.org doesn't support it, btw?13:18
* Eduard_Munteanu should file a bug perhaps13:18
apwEduard_Munteanu, likely because the machine was old and slow13:23
apwEduard_Munteanu, the launchpad repos are going to become the official ones before long in all likelyhood13:23
Eduard_MunteanuAh, nice.13:24
apwas that infrastructure is much more load tollerant13:24
apwEduard_Munteanu, for xily and xenial LP is alreday master, and all others are sync'd up to LP every 15m or so13:31
Eduard_MunteanuCool.13:32
=== alai888 is now known as alai
=== caribou_ is now known as caribou
=== dkessel_ is now known as dkessel
=== jdstrand_ is now known as jdstrand

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