=== Keybuk [n=scott@descent.netsplit.com] has joined #ubuntu-boot [10:02] Mithrandir: yo [10:02] dude! [10:02] right, so yes [10:02] readahead [10:02] so, what's your plans for readahead? [10:02] mdz gave me this to overhaul as part of streamlined-boot [10:03] so my general problems with it were [10:03] (and what does mean?) [10:03] 1) wayyy out of date lists === Kamion [n=cjwatson@83-216-156-196.colinw664.adsl.metronet.co.uk] has joined #ubuntu-boot [10:03] 2) insufficient runs [10:03] 3) doesn't block-order its lists at the right time [10:03] (shutdown is not a point to do important things) [10:03] etc. [10:04] so my basic design for it was [10:04] - each package that includes an init.d script includes a file in /var/lib/readahead or similar listing the files it reads from [10:04] - readahead includes an audit tool that you can drop into a script to generate these files (using strace-parent, maps, etc. magic) [10:04] - each package also runs update-readahead in postinst [10:05] - that looks at rcS.d/rc2.d, picks the files from /var/lib/readahead, joins them together, and orders by block number [10:05] I was thinking just having something in initramfs which uses inotify to record everything which is opened. List is saved at the end of the boot (or after five minutes) and reused next time. [10:05] inotify can't record when files are opened, and how they're opened? [10:06] and can only monitor one filesystem at a time [10:06] #define IN_OPEN 0x00000020 /* File was opened */ [10:06] huh? You can monitor as many file systems as you want? [10:06] Mithrandir: doesn't say whether it's for reading, writing, etc. [10:06] Mithrandir: yes, but then you need to monitor each filesystem as it's mounted [10:06] and there's no "filesystem mounted" event [10:07] true, but that's possible to work around. [10:07] the readahead might need to do multiple passes anyway. [10:08] yeah, I want to do a "very early" readahead pass [10:08] one after /usr is probably mounted [10:08] and maybe a final "gdm is up, now what?" push [10:08] and it's harder to split results of a single monitor if you do that [10:09] also on LiveCD where would you save the lists? :p [10:09] and where would you get the initial list? [10:09] boot initially, upload it somewhere and we'd use a sample to decide what to put into the list. [10:09] but they won't be in anything like the right order for a real install [10:09] not really, if you have a list of files to be readahead, do readahead on the ones which exist, then wait for some more to come into existence, then readahead those, repeat until all files have been read. [10:10] I think I prefer Keybuk's approach - less likely to drift over time [10:10] which means the first boot (only boot for reviewers) is evily slow [10:10] stuff that requires us to kick it every so often has a history of bitrotting (e.g., er, readahead) [10:11] you'll end up readahead-ing the entirely wrong files in a lot of cases, though. Like, if you change your language, the localised files should be read ahead, not the english ones. [10:11] for init scripts? [10:11] huh? [10:11] they aren't localised at the moment [10:11] and what remains sounds like a relatively small number of files [10:12] if need be, just readahead all the alternatives? [10:13] well, I was going to reuse my hack for faster gnome startup. [10:13] so you just say "record" at the start of the session, then "stop, give me the list of files" at the end [10:13] and then use that list next time aroud. [10:13] around, even [10:14] that's what we did to get the current useless lists though [10:14] they need more filtering than inotify provides [10:14] readinf /var/log/Xorg.0.log is kinda pointless, for example [10:14] as with things like the font caches, etc. [10:17] you can see if the file was opened rw or not on close, though.. [10:17] it's also a bitch to find out _what_ opened it ;) [10:17] why do we care, really? [10:17] about who opened something [10:17] if we have multiple readahead phases [10:19] well, I would advocate not having that [10:19] why not? [10:19] during the boot, we have three useful points where there's no disk I/P [10:19] uh, I/O [10:19] those seem the best bits to do readahead blips [10:21] if we do readahead right, we should end up with about zero I/O outside readahead anyway, shouldn't we? [10:23] not necessarily [10:23] e.g. fsck ;) [10:23] true, but that's a no-op in the usual case today. [10:25] (in the usual case that you don't run a full fsck, which you usually don't) [10:27] depends on the fs [10:27] ext3 seems to use a lot of io to check its journal, for example [10:28] isn't readahead prioritised below other I/O ops anyway? If not, can we make it? [10:29] I still don't like your solution though ;) [10:29] it doesn't do anything for LiveCD [10:30] because by its very definition, you have nowhere to write the updated lists [10:30] and I think it'll actually slow up the ordinary system boot by reading files that aren't necessary [10:31] because it'll readahead Xorg.log? [10:33] because it'll readahead things at the wrong times [10:33] you can very easily over-readahead [10:33] so it takes longer to do that, then it would to read them normally [10:35] I just think maintaining those lists by hand is going to suck and be based on a bunch of guesses more than anything else. [10:35] ie. if the time to do the readahead is greater than the benefit of doing so, then you lose [10:35] thom and I find when first doing it that you had to write them by hand [10:35] because the automatic ones didn't give you much benefit [10:36] they just shifted the I/O about [10:37] well, it really is about shifting the I/O about. :-) You'll always end up reading at least the same amount as before. [10:40] another problem I can forsee with your idea is failed boots [10:40] the next boot, you'll end up readaheading all the things you used to fix the last boot [10:40] etc. [10:40] possibly, yes. [10:40] or switching between kernels will have similar issues [10:40] it reduces the stability of the boot lenght. [10:40] length, even [10:40] to me, this really does cry out to be a package-level thing ;) [10:41] here's my (automatically generated and manually weeded) list of things I cause to be read in each package [10:41] lang packs would include those too === fabbione [i=fabbione@gordian.fabbione.net] has joined #ubuntu-boot === makx [n=max@213.239.196.228] has joined #ubuntu-boot === JanC [n=janc@lugwv/member/JanC] has joined #ubuntu-boot [12:53] Keybuk: we can try with your method, I guess. When will you have it ready? :-) === mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-boot [05:36] Mithrandir: been playing all afternoon so far [05:37] I like yours now, much easier to code than mine [05:37] in fact, I have a cunning idea for a "profile" command-line option that enables both readahead profiling and boot charting [05:37] so we could ship bootchart by default [05:59] you do know that bootchart doesn't do anything by default now? [05:59] this might explain something [06:00] you know we have a mailing list? ubuntu-devel-announce [06:00] for when you change that kind of thing [06:00] users have been complaining at me for the last few days that bootchart stopped working, haven't got around to investigating yet [06:00] you could've had a small nuke thrown at you :p [06:00] you know, it's in the bloody changelog. [06:00] who reads those?! :p [06:00] I, at least. [06:01] especially if I wonder why something changes. [06:01] meh, any particular reason you disabled it? [06:01] yes, it's on the live cd. [06:01] why always? [06:01] because there's no way to know you're on a live cd when bootchart runs. [06:01] it's just adding a small bootchart=enable to run it. [06:02] oh, of course, you can't add it to the live cd [06:02] lol [06:02] or bootchart=upload to upload the graph. [06:02] upload the graph where? :p [06:02] bootchart.err.no [06:02] _that_ on the other hand, should probably have gone to u-d-a. :-P [06:02] heh, given the amount of stuff I'm doing with boot charting right now .... [06:02] it would've been nice if you'd at least told _me_ about that :p [06:02] but yes, that should go to u-d-a [06:02] could you mail it? :p [06:02] I did this change a month or so ago. [06:02] sure [06:03] I guess they can't be tagged distro/not-distro ? [06:03] err [06:03] live/real [06:03] sure [06:03] otherwise it's hard to keep track [06:03] bootchart=enable,$tag [06:03] iirc [06:03] sorry, upload,$tag [06:04] :) [06:04] now, send that mail, bitch :D [06:06] bootchart (0.9-0ubuntu5) dapper; urgency=low [06:06] * Add bootchart=disabled and bootchart=upload,$type arguments which will [06:06] respectively disable bootcharting and upload charts to [06:06] bootchart.err.no. [06:06] -- Tollef Fog Heen Mon, 19 Dec 2005 13:52:35 +0100 [06:06] so, about a month ago wasn't that bad. [06:06] you haven't touched bootchart since Nov 30th. :-P [06:06] but sure, I'll send da mail [06:08] I haven't updated my laptop properly since before xmas, no [06:08] so hadn't picked up that new version yet [06:09] is it enabled or disabled by default? [06:09] hmm [06:09] it's enabled by default [06:09] grep -q "bootchart=disable" /proc/cmdline && exit 0 [06:10] so it's not my fault. :-P [06:10] doko's probably broken gcj or something [06:10] you're so going in the dry dock [06:10] I can't remember random changes I did a month ago [06:10] (without looking at changelogs, etc) [06:11] I do, perhaps, think that holding a distro team sprint in an area with amble bodies of still water is a *bad* idea [06:11] why? :-) [06:19] amble opportunity for solving grudges [06:19] you did *what* to initramfs?! *splash* [06:20] well, I did suggest paintball. [06:20] I'm sure there are shops in London renting out gear. [06:21] that'd rock === Keybuk [n=scott@descent.netsplit.com] has joined #ubuntu-boot === Kamion [n=cjwatson@83-216-156-196.colinw664.adsl.metronet.co.uk] has joined #ubuntu-boot === mc76 [n=mcaamano@200.91.139.154] has joined #ubuntu-boot [10:34] hi, I am trying to install breezy in a Dell Dimension 3100 and the installer hangs right after launching syslogd kdlogd. Has anyone seen this before or know how to get pass this? I already tried all the boot options in the disk and searched google for it (other people report the same issue but none report a fix) any suggestions where I can look for more info? === mc76 [n=mcaamano@200.91.139.154] has left #ubuntu-boot ["Leaving"]