/srv/irclogs.ubuntu.com/2011/11/07/#ubuntu-kernel.txt

=== harsh is now known as harshpb
=== jussio1 is now known as jussi
ppisatimorning09:00
ckingyawn09:31
* apw yawns09:41
lilsteviecmorning09:42
lilstevie-c09:42
Q-FUNKin Oneiric, I regularly get notices from various CLI and GNOME apps that memory forking failed. I have never seen this until now. What causes this? To answer an obvious question, I indeed have a (large enough) swap partition.10:03
apwQ-FUNK, what is the exact text of the message10:04
apwas memory forking really doesn't make any sense10:04
Q-FUNKfork epäonnistui: Muistin varaaminen ei onnistu10:07
Q-FUNK(fork failed: memory allocation failed)10:08
Q-FUNKthat's from CLI10:08
Q-FUNKI see a similar message from gnome-shell whenever starting GUI apps from it, too.10:08
apwok so some memory pool or other was depleted at the time of the fork.  this may not be a general pool of course10:09
apwwas there anything notable at the bottom of the dmesg at the same time10:09
Q-FUNKnothing malloc related.10:10
Q-FUNKin fact, the newest dmesg entry is from about 30 minutes ago and not memory related at all.10:12
apwa tricky one then, as ENOMEM has any number of actual meanings not all even related to memory (such are the vaguaries of error codes)10:12
apwis this 32 or 64 bit10:12
apwit isn't a general issue for everyone as none of my oneiric installs are seeing it10:13
Q-FUNK32-bit.  686 centrino10:13
Q-FUNKit could be that my swap partition has gone awry but since nobody ever got around inveting any fsck.swap, I wouldn't know.10:13
apwswap is empty once you reboot, it isn't persistant10:14
apw(deemed empty)10:14
apwbut you might check it is actually activated10:14
Q-FUNKthat says nothing about the sanity of the blocks within the swap partition.10:14
apwdefine sanity, the kernel should never assume the contents of any of them after reboot10:14
Q-FUNKSwap:          494        494          010:14
Q-FUNKwell, does the kernel at least perform a badblock check on it at reboot?10:15
apwnope, no bad block scans.  modern drives are assumed to remap blocks10:15
apwyou should however get errors in dmesg for disk realted failure10:16
Q-FUNKok10:17
apwis the failure persistant or transient10:17
Q-FUNKrandom.  mostly seems to happen whenever firefox has run into too many broke javascripts and started utilizing more than 60% of available memory.10:18
apwand you don't have to do anything for the next attempt to be successful ?10:18
Q-FUNKwhich attempt?10:18
Q-FUNKat doing what?10:19
apwyou do "something" and it fails, you do "something" again and it works?10:19
lilstevierunning what ever throws the error message10:19
apwor you do "something" and it fails, you take a machette to various programs, and you do "something" and it works10:19
Q-FUNKit doesn't work again until I have Quit Firefox, let it close itself down and reached 0% of resource consumptions.10:20
Q-FUNKthen, other applications are able to malloc again.10:20
apwso it could genuinly be an issue with firefox then10:21
apwcould we sub in say chromium for a few days to see if that is immune10:21
Q-FUNKpossibly.  then again, I wonder why the kernel would let firefox consume all the resources to the point of also filling the swap.10:22
apwwhy would the kernel not let you fill up all your resources with things you are running10:22
apwif you overcommit all of ram and all of swap on your system, it cannot do anything to help you10:22
apwhow much swap do you even have10:23
Q-FUNKit can TERM the offending app.10:23
apwin a serious memory crunch it would, but it takes the simpler10:23
apwand safer course and prevents you asking for more in your fork10:23
apwat least that way you get to chose which apps are surplus and kill those cleanly10:24
apwinstead of them going pop and you getting annoyed cause it loses something10:24
Q-FUNKgrsec was very good at this. if an app requests an insane amount of RAM, it would sigterm it.  if that didn't do the trick, it would sigkill it.10:24
apwthat this is new, that it "only" happens with firefox, and exiting firefox restores the world tends to lean to a problem with firefox leaking memory10:25
Q-FUNKwell, the thing is that a normal user wouldn't know what those messages mean or how to debug it.  here, I happen to know about 'ps' and 'top' enough to notice, but even then.10:25
lilsteviebut in your case it really isn't requesting an insane amount of ram, it is taking it over time :)10:25
apwand they would not be able to cope with apps dieing at random when they got big either10:25
lilstevieapw: my thoughts exactly10:25
apwthat your machine wasn't too small on natty and is on oneiric it says there is a bug somewhere10:26
apwthat exiting firefox helps means its less likely to be a kernel memory leak10:26
apwas those tend to just persist across exiting the app10:26
apwso i'd start by blaming firefox, and try and prove that is to blame10:26
apwsubbing in an equivalent app temporarily should tell us something i'd hope10:27
Q-FUNKit probably is.  firefox has never been a well-behaved app.10:27
apwthey would be very interested to know if they are broken though10:27
apwthey are pretty popular10:27
lilsteviejudging from what you said about it being after running too many broken javascripts, it is most likely in the javascript parser10:28
apwyeah, or indeed if the apparent brokenness of those is a side effect10:30
lilstevieyeah10:31
Q-FUNKwell, I simply notice that after firefox has popped too many alerts about runaway scripts, asking me if I want to intereupt them, its memory consuption goes to absurd extremes.10:33
Q-FUNKit apparently doesn't know about freeing the memory after stopping those runaway scripts.10:34
lilstevieso that could be part of the effect not the cause10:34
apwQ-FUNK, are these alerts new or more frequent since the upgrade10:35
Q-FUNKapw: they started happening since oneiric.10:43
apwso lets start with a bug against firefox10:44
Q-FUNKbefore that, the kernel never had any problem offering more memory to new applications, even though it sometimes resulted in furious drive spins because of heaving swaping.10:44
Q-FUNKi wonder if we could make apparmor TERM firefox gently when it exceeds a certain amount of memory usage, though.10:46
lifelessQ-FUNK: that would rather stop it being usable10:47
lifelessQ-FUNK: its not exactly svelt10:47
apwi personally would rather find new thing stopped, than existing things just dissappeared when i wasn't looking10:47
apwthe user experience is very poor if firefox just goes pop10:47
Q-FUNKit becomes unusuable after it exceeds a certain amount of memory usage anyhow. it becomes as slow as molasses.10:47
apwyes and you can click remember this specific page and the like, read whats there, make a decision to close it10:48
lifelessQ-FUNK: mine is up at 3G, still responsive10:48
apweither way its sick and needs a bug10:48
Q-FUNKright, except that stoping new apps doesn't tell anything useful to the user as to why new apps cannot be launched.10:48
apw3G for firefox, wtf10:48
apwand it dissappearing is better.  neither is good10:48
lifelessapw: yes, which is lean compared to chromium :)(10:49
apwand it is clearly broken papering over it isn't appropriate10:49
Q-FUNKI cannot use chromium. its resource consumption has become even worse than FF3 used to be.10:49
apwwell then even more of a reason to file a bug on it10:50
Q-FUNKFF4 and newer eventually became slightly better at resource consumptions, but the handling of broken content is still dumb.  it expects users to add items to an ever-growing blacklist, rather than have a sane policy of killing faulty content after a while and asking the user whether we should attempt to re-load.10:51
Q-FUNKI've already suggested changing that model to upstream.  never got any response.10:53
lilsteviebrowsers have been pretty bad lately10:53
apwfeature creap10:54
Q-FUNKinstead of waiting for content to go awry and request 100% of availble resource and then try to allocate more resources for a pop-up asking the user whether it should kill the bad content,10:54
Q-FUNKI suggested that it should promptly kill misbehaved content and then notify the user that this happened, offering to reload.10:55
lilsteviemy uptime is pretty low at the moment cause I just rebooted, and chrome is already using 490MB ram on 8 tabs10:55
Q-FUNKlilstevie: I'm not surprised. here, I keep chromium as a backup, in case firefox really becomes unusable, so that I at least have something to access online banking, but even then, I'm not putting my hopes too high.11:03
Q-FUNKmind you, I wouldn't entirely put the blame on browsers (at least not for recent firefox).  rather, the issue is all those sites with real-time content refresh and tons of javascript.11:04
Q-FUNKby the time you have 20 tabs, each trying to refresh the number of Facebook Likes for that page and the number of backtracks on every syndicated blog, in real-time, even the new and improved firefox slows to a crawl in no time.11:06
lilstevieheh I don't do that stuff11:15
lilstevieI have 2 self updating pages11:15
lilstevieuni email, and my domains webmail, powered by gmail11:16
ppisatiherton: O/ti-omap4 3.0.0.-1206-11 has been superseded by 3.0.0-1207-12, so according to the new workflow i should mark as "duplicate" the old tracking bug11:23
ppisatiherton: but does it apply even if 1206-11 is already in -proposed?11:23
hertonppisati: yes, we will just build the new package to replace the old one in -proposed11:24
ppisatiok11:24
njinHallo, what do you blame linux or xorg ? bug 881830 thanks13:35
ubot2Launchpad bug 881830 in linux "Track pad does not respond properly" [Undecided,Confirmed] https://launchpad.net/bugs/88183013:35
apwnjin, hard to say, likely as its an apple product its something stupidly complex and undocumented13:46
apwyou may be able to tell using input-events on the appropriate input channel13:46
apwif you see the 'wrong' clicks etc there then its kernel side13:46
apwbut being an apple touchpad, we may well not be able to do anything13:46
apwnjin, also do we know why they are running a random upstream kernel?13:48
njinapw, thanks is an ubuntu member using the macbook13:51
=== yofel_ is now known as yofel
* ogasawara back in 2015:02
hertonppisati: still around?17:12
ppisatiherton: yep17:22
hertonppisati: I was looking at the ti-omap4 (oneiric), does it need an abi bump on the new rebase?17:23
hertonppisati: on the latest rebase you did, from 1206.11 to 1207.1217:24
hertonppisati: as there was only the rebase, and the master oneiric tree didn't bump the abi from 13.21 to 13.22, I was expecting the ti-omap4 to not bump as well17:27
apw-       $(kmake) O=$(hdrdir) -j1 silentoldconfig prepare scripts17:30
apw+       $(kmake) HOSTCC=$(CROSS_COMPILE)gcc KBUILD_SCRIPTROOT=$(kbsr) O=$(hdrdir) -j1 silentoldconfig prepare scripts17:30
ppisatiherton: but it goes from Ubuntu-3.0.0-13.20 to -22 in my case17:37
ppisatiherton: the rebase i mean17:37
hertonppisati: well, I see it here only as a rebase between 13.21 to 13.22 (12.20 was the previous from these two): http://pastebin.ubuntu.com/731144/17:44
hertonppisati: do you get a abi mismatch or some like that while building after the rebase?17:47
herton(the diff from pastebin is the differences between origin/ti-omap4 and your ppisati ti-omap4 with commits removed so the diff is easier spotted)17:48
ppisatiherton: wait17:48
smosersmb`, you have any thoughts on a target for having bug 881076 fixed ?17:52
ubot2Launchpad bug 881076 in linux "precise kernels do not boot on ec2" [High,Triaged] https://launchpad.net/bugs/88107617:53
* tgardner -> lunch18:26
ppisatiherton: should be fixed now18:30
hertonppisati: thanks, will check and push18:31
* ppisati -> bails out18:58
jsalisburybjf, sconklin, herton regression in Lucid, that has a possible commit identified that caused the issue: bug 87530019:14
ubot2Launchpad bug 875300 in linux "[Realtek ALC268] ALSA test tone not correctly played back (regression in lucid from 2.6.32-33.72)" [Medium,Triaged] https://launchpad.net/bugs/87530019:14
hertonjsalisbury: ack, we will check that19:15
jsalisburyherton, thanks19:15
=== ppetraki_ is now known as ppetraki
jdstrandtgardner: hey. your --reap patch to iptables pretty much has to be reworked for iptables 1.4.1220:09
tgardnerjdstrand, um, how so ?20:10
jdstrandtgardner: upstream made quite a few changes. I'd like to do the merge, but don't want to rewrite your patch. I'm wondering how to proceed-- perhaps I could do the merge and back out the --reap change, and then file a bug for that functional regression and assign it to you?20:10
tgardnerjdstrand, you mean the user space portion? I thought that got accepted upstream.20:11
jdstrandtgardner: they redid the struct and the arg parsing, etc20:11
jdstrandtgardner: (yes the userspace bits) no it didn't. we've been carrying this delta for a long time20:11
tgardnerjdstrand, huh. ok, I'll see about getting the patch redone and accepted upstream20:12
jdstrandtgardner: sounds great. looks like openwrt picked it up (noticed in my google search)20:12
jdstrandso hopefully upstream will be willing20:13
jdstrandI'll back it out for now and assign a new bug to you20:13
tgardnerjdstrand, ok, thanks for the note20:13
cndtgardner, ogasawara: I tested hid-ntrig in oneiric vs the latest daily mainline20:14
cndI motion for reverting all our patches and just going with upstream20:14
ogasawaracnd: Ooo, nice20:14
tgardnercnd, in oneiric or precise ?20:14
tgardneror both20:14
cndtgardner, in precise20:14
cndI don't want to mess with oneiric20:14
tgardnercnd, works for me.20:14
cndthough I'll be requesting a hardware ID addition soon20:14
cndhowever, I don't know how to send patches for this20:15
tgardnercnd, that is a deeply curious statement20:15
cndsorry, I need to be more clear20:16
cndI know how to send a patch for the new ID that needs to go into an oneiric SRU20:16
cndI don't know how to fix up precise20:16
cndthe git log in precise for drivers/hid/hid-ntrig.c does not show the upstream commits at all20:16
cndI expected to see upstream, then a bunch of upstream reverts until our commits applied cleanly, then our commits20:17
cndbut I only see upstream up to 7b2a64c96ad53c4299f7e6ddf8c2f99cb48940a920:17
tgardnercnd, are you assuming we've been following the merge window? we generally don't until -rc120:17
cndthen sauce patches20:17
cndtgardner, there's been no change to ntrig during this merge window20:18
tgardnercnd, huh, you should consult with ogasawara I guess20:18
* tgardner ducks out for a moment20:18
cndif I had to take a stab, I would send a pull request which included ~10 sauce patch reversions and then another ~10 upstream patches that we don't have20:19
ogasawaracnd: this is what I see --> http://pastebin.ubuntu.com/731333/20:21
ogasawaracnd: so I assuming you're saying we can drop the first 10?20:22
=== allison_ is now known as wendar
ogasawaraie revert the following:20:22
ogasawara961ed450b0e8019a615774712b05db18e36bbea7 UBUNTU: SAUCE: HID: ntrig: fix suspend/resume on recent m20:22
ogasawara712ad9598cb31639546faa2b57311bc32145a978 UBUNTU: SAUCE: HID: hid-ntrig: add support for 1b96:0006 20:22
ogasawarab624fabc45a8b9bd42af2f066ce52934d44df028 hid: ntrig: Mask pen switch events20:22
ogasawaraf5180d5875606b3e4fd68be65373326e60c835b6 hid: ntrig: Support single-touch devices20:22
ogasawara11238108398464f35574fec4e0360d6cce32a742 UBUNTU: SAUCE: hid: ntrig: New ghost-filtering event logi20:22
ogasawarab0613584b5f5c2c393ba46fcab5ea073f15cef95 UBUNTU: SAUCE: hid: ntrig: Setup input filtering manually20:22
ogasawara25826a386b28c76aa9580b05d5c75f5ade02f781 UBUNTU: SAUCE: hid: ntrig: remove sysfs nodes20:22
ogasawara489814f46a3c69da2109a076a81620aeb476b927 UBUNTU: SAUCE: hid: ntrig: zero-initialize ntrig struct20:22
ogasawara4fff4d1f822e3dc85942598cbe2727f1bdb271bb UBUNTU: SAUCE: hid: ntrig: Correct logic for quirks20:22
ogasawara5dc230ad38578ceb9d88218eb6507bf0b858dab6 UBUNTU: SAUCE: hid: ntrig: Remove unused device ids20:22
cndogasawara, yep20:23
cndogasawara, and then pull in all the latest upstream changes20:24
cndoh wait20:24
cndI guess they all are in the tree20:24
ogasawaracnd: right, there's no additional changes upstream we'd need to pull in20:25
cndyeah20:25
cndso reverting those commits is all that needs to happen20:25
cndsomewhere in those commits there must be a large amount of changes that are nothing but reversions of previous upstream commits :)20:26
ogasawaracnd: cool.  how about I build you a quick test kernel with the 10 commits reverted just confirm before I actually drop them.20:26
cndogasawara, sure20:26
jjohansenapw: you still around21:43
ogasawaracnd: test kernel -> http://people.canonical.com/~ogasawara/ntrig/21:44
cndogasawara, thanks!21:44
cndogasawara, kernel looks good22:11
cndis there anything else you need me to do?22:11
cndI can send a pull request for the revert if you like22:11
cosmosisI am installing ubuntu 11.10 on a brand new system.  8 core AMD FX-8150 CPU with a ASUS M5A97 -- AMD 970 motherboard and 16 gig of ram.   When I go to install I get as far as  864 and detecting the usb keyboard and then it just hangs.  Any ideas?22:52
holsteincosmosis: unplug the keyboard22:53
cosmosisok will give it a shot22:53
cosmosisnow its getting hung after 5.36 detecting the sr0 device (cd drive)22:58
cosmosisits not locked its just sitting there sort of..22:59
cosmosisbut its not proceeding with install22:59
holsteini would probably just start testing the hardware to make sure23:00
holsteinyou can try #ubuntu and/or #ubuntu-beginners as well... this is not really a support channel23:00
cosmosisok sorry its just I tried the ubuntu-installer channel and they said ask the kernel guys23:01
ogasawaracnd: no need to do anything else.  I'll just add a note to the commits that they were dropped per our delta review.23:38
cndogasawara, great23:47
cndta23:47

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