/srv/irclogs.ubuntu.com/2007/04/17/#ubuntu-kernel.txt

BenCif 2.6.20-14 works for him, then there's no reason 2.6.20-15 shouldn't12:24
BenCmjg59: is the dont_disable_c3 patch still needed for ipw2100?12:25
BenCmjg59: I don't recall any bug reports that benefited from it12:25
mjg59It was never a bug-fixing measure12:26
mjg59It was a "I'm willing to accept some packet corruption in return for better battery life" one12:26
BenCdo we really want it in there?12:29
mjg59I find it useful12:29
mjg59By default it does nothing12:30
BenCCan you get it upstream?12:30
mjg59I'll try to, when I push the other ipw2100 stuff I have12:33
BenCGreat, thanks12:33
=== marcin_ant [n=marcin@194.114.146.126] has joined #ubuntu-kernel
kylemwin 2301:28
=== defendguin_ [n=supertux@cpe-72-181-7-135.houston.res.rr.com] has joined #ubuntu-kernel
BenCI hate when laptop manufacturers use 2x512Meg for 1G of mem, means you can't just add another 1G stick to get 2G01:47
kylempretty common cost saving measure...01:47
BenCmy gateway came with 1G stick01:47
BenCor wait, maybe it was the HP01:47
=== gnomefreak [n=gnomefre@ubuntu/member/gnomefreak] has joined #ubuntu-kernel
BenCone of them did anyway :)01:48
=== m0rg0th [n=manugarg@219.64.120.181] has joined #ubuntu-kernel
=== johanbr [n=j@blk-224-156-151.eastlink.ca] has joined #ubuntu-kernel
=== marcin_ant [n=marcin@194.114.146.126] has joined #ubuntu-kernel
=== vimalg2 [n=test@202.56.231.116] has joined #ubuntu-kernel
=== jdong [n=jdong@ubuntu/member/jdong] has joined #ubuntu-kernel
=== vimalg2 [n=test@202.56.231.116] has left #ubuntu-kernel []
jdongBenC: ping02:29
jdongCan someone look at bug https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.20/+bug/10198402:30
jdong"firegl_public.c: Ubuntu modification uses obsolete __syscall_return"02:30
mjg59jdong: Given that it's all a huge hack in the first place, what's the impact of this?02:34
jdongI'm not sure what the impact is02:35
jdongthat's why I asked02:35
jdongsome user bugged me about it....02:35
mjg59Why?02:36
=== jdong shrugs
jdonghe referred to it as an 'annoying bug'02:37
mjg59Yeah, but how?02:38
BenCfrom what I can tell it means people have a harder time using custom kernels and fglrx-kernel-source02:41
BenCwhich means I don't care02:41
=== jdong shrugs
jdongoh well :)02:42
BenCthe patch we applied came from fglrx source, so it's not a patch we created02:43
BenCs/from/for/02:43
BenCnm, I meant from02:43
BenCmjg59: the dongle_id = 0x9 patch for IBM0071 in nsc-ircc, is that a patch you authored?02:45
mjg59Yeah02:45
BenCmjg59: Can I send it upstream with your signed-off-by?02:45
mjg59My experience is that all the IBM ones have that dongle type02:45
mjg59So sure - I don't /absolutely/ guarantee that it's correct, but I think it's better than autodetection02:46
BenCmjg59: what do you think we should do with the raw keycode patch for input.c, was there ever any discussion about that on lkml or something?02:47
BenCwe've been carrying it around for several releases now02:49
mjg59Oh, to pass through whether it was in the filter or not?02:51
mjg59Can't remember. I think it came up on lkml at some point, but I'll look into it.02:52
BenCmjg59: right, that one...thanks03:04
kylemmoo.03:04
=== rushfan_ [n=g2@cpe-066-057-009-238.nc.res.rr.com] has joined #ubuntu-kernel
=== jdong [n=jdong@ubuntu/member/jdong] has left #ubuntu-kernel ["FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8"]
=== MrNOKIA1 [n=user@86.121.182.171] has joined #ubuntu-kernel
=== m0rg0th [n=manugarg@219.64.120.181] has joined #ubuntu-kernel
rushfan_BenC is .27 supposed to have the sata_nv fix in it ?03:32
rushfan_I'm [g2] 03:32
BenCyes03:41
rushfan_BenC I was running .27 and I think I had a sata command response failure on my NForce4 board03:42
rushfan_with regard to the command time outs03:42
rushfan_I just loaded your .26 kernel and it seems to be working so far03:43
rushfan_unfortunately this is my pvr box and the .26 kernel doesn't have the ivtv drivers03:44
=== rushfan_ fires up bonnie++
BenCit has the drivers, just not the firmware03:49
BenCcopy the firmware03:49
BenCrushfan_: my .26 kernel is _exactly_ the same as the archive's -15.27 kernel03:49
BenCbrb, doing some hw juggling03:50
=== m0rg0th [n=manugarg@219.64.120.181] has joined #ubuntu-kernel
=== kkubasik [n=kjk38@kjk38-laptop.STUDENT.CWRU.Edu] has joined #ubuntu-kernel
=== philwyett [n=philip@bb-87-81-146-45.ukonline.co.uk] has joined #ubuntu-kernel
=== BenC [n=bcollins@debian/developer/bcollins] has joined #ubuntu-kernel
=== m0rg0th [n=manugarg@219.64.120.181] has joined #ubuntu-kernel
=== defendguin_ [n=supertux@cpe-72-181-7-135.houston.res.rr.com] has joined #ubuntu-kernel
=== macd [n=d@68-190-68-87.dhcp.slid.la.charter.com] has joined #ubuntu-kernel
=== m0rg0th [n=manugarg@72.14.231.89] has joined #ubuntu-kernel
=== ivoks [n=ivoks@3-178.dsl.iskon.hr] has joined #ubuntu-kernel
=== bdgraue [n=bdgraue@dyndsl-085-016-081-162.ewe-ip-backbone.de] has joined #ubuntu-kernel
=== m0rg0th [n=manugarg@72.14.231.89] has joined #ubuntu-kernel
=== doko [n=doko@dslb-088-073-122-210.pools.arcor-ip.net] has joined #ubuntu-kernel
=== bronson_ [n=bronson@adsl-76-202-197-80.dsl.pltn13.sbcglobal.net] has joined #ubuntu-kernel
=== Kream [n=karim@122.163.179.157] has joined #ubuntu-kernel
=== dholbach [n=daniel@i59F7635B.versanet.de] has joined #ubuntu-kernel
dholbachgood morning08:19
=== Lure [n=lure@ubuntu/member/lure] has joined #ubuntu-kernel
=== ivoks [n=ivoks@20-32.dsl.iskon.hr] has joined #ubuntu-kernel
=== anibal [n=anibal@debian/developer/anibal] has joined #ubuntu-kernel
=== abogani [n=abogani@adsl203-157-083.mclink.it] has joined #ubuntu-kernel
=== ivoks_ [n=ivoks@36-61.dsl.iskon.hr] has joined #ubuntu-kernel
=== jml [n=jml@59.167.203.115] has joined #ubuntu-kernel
=== cassidy [n=cassidy@host-213-189-171-21.brutele.be] has joined #ubuntu-kernel
=== kkubasik [n=kjk38@kjk38-laptop.STUDENT.CWRU.Edu] has left #ubuntu-kernel []
=== reitblatt [n=mark@w-mob101-128-62-91-44.public.utexas.edu] has joined #ubuntu-kernel
=== kkubasik [n=kjk38@kjk38-laptop.STUDENT.CWRU.Edu] has joined #ubuntu-kernel
=== kkubasik_ [n=kjk38@kjk38-laptop.STUDENT.CWRU.Edu] has joined #ubuntu-kernel
=== smurfix [n=smurf@debian/developer/smurf] has joined #ubuntu-kernel
=== tijsco [n=matthijs@82.73.208.11] has joined #ubuntu-kernel
=== Keybuk [n=scott@yttrium.canonical.com] has joined #ubuntu-kernel
=== marcin_ant [n=marcin@194.114.146.126] has joined #ubuntu-kernel
=== kkubasik_ [n=kjk38@kjk38-laptop.STUDENT.CWRU.Edu] has joined #ubuntu-kernel
=== philwyett [n=philip@bb-87-81-146-45.ukonline.co.uk] has joined #ubuntu-kernel
=== gortiz [n=gortiz@88.87.105.4] has joined #ubuntu-kernel
=== EtienneG [n=etienne@ubuntu/member/EtienneG] has joined #ubuntu-kernel
=== saispo [n=saispo@ryu.zarb.org] has joined #ubuntu-kernel
saispohi01:47
=== dholbach_ [n=daniel@i59F707C1.versanet.de] has joined #ubuntu-kernel
=== abogani [n=abogani@adsl203-157-083.mclink.it] has joined #ubuntu-kernel
=== AlinuxOS [n=vsichi@host177-127-dynamic.2-79-r.retail.telecomitalia.it] has joined #ubuntu-kernel
=== reitblatt [n=mark@w-mob400-128-62-216-13.public.utexas.edu] has joined #ubuntu-kernel
=== infinity2 [n=adconrad@cerberus.0c3.net] has joined #ubuntu-kernel
=== _MMA_ [n=mma@cpe-071-070-203-016.nc.res.rr.com] has joined #ubuntu-kernel
=== zul_ [n=chuck@CPE0006258ec6c1-CM000a73655d0e.cpe.net.cable.rogers.com] has joined #ubuntu-kernel
=== hans [n=hans@5634185c.rev.stofanet.dk] has joined #ubuntu-kernel
=== kkubasik [n=kjk38@kjk38-laptop.STUDENT.CWRU.Edu] has joined #ubuntu-kernel
=== d1uluv2h8 [i=0@89.33.166.2] has joined #ubuntu-kernel
=== ivoks [n=ivoks@3-126.dsl.iskon.hr] has joined #ubuntu-kernel
zulis there still a meeting going on today?04:54
=== tuxmaniac [n=aanjhan@unaffiliated/tuxmaniac] has joined #ubuntu-kernel
=== rajeevindus [n=rajeev@124.125.162.178] has joined #ubuntu-kernel
=== rajeevindus [n=rajeev@124.125.162.178] has left #ubuntu-kernel []
=== Eruantalon [n=hans@5634185c.rev.stofanet.dk] has joined #ubuntu-kernel
Keybukso05:24
Keybukyou remember that "VMware takes an hour to install feisty" thing?05:24
=== Keybuk can replicate that every time
KeybukAND I can make it take only 15-20 min05:25
kkubasikthere all in a meeting right now05:29
mjg59Keybuk: Oh?05:29
=== pmjdebruijn [n=pmjdebru@pmjdebruijn.xs4all.nl] has joined #ubuntu-kernel
=== mjg59_ [n=mjg59@cavan.codon.org.uk] has joined #ubuntu-kernel
Keybuklet me just reverse the change, and make sure this goes back to 1h+ installs05:40
mjg59_Keybuk: Sorry, missed the last few lines. What was the change?05:40
KeybukI increased the amount of memory I gave to the VM05:41
Keybukfrom 256MB to 512MB05:41
Nafallomjg59_: no you didn't miss anything :-)05:41
mjg59_So, uh. Ubuntu installs slowly in 256MB of RAM. This is unsurprising, surely?05:41
Keybukno, it's very surprising05:42
Keybukit's a very recent change05:42
Keybukthe LiveCD is almost unusable in 256MB05:42
Keybukwhere as beta is fine05:43
mjg59_Well, it certainly doesn't sound like a kernel issue...05:43
Keybukunless it's caused by the squashfs change using more memory?05:43
Keybuk(or it could indeed be completely unrelated)05:43
mjg59_Well, how much free ram do you have after boot, compared with beta?05:44
Keybukthat's what I'm about to look at05:44
Keybukour original thought was that this was an atapi problem05:44
Keybukbut pure I/O seems fine05:44
=== Keybuk is still waiting for current to boot
=== mjg59 [n=mjg59@cavan.codon.org.uk] has joined #ubuntu-kernel
=== mjg59_ [n=mjg59@cavan.codon.org.uk] has joined #ubuntu-kernel
mjg59Hey wow -powerpc still actually boots Mac hardware05:54
mjg59Reassuring05:55
cjwatson256MB was fine with edgy05:57
cjwatsonnot exactly stellar or anything, but not crushing05:57
Keybukfree doesn't return bad numbers, 128MB free before page cache05:59
kylemargh.05:59
kylemi'm a muppet.05:59
Keybukcjwatson: did you revert your system to a snapshot before you tried your test install?06:00
cjwatsonKeybuk: I think it was clean boot + install06:01
cjwatsoncertainly no snapshot involved06:01
Keybukwas the drive clean though?06:02
Keybukcasper mounts any swap partition it can find on boot, remember06:03
=== johanbr [n=j@JBrannlund.MathStat.Dal.Ca] has joined #ubuntu-kernel
Keybukso if you already had an install, you would've had some swap06:03
cjwatsonKeybuk: that VM is set to 700MB ...06:03
cjwatsonI suspect it doesn't matter ;-)06:03
Keybukahh06:03
Keybukmdz and I both leave ours at 256MB as a matter of course06:04
Keybukcould you try with 256 and see how it boots/installs?06:04
cjwatsonthat may well explain it06:04
cjwatsonsure06:04
cjwatsonwah, none of my shift keys work any more06:05
cjwatsonhang on while I sort this out ;-)06:06
cjwatsonboots in 2:1306:10
cjwatsonsubjectively, the slowness is primarily after X starts06:10
=== lmierzej [n=lmierzej@drc242.neoplus.adsl.tpnet.pl] has joined #ubuntu-kernel
Keybukagree06:11
Keybukright when GNOME hauls its fat, bloaty arse into memory06:11
cjwatsonfree after cache is 155MB06:11
Keybukcache includes loaded apps though06:11
Keybukiirc06:11
Keybukie. mapped bits of .so files, binaries06:11
cjwatsonubiquity is liable to eat at least 50MB, possibly more06:11
cjwatsonmost of which I think is debconf06:12
KeybukI get 104MB plus cache with ubiq06:12
cjwatsonwhat's the c-a-f1 rune in vmware again?06:12
Keybukc-a-space-f106:13
Keybukie, hold ctrl alt, press space, then f106:13
KeybukI think06:13
cjwatsonthanks06:13
cjwatson129MB right after starting ubiquity06:13
Keybuk97MB once install begins06:15
=== Keybuk just hit zero
cjwatsonubiquity itself has 24MB res 10MB of which shared06:15
Keybukso now it's swapping to the same disk it's installing *to* to unpack the squashfs of the disk it's reading *from*06:16
cjwatsondebconf-communicate has 15MB res06:16
cjwatsoncan you look at top and see what's using memory?06:16
Keybuku6y with 10.3%06:17
cjwatsongrowing as files are copied?06:18
Keybukno06:18
cjwatson10.3% sounds like about baseline06:18
cjwatsonthat's similar to the 24MB I had above right after starting it06:19
cjwatsonso what's using MORE memory?06:19
cjwatsonI'm around 90MB+ free after cache, copying files06:21
cjwatsonif anything, it's growing slightly06:21
Keybukright06:21
Keybuknothing's growing in userland06:21
Keybukhow do I find out how much memory the kernel is hogging for itself?06:21
cjwatsonwhere are you getting your zero number?06:21
Keybukfree06:21
Keybukit hit zero free after cache, and sat and swapped for a few seconds06:21
cjwatsonyeah, see I'm not getting zero free after cache06:22
cjwatsonthis is the -/+ buffers/cache: ... (free) column?06:22
=== d1uluv2h8 [i=0@89.33.166.2] has left #ubuntu-kernel []
cjwatsonthat's settled down at 106MB06:23
Keybukit only hit it once06:23
Keybukthen it swapped a huge amount and has stayed around 70MB since06:23
cjwatsonmaybe I should look at this in gnome-terminal rather than a console06:23
cjwatsonjust worried about g-t's own bloatiness06:23
cjwatsonI'm not seeing your memory problems, but I do have to agree that this isn't fast06:25
cjwatsonit's 5+ minutes in by vmware's clock and only at 29%06:25
=== ^^CatTuX^^ [n=Shoaibi@mbl-65-129-173.dsl.net.pk] has joined #UBUNTU-KERNEL
=== FOAD_ [n=dok@dinah.blub.net] has joined #ubuntu-kernel
KeybukI can't see why the memory is a problem06:31
Keybukall I know is that if I increase the memory available to it, it's not slow anymore06:31
KeybukI'm trying to work out what is using that extra memory06:31
=== rajeevindus [n=rajeev@124.125.162.178] has joined #ubuntu-kernel
pkl_Keybuk: increase the memory available to what? the vmware VM?06:53
Keybukyes06:54
=== pulkit [n=root@221.134.114.125] has joined #ubuntu-kernel
=== rajeevindus [n=rajeev@124.125.162.178] has left #ubuntu-kernel []
pkl_if the VM is low on memory, it will be shrinking the caches - dentry cache, inode cache and the buffer/page-table caches.  If it shrinks the dentry/inode cache and gets rid of inodes subsequently needed, this will cause a lot of extra seeking in the Squashfs image06:56
Keybukwhat I can't see is why it needs to shrink it that much06:57
Keybukfree says it rarely goes below 100MB06:57
pkl_there's a parameter which controls whether the kernel prefers to shrink caches or prefers to move stuff out to swap.06:57
pulkitBenC ping06:57
BenCpulkit: yes06:58
BenCKeybuk: squashfs, tmpfs, etc..06:58
pulkitBenC: are you free..I wanted some advice on my rejected Google SOC application06:58
pkl_the policies relating to when and what get shrunk, or swapped are a bit of a black art, and are constantly being tweaked between kernels.06:58
BenCpulkit: I don't handle the SoC stuff06:58
KeybukBenC: 100MB of them?!06:59
BenCKeybuk: then there's the whole desktop thing running :)06:59
pulkitBenC: O sorry, I just saw your name for a project, and wanted to ask what mistakes I had made...Thanks nevertheless06:59
KeybukBenC: was I right that the page cache figure includes mapped portions of binaries and libraries?06:59
BenCKeybuk: increasing mem allows for more things to stay cached07:00
BenCof there's not enough memory, then the kernel will spend a lot of time dumping cached pages for disk reads, and so almost any page read will result in an actual IO op to the device07:00
BenC*if07:00
BenCI think 256meg is the bare minimum for livecd installs, but could do with a suggested min of 384M or even 512M07:02
pkl_squashfs doesn't use a lot of memory itself, but it will be asked to re-read anything dropped from the page-cache and/or dentry/inode caches.07:04
cjwatsonyeah, I think that's really a bit ridiculous though07:04
cjwatsonwe have a *lot* of users on 256MB (subjectively, from bug reports)07:04
=== pulkit [n=root@221.134.114.125] has left #ubuntu-kernel []
pkl_the big question is does the installer (Ubquity?) re-access files it previously accessed?  Especially files which it read sometime ago and which may have been removed from caches on low-mem systems-  and can this be improved?07:06
=== bronson_ [n=bronson@66.237.74.66.ptr.us.xo.net] has joined #ubuntu-kernel
pkl_In general as far as the installer is concerned, it is better to swap anonymous memory to hard-disk rather than delete cached data/metadata from the Squashfs filesystem, because it is more expensive to re-read from the Squashfs image than the swap file (on slower processors anyway).  But I doubt the kernel does this.07:13
BenCpkl_: we have no swap in the installer07:13
BenCunless the installer could use the swap it is setting up for the installed system early07:14
pkl_BenC: that's good to know.  So, on a low-memory system the kernel is going to be aggresively shrinking the caches for data it thinks can be re-read.  Very bad for Squashfs performance.07:15
BenCit would seem so07:16
BenCand there's like a million possible things that could cause an increase in memory pressure on the feisty livecd as opposed to the edgy one07:16
pkl_and, as I said, the policies on what and when stuff gets deleted can have changed between the kernels.07:17
pkl_A lot of installers (obviously not Ubuntu) on low-memory systems immediately create swap and mount it.  Could that be done?07:20
=== blueyed_ [n=daniel@i5387DD1E.versanet.de] has joined #ubuntu-kernel
BenCI don't know that we could do it immediately, but maybe once the user goes through the setup process and creates the partitions, the installer could use the one the user defined07:21
BenCthat would be just before the actual install process starts07:21
mdzBenC:  the installer does activate swap as soon as it's available07:21
BenCoh does it?07:21
mdzBenC: (after it's been partitioned and mkswap'd)07:21
BenCok, then there goes that idea07:21
=== pulkit [n=root@221.134.114.125] has joined #ubuntu-kernel
mdzpkl_: by far the lion's share of the I/O done by the installer is copying the contents of the squashfs to the hard disk07:22
mdzpkl_: i.e., mostly reading files once and never touching them again07:22
BenCmdz: what program is used to copy those files? Is it cp, rsync, or some custom thing?07:23
mdzsomething like O_STREAMING would be appropriate if it were available in python07:23
mdzBenC: python07:23
pkl_this is one of my annoyances with the kernel, it doesn't have any concept of relative costs of I/O from difference devices/filesystems, at least the time I looked.07:23
BenCok07:23
=== kkubasik [n=kjk38@kjk38-laptop.STUDENT.CWRU.Edu] has joined #ubuntu-kernel
tuxmaniacpkl_, what do you mean by relative costs ofI/O?07:26
cjwatsonpkl_: while it's copying files, it basically just goes straight through in os.walk() order07:26
cjwatsonKeybuk: hmm, just out of interest, did you create swap in your test install07:26
cjwatson?07:26
mdzI almost always do erase disk, which last I checked created swap07:27
pkl_tuxmaniac: it rather more expensive, for example, to re-read a block off CDROM than the hard-disk.  Once the page goes into the page-cache this knowledge isn't there.07:27
BenCtuxmaniac: like the kernel should be less likely to drop page caches for a squashfs filesystem on cdrom that it would for ext3 fs on a hd07:27
Keybukcjwatson: yes07:27
cjwatsonalthough I did create swap, and it was still 44 minutes by vmware's clock versus the more usual 9 or so07:27
cjwatsonmdz: yes, it does07:28
cjwatsonBenC: it's shutil.copyfile() in python07:28
cjwatsonwhich is basically read()/write() slurping in 16K chunks07:28
BenCI wonder if python is doing anything whacky that would cause extra IO07:28
Keybukhttp://people.ubuntu.com/~scott/meminfo.png07:29
BenCdecent strace would probably find something out07:29
pkl_cjwatson: probably because the kernel is preferring to shrink caches than swap.07:29
cjwatsonlast time I straced I think it was just read()/write(), though I could check07:29
cjwatsonI really doubt it's python07:30
BenCnot so much the read/write, but maybe interim things that it may do between files or something, like reread dentry or something dumb like that :)07:30
tuxmaniacBenC, is that available on BSD? I mean the page cache drops depending on the FS07:30
BenCtuxmaniac: no idea, just explaining pkl's statement :)07:30
tuxmaniacaah ok :-)07:31
cjwatsonI can certainly have a look07:31
=== kkubasik [n=kjk38@kjk38-laptop.STUDENT.CWRU.Edu] has left #ubuntu-kernel []
=== kkubasik [n=kjk38@kjk38-laptop.STUDENT.CWRU.Edu] has joined #ubuntu-kernel
Keybukso whatever the two cyanish lines are, they bounce around between 250MB and 300MB during install07:32
Keybuk(that's with 512mb btw)07:33
cjwatsonBenC: http://people.ubuntu.com/~cjwatson/tmp/ubiquity-copy.trace.bz207:34
cjwatsonthe chmod/utimes/stat etc. stuff in between files is mostly ubiquity07:35
cjwatsonI wonder if mmapping would be faster than reading07:36
cjwatsonwonder what the mmaps it does do are for07:37
cjwatsonoh, maybe just memory allocation07:37
BenClstat64("/rofs/bin/uname", {st_mode=S_IFREG|0755, st_size=14000, ...}) = 007:38
BenCstat64("/target/bin/uname", 0xbf9f17d8) = -1 ENOENT (No such file or directory)07:38
BenCstat64("/rofs/bin/uname", {st_mode=S_IFREG|0755, st_size=14000, ...}) = 007:38
BenCstat64("/target/bin/uname", 0xbf9f14f8) = -1 ENOENT (No such file or directory)07:38
BenCopen("/rofs/bin/uname", O_RDONLY|O_LARGEFILE) = 307:38
BenCfstat64(3, {st_mode=S_IFREG|0755, st_size=14000, ...}) = 007:38
BenCopen("/target/bin/uname", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 407:38
BenCfstat64(4, {st_mode=S_IFREG|0666, st_size=0, ...}) = 007:38
BenCfstat64(3, {st_mode=S_IFREG|0755, st_size=14000, ...}) = 007:38
BenClot of stats going on in there07:38
BenCit fstats the source twice after opening it, and twice before opening07:39
BenCjust normal stat before open, but you get what I mean07:39
cjwatsonI'll cough to the inefficiency (the first is in shutil.copyfile, the second must be somewhere in python I think), but is it likely to be triggering this slowdown?07:42
cjwatsonsurely one stat or two is much the same, goes to the dentry cache either way07:42
pkl_if the dentry and inode caches have been shrunk, they'll go to the filesystem again.07:43
cjwatsonthey'd have to be shrunk so that they could only hold one item07:43
cjwatsonseems like pretty serious shrinkage07:44
cjwatsonthe stray fstats shouldn't go to the filesystem07:44
cjwatsonshouldn't stat information on open files be accessible without that?07:44
pkl_ok, so the multiple stats are stat file, stat file again, rather than stat the entire filesystem (or a substantial part), and then stat the entire filesystem again.07:45
cjwatson(this is where pkl tells me I know nothing about filesystems)07:45
pkl_stat info on open files will never go to the filesystem.07:45
cjwatsonpkl_: right, it's two files (source and target; the source on squashfs, the target not) but a pair at a time rather than the whole filesystem, yes07:45
cjwatsonit's "does the source file exist? what is it? does the target file exist? are they the same thing already? copy"07:46
cjwatsonthe logic is obviously a bit more competent than that but you get the idea07:46
cjwatsonI suppose it's possible that memory pressure forces /rofs/bin out of the dentry cache while /rofs/bin/umount is being copied and before starting on /rofs/bin/uname07:49
cjwatson(e.g.)07:49
cjwatsonis there any reasonable way to test a hypothesis like that?07:49
pkl_A hook in Squashfs (a printk in the Squashfs lookup and readdir routines) would show that happening, or hooks into VFS.07:51
BenCcjwatson: I had to do stat caching in dpkg to fix a test case I had created so that it took 30 seconds to install a package instead of 30 minutes07:53
=== Lure [n=lure@clj46-234.dial-up.arnes.si] has joined #ubuntu-kernel
BenCgranted it was a huge test case, much more stat's than the install case we're talking about07:53
BenCbut they do add up, so I was just pointing them out07:53
pkl_Doing find with and without -noleaf is an easy way to see how file stating slows things down...07:55
BenCI also don't know if there's negative cache for the ENOENT case07:56
BenCno idea if an ENOENT has much of a performance inpact07:56
BenC*impact07:56
BenCinternally a stat() on non-existent file has to get dentry for every dir leading up to the last component, right?07:57
pkl_BenC: yes, and on the leaf directory the directory has to be searched for the non-existent entry.   Depending on the filesystem this can be quite expensive.07:58
BenCright, even on ext3, that can consume a good chunk of cache, especially in a dir like /usr/share/doc/07:59
pkl_Squashfs uses directory hashing, and the impact is much lower than otherwise (searching the entire directory).07:59
BenCmdz, cjwatson: I just did another feisty x86 install in vmware, this time with a 512M VM, and start to finish was 9 minutes08:32
=== infinity [n=adconrad@cerberus.0c3.net] has joined #ubuntu-kernel
BenCin fact, even the initial boot to to livecd took less than 1 minute08:33
BenCso it definitely looks like we have memory issues08:33
cjwatsonfor feisty, my inclination is to document this as best we can (e.g. change the memory threshold below which releases.ubuntu.com advises using alternate)08:34
cjwatsonbut for gutsy I would really like to get the threshold back down08:35
BenCgoing to be a very thorough investigation to get this nailed down08:36
cjwatsonyeah, that's why I don't want to rush it into feisty now08:38
mdzcjwatson: agreed, can you add it to FeistyKnownIssues?08:40
mdzI'm quite happy to chalk it up to memory usage changing in subtle ways08:40
mdzwe should see if we can't get it down again for gutsy, rather than increase the standard requirements08:41
cjwatsonadded08:43
cjwatsonseems like a good developer sprint topic if we don't nail it before then08:43
=== doko_ [n=doko@dslb-088-073-094-188.pools.arcor-ip.net] has joined #ubuntu-kernel
=== philwyett [n=philip@bb-87-81-146-45.ukonline.co.uk] has joined #ubuntu-kernel
=== m0rg0th [n=manugarg@219.64.120.181] has joined #ubuntu-kernel
=== m0rg0th [n=manugarg@219.64.120.181] has joined #ubuntu-kernel
=== mjg59 [n=mjg59@cavan.codon.org.uk] has joined #ubuntu-kernel
=== sacater [n=sacater@colchester-lug/member/sacater] has joined #ubuntu-kernel
=== ivoks [n=ivoks@3-170.dsl.iskon.hr] has joined #ubuntu-kernel
=== pulkit [n=root@221.134.114.125] has left #ubuntu-kernel []
=== mjg59 [n=mjg59@cavan.codon.org.uk] has joined #ubuntu-kernel
=== mjg59_ [n=mjg59@cavan.codon.org.uk] has joined #ubuntu-kernel
=== defendguin [n=jmsunser@216-136-108-250.static.twtelecom.net] has joined #ubuntu-kernel
=== asac [n=asac@debian/developer/asac] has joined #ubuntu-kernel
=== lmierzej [n=lmierzej@drc242.neoplus.adsl.tpnet.pl] has left #ubuntu-kernel []
=== cox [n=cox@client-81-107-200-114.glfd.adsl.virgin.net] has joined #ubuntu-kernel
=== rpereira [n=rpereira@ubuntu/member/rpereira] has joined #ubuntu-kernel

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