/srv/irclogs.ubuntu.com/2010/02/01/#upstart.txt

ionO hai20:26
ionkeybuk: A couple of small changes: https://code.edge.launchpad.net/~ion/ubuntu/lucid/upstart/lucid20:27
sadmac2Keybuk: you're alive!20:28
ionYou guys might get a kick out of a hack i did: ‘evil’ implements ‘reference’ without branching. http://gist.github.com/29006620:30
ionAn excellent introduction to Erlang, btw: http://www.viddler.com/explore/rentzsch/videos/8/20:31
Keybukhi20:32
KeybukI am20:32
Keybukvery much alive - and very much refreshed20:32
Keybukholidays FTW20:32
ionGood to hear20:32
sadmac2Keybuk: I just got my first upstart 0.6/SELinux clash bug today. We're leaking pipes.20:33
sadmac2why O_CLOEXEC wasn't the default behavior in POSIX... well, actually there's weirder shit in POSIX to wonder about.20:34
ionSomeone should form a committee to design a better POSIX!20:36
sadmac2ion: one day when I gain superpowers I will submit a giant patch to linux introducing a second process tree with better semantics and interfaces.20:37
sadmac2then we can phase POSIX out altogether20:37
sorenI'm curious.. Has any thought been put into the impact on memory requirements caused by running a whole bunch of things in parallel rather than sequentially?20:40
sadmac2soren: the majority of those things are long running processes.20:41
Keybuksadmac2: which pipe is being leaked?20:41
sorensadmac2: I'm not sure what significance that has?20:42
sadmac2Keybuk: dunno yet. It could quite possibly be something inside of libdbus20:42
sadmac2soren: eventually they'll all be running in parallel anyway.20:42
sorensadmac2: True.20:42
sadmac2soren: I doubt there's anything interesting to explore in that avenue, but if you'd care to measure something it might be interesting to look at.20:43
sorensadmac2: We're just seeing a problem somewhere that might be due to everything running in parallel rather than sequentially. I'm not entirely sure yet.20:43
Keybuksadmac2: at some point, upstart will use the newer syscalls that I can specify the cloexec flag20:43
Keybukwhen I have some time20:43
Keybuk*cry*20:43
sadmac2Keybuk: yeah.20:44
* Keybuk plans to beg for upstart time next cycle20:45
sadmac2Keybuk: I've been having some nasty interruptions to my coding time lately, the last one involving a new car and some bruised ribs that I really need to get looked at.20:45
sorensadmac2: Short story: We have some virtual machines with 256 MB of RAM and no swap.. During boot, the OOM killer gets invoked for some reason.20:45
sadmac2but my airbags were in working order, which was nice to find out.20:45
Keybuksoren: fsck probably20:46
Keybukfsck consumes terabytes of memory20:46
Keybukits why things try so hard to activate swap first20:46
sorensadmac2: ...and one of the working hypotheses is that it's caused by things being run in parallel that used to be run sequentially. I don't really buy that hypothesis, but was just curious about the general problem.20:46
sorenKeybuk: Interesting.20:46
sadmac2soren: you'd have to instrument and see. certainly upstart has tools to serialize out stuff if you need them. certainly those tools could get better if there's many people like you.20:47
sadmac2but yeah, counting up how many of those things you're running are tasks which will actually release memory in the short term would help test your theory.20:47
Keybukperf ftw20:48
sorenKeybuk: These should be clean images, though. fsck shouldn't be doing anything other than telling me that everything is fine and that it won't bother with a proper check.20:48
sorenKeybuk: "perf"?20:49
sadmac2"performance"20:49
sadmac2the genre of debuggering you're entering into20:49
sorenAh, I thought it was a reference to another tool in Keybuk's shiny magic box of tools.20:50
sadmac2there might be a perf tool called perf. I think there is.20:51
sorenPerhaps. It's not in ubuntu.20:51
* sadmac2 doesn't have it20:51
sadmac2soren: there's oprofile, which is awful, but also the only thing that does what it does. Thankfully your problem isn't suited to it.20:51
sadmac2soren: and there's systemtap, which may come into play here20:52
sadmac2<3 systemtap20:52
Keybukit comes in the kernel source20:52
sadmac2It keeps me employed, and as things people pay for go, its not so bad to work with20:52
sorensadmac2: How can systemtap be useful here? This it the first time I've heard of it.20:54
sadmac2soren: hard to say. Its problem scope is gigantic.20:55
sorenI see.20:55
sadmac2soren: it lets you write custom trace programs20:55
sorensadmac2: I'm curious about your "things people pay for" remark. We have it in Ubuntu, so it must be free software?20:56
sadmac2soren: for your issue though, getting top running early enough would do it.20:56
sadmac2soren: people pay me to /use/ it20:56
sadmac2soren: I'm a support engineer. I solve fiddly performance issues in a hurry while the customer's hair is on fire.20:56
sadmac2fiddly...20:57
* sadmac2 notices his diction getting Britisher now that Keybuk is back20:57
sorensadmac2: Ah, I see what you mean.20:58
sorensadmac2: As for getting top to run that early, I think that will be hard. The OOM killer gets upset quite early.20:59
sorensmoser: can you reproduce this problem in a regular VM?20:59
smoseryes. under "normal" kvm21:00
sadmac2soren: actually, just turn on kdump and disable the OOM killer, and let it core. the crash dump tool should be able to get you what you need.21:01
smoserlucid: http://pastebin.com/f16fba18521:01
smoserkarmic: http://pastebin.com/f5d42cbf821:02
sorenMaybe a low-tech approach would do: Run a script very early on that dumps the output of "ps -eFl" somewhere every 0.1 seconds and go and look at it afterwards?21:02
smoser^^^ output of ps -eo pid,vsz,args21:02
Keybuksadmac2: perf is the new systemtap21:02
sadmac2Keybuk: really?21:03
sadmac2its hard to google because google expands "perf" into "performance"21:04
sadmac2"prioritize results with the least amount of interpolation" doesn't seem to have made it into google's secret sauce.21:04
ionGoogle for +perf21:04
sadmac2as of 2005 the readme declares it dead.21:05
sadmac2OR there's 2 things called perf21:05
sadmac2Keybuk: ah, this is looking familiar21:05
sadmac2Keybuk: I think you have it wrong though. This looks like the new oprofile, not the new systemtap21:06
smosersoren, http://pastebin.com/f37a27768 is updated with i386 22:06
Keybukit's the new systemtap too22:07
Keybukthere's nothing you can do with systemtap that you can't do with perf_event/trace_event22:07
sadmacKeybuk: I'll be interested to test that.22:35
* sadmac remembers to check the RHEL 6 kernel packages for it22:36

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