/srv/irclogs.ubuntu.com/2008/10/22/#ubuntu-kernel.txt

=== mdz_ is now known as mdz
Wavesonicsdoes anyone know if Ubuntu 8.10 will have ext4 enabled?10:20
Keybukit does10:38
Keybuknot by default though10:38
=== peterere1 is now known as petererer
Keybukthe kernel module is there, and the userland tools are too10:39
=== asac__ is now known as asac
=== thunderstruck is now known as gnomefreak
=== pgraner_ is now known as pgraner
Keybukrtg: so Corey Minyard replied and said Signed-off-by: him ...14:53
Keybukdoes that mean it's in the upstream kernel now?14:53
Keybukwho has to commit it?14:53
rtgKeybuk: no, I still have to send it to akpm.14:54
rtgI though they'd have a maintainer's tree, but I guess not.14:54
Keybukhow do you do that?14:54
rtgKeybuk: I'll have to figure it out. Its been awhile since I sent anything to Andrew.14:55
rtgKeybuk: once I do send it, you'll get 1 or more automated responses that tell you when the patch transitions states14:56
Keybukso, let me work this out14:59
Keybukyou first send the patch to the subsystem maintainer14:59
Keybukcc lkml, just for kicks14:59
Keybukand _if_ you think it might be worth a stable update later, add a Cc: stable@kernel.org in the body14:59
Keybukthe subsystem maintainer might commit it themselves to their own tree14:59
Keybukor they might just reply with another signed-off-by line?14:59
Keybukat that point, I guess you *reformat* the patch to include that new signed-off-by line, and then send it to someone else?15:00
rtgKeybuk: the subsystem maintainer _should_ commit to their tree. Seems like Cory is being lazy, or they don't actually have a subsystem tree. After all, isn't that the role of a subsystem maintainer?15:00
Keybukwhy would you have a subsystem tree for every single driver?15:01
rtgAnyway, the Cc is to notify stable when the patch is included in Linus tree.15:01
Keybukwhat if there's no subsystem?15:02
rtgReformatting the patch with an extended SOB would normally happen when he maintainer added it to their tree.15:02
rtgKeybuk: All drivers belong to a subsystem at some layer.15:03
Keybuklet's say I get around to writing waitfd()15:03
Keybukwho would I send that patch to ?15:03
rtgKeybuk: you're getting pretty high up the stack. You'll have to get new syscalls ack'd by Linus' first level lieutenants. Guys like  Garzik, Miller, Morton, etc.15:04
rtgsuffice it to say, there  are no hard and fast rules for patch submission.15:05
rtgits kind of fluid :)15:05
rtggenerally, someone will tell you what to do if you've transgressed.15:05
rtgjust setup a Netgear WNDR3300 (RangeMax Dual Band Wireless-N Router). Seems like it's working pretty good.15:51
* apw wonders if you are using it as a router, or have installed intrepid on it :)16:22
rtgnope, just as a router. I'm using it to test wireless stuff, so I don't want to introduxce any more problems to the mix.16:30
hallynso is there any chance at all of the freezer control group (just pulled into Linus' tree a few days ago) making it into the intrepid kernel?16:36
rtghallyn: this close to release? I don't think so.16:38
hallyndrat16:39
lamontNCommander: around?16:41
NCommanderlamont, yup16:41
hallynguess i'll see how trivially i can pull those patches into intrepid.git16:42
NCommanderlamont, what's up?16:45
=== thegodfather is now known as fabbione
=== thunderstruck is now known as gnomefreak
=== thunderstruck is now known as gnomefreak
Ngdo any of you guys have USB 3g modems? they pretend to be CD drives until you eject them, then they become modems. I just tried two different models on two laptops and they just spew loads of scsi errors18:58
Ng./win 24518:59
Nggar18:59
calc100 for /proc/sys/vm/vfs_cache_pressure seems too low at least on laptops19:19
calcanyone around for a discussion about it?19:19
jdongcalc: you mean too high?19:23
calcjdong: needs to be a larger number it seems or something else is causing problems during high disk io19:23
calcjdong: my system is almost completely unresponsive when i do a transmission torrent check19:23
calcjdong: can't use evolution or even pidgin at times, not even repainting the screen19:23
jdongcalc: isn't that more of an IO scheduler issue?19:24
calcjdong: probably so, someone pointed me at this tuning option but i think its probably a io scheduler issue19:24
calcjdong: i don't know enough about how disk io works under linux to know what is the problem19:24
jdongcalc: do you see any evidence of swapping?19:25
jdongcalc: if you're swapping it could possibly be a vfs_cache_pressure or vm.swappiness issue19:25
calc4MB usage in swap19:25
calc~ 2300MB in buffers19:25
jdongcalc: yeah that's not cache pressure then19:25
calcer not buffers19:25
calc2300MB in cached, sorry about that19:25
calci'm checking a 28GB torrent19:25
jdongcalc: that's your IO scheduler not prioritizing the smaller requests needed to check your e-mail vs the 5GB of torrent data :)19:25
jdongerr, 28GB :)19:25
calcheh19:25
calcas this channel is logged i'll leave it at that ;-)19:26
calcbut it seems in general not to fairly divide up disk io between apps19:26
calcto the point that pidgin didn't repaint for what seemed like at least 30s, i finally switched to my terminal window, so i don't know how long it actually took19:27
jdongcalc: well it fairly divides between IO requests19:27
jdongcalc: doesn't help if your torrent client is making a lot of said requests :)19:27
jdongcalc: have you tried to see if the deadline IO scheduler works any better for your workload?19:27
jdongecho deadline > /sys/block/sda/queue/scheduler19:28
calcjdong: how do i switch to it?19:28
calcoh ok19:28
calcis that safe to do while under heavy disk io?19:28
jdongyeah19:28
jdongthey're designed to be online-switchable19:28
calcok19:28
calcthat is amazingly better19:29
calccompletely responsive19:29
calchmm maybe i should switch back to verify its actually not a placebo thing19:30
calcwhat was the other one called?19:30
calcit definitely seems more responsive than it was, but it might be due to other reasons, need to try flipping back and forth19:31
steve__hrm, it appears deadline is the default scheduler here: 19:32
steve__[denisovich ~]$ cat /sys/block/sda/queue/scheduler19:32
steve__noop anticipatory [deadline] cfq19:32
calci switched to cfq to see what it does19:33
parancalc: cfq is the default for -generic kernel19:33
calcok19:34
=== steve__ is now known as sbeattie
sbeattieah, right, that machine is running the -kernel server19:35
parancalc: in my experience excessive disk-io when using bittorrent is often caused by fragmentation in the (ext3) file system19:35
calcwell deadline does seem more responsive to a non-scientific click on my mailboxes in evolution test19:35
calcparan: well doing a torrent check causes a lot of disk io also19:35
calcand apparently helps to expose holes in the scheduler19:36
calchmm when i waited a bit to let cache purge my mailboxes it seems deadline might not help much after all19:36
calcso i really can't tell :\19:37
parancalc: of course, but the disk IO will hurt a lot more if it is mostly seeks, cause of fragmentation19:37
calcyea19:37
calcso is there any way to defrag ext3? :)19:37
calceveryone claimed that ext3 never needed to be defraged in the past19:37
parancalc: you can use "filefrag <filename>" to see how fragmented a file is19:37
calcreally fraged19:38
parancalc: as far as I know you can't. the problem is that ext3 do not like the usage pattern of a typical torrent client19:38
calceg 9915 extents found perfection would be 319:38
parancalc: you should get a client that pre allocates (writes the whole file full with zeroes) before starting the download19:39
calcparan: well the default one in ubuntu that is preinstalled doesn't do that, so maybe i should file a bug :\19:39
calcthough i think filing a bug about the lack of a defragger when it is clearly really needed would also be good19:40
calcjdong: you made one i see in google ;-)19:40
jdongcalc: haha :)19:41
jdongcalc: something else to consider with CFQ is the use of ionice priorities19:42
parancalc: the problem is that most people would then file bugs complaining about their torrents not starting right away19:42
jdongcalc: you can punt your torrent client to best-effort priority 819:42
calcjdong: ah19:42
jdongparan: ext4 will support preallocation right?19:42
jdongi.e. KTorrent with XFS uses the XFS preallocation calls.19:42
jdongtakes a fraction of a second to reserve optimal contiguous space for the entire torrent19:43
calcjdong: so is your defrag tool safe? :)19:43
jdongcalc: it is basically a cp a b; mv b a;19:43
jdongcalc: as long as your filesystem treats mv b a atomically it should be safe19:43
jdongworst case is leaving behind a tempfile19:43
calcok19:43
calcwhere is the official copy of this tool? :)19:44
paranjdong: I haven't really followed ext4, but I think so19:44
jdongcalc: you're a pretty experienced hand at UNIX, you probably can just do it by hand for problematic files :)19:44
jdongcalc: it should be in bzr somewhere on launchpad19:44
jdong(lol)19:44
calclol19:44
calcah i see it19:44
calc3rd hit on google19:44
calcit seems you have lots of empty branches on lp that you forgot to delete19:45
jdonghaha that could very well be19:45
jdongcalc: you know, I've always considered writing a hackish script that's the equivalent of Windows's foreground-IO-booster19:46
jdongthe default behavior of workstation builds of Windows is to allocate a higher priority for the foreground app19:46
jdongthat might arguably help interactiveness a bit if you are runing a torrent client and switch to your e-mail client19:46
calcyea19:49
parando the defragmenting program you are talking about now simply moves files between file systems?19:49
calcjdong: defrag is pretty cool :)19:50
jdongparan: pretty much it makes a copy of the file and checks if the new copy has fewer fragments according to filefrags19:50
calcof course it would be nice if ext3/ext4 or something like that had built in defrag option19:50
jdongparan: it's the same strategy xfs_fsr uses, except XFS has a efficient way to sort by most fragmented files19:50
calciirc XFS has something like that19:50
jdongyup19:50
calcwhen i tried it was buggy though and ate my fs ;-)19:51
jdongcalc: well it's as safe as XFS is ;-)19:51
jdongwhat it does is basically equivalent of cp and mv operations except it uses an atomic mv19:51
calcjdong: heh19:51
jdong(XFS mv is NOT atomic by default)19:51
jdongthat IMO is insane19:51
jdongbut technically POSIX-compliant :D19:51
paranjdong: that is pretty much the only thing you can do from user space. I have defragmented files by moving from ext3 to a tmpfs and back :)19:51
jdongparan: yeah, I don't know (or WANt to know!) what that does to free space fragmentation19:52
jdongbut empirically it helps a lot with file fragmentation and read performance19:52
calcjdong: does defrag have an option to skip files that are mostly defraged already?19:52
jdongcalc: there should be a frags/MB threshold commandline flag19:52
calcok19:52
jdongcalc: by default IIRC it is pretty sane, like around 2frags/MB?19:53
calcoh ok19:53
jdongparan: another neat trick that's worked wonders for me: tar and remove all the files mentioned in readahead/boot, then restore them at once from the tar19:53
calci didn't look to see what it defaulted to19:53
jdongparan: that's managed to shave 10-15% time off readahead for me19:53
jdongI'm guessing EXT3 is more likely to allocate files in the same area of the disk if created at the same time?19:54
calcwhat would be neat is a defrag that could work like norton defrag on windows (or how it used to work) where you could even select file order, like what you are basically doing with tar19:54
paranjdong: yeah, that should work.19:55
jdongcalc: yeah I wish we actually had a defrag API call!19:56
jdong(ext4 feature)19:56
calcand have option to defrag order most recent to oldest accessed files on the disk, that would help for non ssd's19:56
calcjdong: oh its in ext4?19:56
paranin the mean time you could always use XFS.19:56
jdongcalc: Windows is nice that it gives an atomic defrag function that basically takes a inode and place to put it19:56
calcparan: XFS is too scary for me after it eating my disk multiple times in the past :\19:57
parancalc: oh? we have many TiB on XFS at work, no problems and much better performance than ext3.19:58
calcparan: well the last time i used XFS was quite a while back > 4 years ago so it probably has improved19:59
calcbut it was very very unreliable back then19:59
jdongcalc: XFS used to have a lot of out-of-order write hazard bugs back then19:59
jdongwell s/bugs/'features'/19:59
jdongit's better19:59
jdongnot as reliable as ext3 for irresponsible plug-pulling but should be good enough in gneeral19:59
calcafter seeing its bugs and reiserfs bugs i decided to go with what everyone uses since it tends to be more debugged, eg ext3 for now19:59
jdongI put all my torrents on XFS for performance19:59
jdongmy data and OS is on ext319:59
jdongXFS's small-file performance still sucks19:59
paranthe only thing I remember is that XFS on 32 bit x86 used to be problematic, but it was years since we installed anything not x86_64 :)20:01
calcjdong: is defrag smart enough not to cross mount points?20:01
* calc considers running it on /20:02
calcparan: i'm still having to use i386 since resume doesn't work right on my laptop on amd6420:02
calcwow transmission manages to fairly consistently frag files ~ 32frag/MB20:05
ARCKEDAWTF/20:37
calcso ext4 became 'stable' as of yesterday?20:46
calcapparently fedora 10 is going to use it20:47
calchmm actually that happened on oct 11, wikipedia seems to be conflicting itself20:48
NCommandercalc, well, fix the confliction20:57

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