/srv/irclogs.ubuntu.com/2009/06/30/#ubuntu-kernel.txt

=== sconklin is now known as sconklin-away
=== SEJeff_ is now known as SEJeff_away
=== SEJeff_away is now known as SEJeff_home
vi390hi, how can I get openVZ kernels with jaunty07:01
slytherinIs ATI KMS configured/enabled in karmic kernels? The kernel upstream changelog says it is enabled for non-x86.09:22
mdzslytherin, the config used is in /boot/config-`uname -r`09:27
mdzslytherin, I believe the relevant option is CONFIG_DRM_RADEON_KMS09:31
mdzit doesn't seem to be set at the moment in Karmic09:31
mdzthough I believe apw has a kernel build with it enabled09:32
apwthat code comes in the 2.6.31-rc1 update, which is the next kernel for karmic.  where it is enabled by default09:33
slytherinmdz: I haven't installed karmic yet. I plan to upgrade my ibook (powerpc) once the KMS is enabled.09:34
slytherinapw: thanks for info.09:35
apwthere is an older KMS enabled kernel available in one of my PPAs09:35
slytherinapw: my machine is powerpc arch, hence PPAs are not useful to me.09:35
apwthe powerpc kernels in karmic are lagging somewhat right now09:36
slytherinapw: by the way, the changelog for linux package in karmic says that it is rebased on 2.6.31-rc1. So I believe once it builds properly it will have KMS.09:36
apwright, it does have the code but the ports architectures don't seem to be building right now09:37
slytherinapw: anyway I can help to fix it?09:38
apwto be honest i've not even looked yet at why they arn't building.  the ports maintainers normally sort that out09:38
slytherinwhich means I have to bug NCommander09:39
apwyeah there are a couple of them i think09:53
=== lifeless_ is now known as lifeless
apwKeybuk, hey ... the moving from 486 to 586 discussion for i386 architecture, where has that gotten to?  i am trying to work out if i need to re-integrate the 386 kernel flavour10:15
Keybukapw: still waiting on a 586 build to test with10:19
apwthanks for the info10:22
bullgard4Since upgrading from 2.6.24-24-generic to 2.6.28-13-generic the number of loaded kernel modules almost cut in half. Why?10:56
smbbullgard4, because most drivers are built-in10:57
bullgard4smb: Thank you.11:03
vi390can somebody tell me if there is any openVZ kernels for jaunty ?11:57
* hyperair doesn't think so12:27
hyperairyou could dig around the PPAs and see, though12:27
smbmanjo, look at the makefile of dmraid as it is before. you only get one .ko14:04
manjosmb, I did not change the makefile ... and it produced many kos14:05
apwyeah i think he is right, its makeing a .ko per .c there14:05
manjodm-raid45.ko  dm-message.ko dm-region-hash.ko 14:05
smbafter importing the new version or before?14:05
apwbefore for sure14:05
apwobj-$(CONFIG_DM_RAID45) += dm-raid4-5.o dm-mem-cache.o dm-region_hash.o dm-message.o14:05
smbobj-$(CONFIG_DM_RAID45) += dm-raid4-5.o dm-mem-cache.o dm-region_hash.o dm-message.o14:05
apwthat is adding them raw, so each is a separate module14:05
smbthat is one .ko14:05
apwsmb, nope14:05
apwyou see14:05
apwdmraid-obj = foo.o bar .o14:06
apwif you merge .o's to make a .ko14:06
smbso?14:06
apwobj-$(CONFIG_TLSUP) := tlsup.o14:06
apwtlsup-objs := tlsup_mod.o tlsup_acpi.o tlsup_backlight.o tlsup_hotkeys.o tlsup_radios.o14:06
apwthat construction makes one .ko out of a bunch of .o's14:07
apwobj-$(CONFIG_DM_RAID45) += dm-raid4-5.o dm-mem-cache.o dm-region_hash.o dm-message.o14:07
apwthat form makes one .ko per .o14:07
smbHm, ok , you are right here. Not sure we actually wanted that14:07
apwyeah if it worked using the first form, then things seem less worrying14:08
manjoapw, I thought we changed it to be that way... so that was a mistake you say ? 14:08
apwi don't know for sure one way or the other right now14:09
manjook how about this ? 14:09
manjoI use the makefile that came with the patch14:09
manjoand build the ko in ubuntu ? 14:09
manjothrow away the old make file 14:09
apwwhat does that one look like14:09
manjoI wanted to do that originally14:09
smbThe problem to me seems that drivers/md also produces similar modules.14:09
manjoyes it does 14:10
smbI guess the renaming is the critical part here14:10
apwyes they have been renamed there may be some other renames in the code we cannot see14:10
smbBut probably it would make much more sense to use the form to produce only the dm-raid module including all the code14:10
apwmanjo, can you pastebin the new Makefile14:11
manjoyes14:11
apwso we can see what its like, its likely an external module build job, whjich is not usable without mod in the kernel14:11
manjoapw, heh the new Makefile does the same thing 14:11
manjo+obj-$(CONFIG_DM_RAID45)                += dm-raid45.o dm-log.o dm-memcache.o \14:12
manjo+                                  dm-region-hash.o dm-message.o14:12
smbI believe it produced modules differently named14:12
smbdm-region-hash.o in drivers14:12
smband dm-region_hash.o in ubuntu14:12
apwmanjo, can you pint me at the original patch14:13
manjo http://people.redhat.com/~heinzm/sw/dm/dm-raid45/14:13
manjosmb, when you apply the patch it no longer produces dm-region_hash.c 14:14
manjobut produces  dm-region-hash.c14:14
smbapw, I guess what happened was exactly that. Take the patch and the files. And to avoid duplicated rename on14:14
smbbut that still leaves the risk of duplicate symbols14:14
apwyeah ... is a little worrying14:14
smbSo IMO the simples solution is to import it the other way14:14
smbreplace the makefile to build one module14:15
manjoalso does not produce dm-mem-cache.c but it produces dm-memcache.c 14:15
apwwhich one?  the old?14:15
manjoI think this is what we need to do .. throw away the old ones 14:16
manjouse the new patch to produce one module 14:16
smbNeither dm-mem-cache nor dm-message are in drivers/md, but this might be preparations to get it merged upstream14:16
manjoright ... apw smb  are you in agreement with throwing away the old stuff in /ubuntu/ and makeing dmraid as one module ? 14:17
apwdmraid4-5 as one module14:17
smbyep14:17
apwif so, thats the thing to try yes14:17
manjoso we will not have many kos under dmraid4-514:17
apwapply the patch, copy the changed/new files over14:18
apwand then use the -objs form to make one .ko14:18
smbmanjo, one more second, let me check something14:18
apwthen see if it will build/boot/load14:18
manjoyeah actually I have done all that ... just need to make one module ..14:18
apwthe tlsup module is a good example of how to do that14:18
smbdm-raid45-objs :=       dm-raid4-5.o dm-log.o dm-mem-cache.o \14:18
smb                        dm-region_hash.o dm-message.o14:18
smbobj-m                   += dm-raid45.o14:18
smbthat is the makefile in Hardy lum for it14:18
apwheh14:19
apwso we know that that works then ... good14:19
manjook one module it is ... one line change in makefile 14:19
apwthe second entry should be obj-$(CONFIG_...) += dm-raid45.o14:19
smbI laso renamed it from dm-raid4-5 to dm-raid45 because at that time the module registered itself with that name and14:19
smbthere is some dm rules that normally load a module if you request a function's name14:20
manjoyeah I like to call it dm-raid45 instead of 4-514:20
smbmanjo, check the module code for the name it registers, to be on the safe side14:20
smbstatic struct target_type raid_target = {14:22
smb        .name = "raid45",14:22
smbAt least the version in Jaunty did still name itself like this14:22
apwmanjo, so you have a plan?14:23
manjo.name = "raid45",14:23
manjoyeah14:23
manjosmb, apw ok now built as one module ... 14:55
* smb pats manjo on the shoulder14:55
manjoa simple boot & load module test will be ok ? 14:55
smbmanjo, I would say for the first step. But be prepared for the Inquisition as soon as apw uploads it. ;-)14:56
manjoheh14:56
manjoyeah I figured that is bound to happen14:57
manjoapw, smb, btw there are no changes to iscsitarget14:58
manjono new version out there 14:58
manjoand looks like the same case with compcache14:59
manjoalthough in the case of compcache there is some effort going on to get it upstream14:59
smbmanjo, Well ok, so there is nothing to do. Except maybe, get in touch with some server guys and ask them whether they would prefer to have it as dkms module14:59
manjofor iscsi ? 15:00
* smb nods15:00
* manjo nods twice 15:00
* smb goes to fill another cup with dark liquid15:01
hyperairdoes anyone know why acpi-cpufreq has been built into the kernel rather than as a module since jaunty?15:02
hyperairi mean, does it make much difference in loading time?15:02
smbhyperair, That was the intention then. We are aware of the issues you got and we will think about it. Just cannot tell any outcome.15:07
hyperairsmb: the phc-linux issue? okay then, thanks =)15:08
hyperairas long as it is given attention15:08
smbhyperair, Yes, it is. It is correct that this is a different gouvernor/driver which cannot get active as the built-in acpi-cpufreq is always there before.15:08
hyperairsmb: in actuality, the phc linux module is just a patch on the acpi-cpufreq module. some implementations of the install turn it into a differently named module, but it's essentially acpi-cpufreq that's patched15:09
hyperairsmb: or the amd one, which i can't remember the name of15:10
smblikely powernow-k815:10
smbHm, ok. So it would not help you, just to have an option to prevent acpi-cpufeq from getting active.15:11
mjg59Use ksplice15:11
smbmjg59, Don't let the security people hear ;-)15:11
amitkhyperair: is this code unlikely to go upstream?15:13
smbBut in general I am a bit against this approach of having patched external modules replacing kernel modules...15:13
hyperairamitk: unlikely. it's been rejected before, because "it allows users to shoot themselves in the foot"15:13
smbamitk, It makes use of non-standard voltages and frequencies. What would you think=15:13
smb?15:13
mjg59cpufreq upstream have rejected it, yes15:14
amitkfair enough.15:14
hyperairsmb: well, if acpi-cpufreq is prevented from getting active, i think it's possible to inject the patched acpi-cpufreq module into the kernel via insmod15:14
hyperairsmb: no, only non-standard voltages.15:14
mjg59It's not so much that it allows users to shoot themselves in the foot, it means that you're operating the kernel outside normal parameters and could cause all kinds of subtle failures which may appear to be kernel or app bugs15:15
hyperairsmb: and it doesn't allow you to overvolt, only undervolt15:15
mjg59So you also get to shoot other people in the foot15:15
bjf_afkNOTICE: There will be a kernel team meeting on #ubuntu-meeting today at 17:00 UTC15:15
mjg59Tainting would deal with the kernel side, but it's like overclocking - it may be fine for everything except a very specific set of instructions, so it may seem like an application issue15:15
smbYes, and being a replacement module also add to the maintenance nightmare15:15
hyperairperhaps a nice large warning by the phc guides =p15:17
hyperairor a huge warning in the dmesg log when the phc values are changed15:17
amitkhyperair: not good enough. We don't want to deal with such bugs _at all_ - whether kernel or app space. And app-space reports don't always ask for dmesg15:18
smbhyperair, The second sounds like a minimum. 15:18
hyperairsmb: what second?15:18
smbhyperair, A big dmesg warning. But as amitk says, that would not help if strange things happen in app space15:19
hyperairamitk: yeah it's true. well either way, it was rejected by upstream, and is probably not going in, so let's not worry about that issue. what i'm more concerned with is the ability to just recompile the module with the headers installed instead of having to recompile the whole kernel.15:19
hyperairin my case, my cpu + fan was going haywire so a kernel compile would cause it to overheat and shutdown15:20
hyperairundervolting the cpu did a great job at reducing the temperature though, and now i can deal with kernel compiles without having to go through a ^Z + fg cycle15:21
mjg59It's debatable whether it's actually an OS's job to make it easy for you to deal with broken hardware15:23
smbI can understand it to a degree from the user side, but as a distro that sort of thing sounds slightly scary15:24
smbI run one of my laptops with a upper frequency limit due to the fact that the fan cannot cope with it running full speed15:25
hyperairmjg59: a lot of hardware is broken, especially those with particularly stupid BIOSes. are you saying that we shouldn't support those because their hardware is stupid?15:31
hyperairsmb: acpi-cpufreq compiled as a module; that's all i'm asking.15:32
hyperairsmb: that's all is required to make it that much easier to set up phc-linux15:32
hyperair+that15:32
mjg59Compiling acpi-cpufreq as a module means compiling all of cpufreq as modules15:32
hyperairis that so?15:33
smbyes15:33
hyperairthe tarball only contains a acpi-cpufreq.c15:33
hyperairand it can be compiled on the spot with just the kernel headers installed, if acpi-cpufreq is compiled as a module15:33
hyperairbut either way, compiling all of cpufreq can't take more than a few minutes; maybe ~5 minutes or less on some decent hardware15:34
hyperaircompare that to taking nearly an hour, or more to compile the kernel15:34
smbThe sequence of probing can change the used driver. If you want to have control over that you have to compile them either all as modules or in15:34
hyperairthe *entire* kernel, just because you want changes in that tiny part15:34
* hyperair fires up menuconfig15:35
hyperairmenuconfig doesn't seem to agree15:36
smbmenuconfig does not care about policy15:37
smbIf you want to prefer acpi-cpufreq over powernow-k7 for example, you cannot have powernow-k7 built in and acpi-cpufrq as a module15:38
hyperairwhat about both of them as modules?15:38
hyperairit's one or the other, isn't it?15:39
hyperairif you use acpi-cpufreq, you won't use powernow, and vice versa?15:39
mjg59No15:39
hyperairdon't tell me you use both?15:39
mjg59No15:39
hyperairthen?!15:39
mjg59But there are other drivers that may bind15:39
hyperairbind?15:39
mjg59To the processor15:39
hyperairblargh15:39
mjg59And if they're built into the kernel, you'll end up with that driver instead15:40
mjg59Hence, all built in or all modular15:40
hyperairlet's look at it this way: intrepid and previous versions of ubuntu had acpi-cpufreq/powernowwhatever compiled as a module. why can't we revert the cpu freq scaling part back to that stage?15:40
=== bjf_afk is now known as bjf
smbAs the decision was made in favour of boot time (and module loads at least had a bad impact on that), this depends on whether there might be less or no such penalty now.15:41
hyperairokay, so the deciding factor is now basically how much delay there is, am i right?15:42
bjfamitk, the other differences between my tree and yours is that I also rebased to the 2.6.31 karmic changes over the weekend15:42
bjfamitk, but I think those changes are in the same files (fewer of them)15:43
bjfamitk, any additional fixups were done as separate commits (which I was going  to squash before submitting)15:43
smbMore or less. And probably too how the common feeling is to change a configuration for a, maybe not uncommon, corner case.15:44
amitkbjf: sure, I'm not worried about the state of the patches right now. I have a kernel the compiles from your tree currently. We can rework the patches later. 15:44
smbhyperair, But the main part is the boot delay, yes15:44
bjfamitk, was just letting you know my thinking15:45
hyperairsmb: so all i have to do is benchmark?15:45
amitkbjf: did you get your pegatron or b2 board booting with anything apart from your kernel?15:45
hyperairsmb: in that case, which kernel version would you prefer me benchmark?15:45
amitkbjf: ack.15:46
bjfamitk, I got the b2 board booting with files from Freescale, The "P" board got shipped out and I never tried booting it.15:46
bjfamitk, don't have a "P" board now15:46
smbhyperair, At the moment, let us do a bit of research. There might be changes to user space that improve things too. So it is not only the kernel15:46
amitkbjf: ok, so we have different boards now.15:47
bjfamitk, you don't have a b2? (right, I remember now)15:48
amitkbjf: nope. And it took me all day today to chase down the right redboot image for my board.15:48
hyperairsmb: alright, keep me updated then? =)15:48
smbhyperair, sure, I got the bug number and you are usually around ;-)15:49
amitkbjf: I am working towards a SD image where I can change kernels on the fly15:49
bjfamitk, I'd like that as well15:50
* smb has them (sd cards) nearly all for i386 series15:51
hyperairsmb: thanks =)15:53
manjosmb, zul from server is ok with dkm on iscsitarget... so I am going to go ahead and do it 15:55
manjocurrently testing dm-raid45 15:56
smbmanjo, I won't hold you back then. :)15:56
manjosmb, as you suspected ... building it as one module wont work... due to duplicate symbols17:02
manjodm-raid45 wont load 17:02
manjosmb, apw revert back to separate kos ? 17:02
smbmanjo, You might want to look at the hardy-lum17:02
manjook17:03
smbYou can remove exports from those other modules17:03
manjoyeah that is what I was just thinkig 17:03
apwyeah worth a try, we really only want that one loading that code for the raid45 versions17:05
smbAnd that got it linked, so it won't need the exports17:05
Keybukapw: around?17:16
apwhello17:16
Keybukcould you cook me up a custom kernel with http://git.kernel.org/?p=linux/kernel/git/gregkh/patches.git;a=blob;f=driver-core/driver-core-devtmpfs-driver-core-maintained-dev-tmpfs.patch;h=22e58d1616d256d7fdd6c2c6365eea11de0123be;hb=6fcc499f41d83b8870b74f024aa906b85b700cb4 applied?17:16
apwKeybuk, looks interesting ... will do17:18
* hyperair scratches his head regarding inotify issues in the current git kernel18:01
hyperairinotify_init()                          = -1 EMFILE (Too many open files)18:02
hyperairdamn strange18:02
Keybukhyperair: checked the available watches?19:05
Keybukthere are per-user limits on such things19:05
hyperairKeybuk: how do i check?19:05
hyperairKeybuk: i noticed it happened after restarting nautilus a few times19:05
hyperairi was testing nautilus-share, see19:05
Keybuksee if inotify_init() returns -EMFILE ;)19:05
Keybuk       EMFILE The user limit on the total number of inotify instances has been19:06
Keybuk              reached.19:06
Keybukcat /proc/sys/fs/inotify/max_user_instances19:06
Keybukthen try poking a larger number than 128 into it19:06
Keybukecho -n 1024 > /proc/sys/fs/inotify/max_user_instances19:06
Keybukis a good start19:06
Keybukyou may want to increase /proc/sys/fs/inotify/max_user_watches at the same time (number of directories you can watch)19:07
hyperairhmmm19:07
hyperairwell i do know that inotify_init definitely returned EMFILE19:07
hyperairstrace of conky showed it19:07
Keybukincrease the maximum then19:07
hyperairtoo late. i already rebooted19:08
Keybuk:p19:08
hyperairlogging out and logging back in didnt help for some reason =\19:08
Keybukyeah, something was holding onto them19:08
Keybukusually it's something like tracker, beagle, banshee, etc.19:08
hyperairbanshee has no inotify support just yet19:08
Keybuka session-bus activated service most likely19:08
Keybuksince they won't go necessarily away when you log out19:08
hyperairtracker and beagle don't run on my notebook19:08
hyperairi'm pretty sure banshee goes away though19:08
hyperairi should have done a killall -u hyperair then19:09
hyperairis there any way to check which processes are holding which inotify handles?19:09
KeybukI tend to do kill -TERM -119:09
Keybukthen kill -KILL -119:09
Keybukafter logging in as me19:09
hyperairwhat's -1?19:09
Keybuklsof will tell you19:09
Keybukhyperair: "all"19:09
hyperairah19:09
Keybukif you don't do it as root, it just kills all yours19:09
hyperairyeah i know19:10
hyperairnever thought of doing that19:10
apwKeybuk, the kernel  you wanted is uploading to: http://people.ubuntu.com/~apw/tmpfsdev-karmic/ ... should be complete shortly19:22
manjosmb, apw dm-raid45 loads as a module 19:29
manjosingle module 19:29
manjotested on karmic 19:29
manjo64 bit19:29
apwexcellent, is that after removing the exports?19:29
manjowell had to remove the file entirely coz its already building in /drivers/md 19:30
manjoand nothing was using it in ubuntu/ 19:30
smbwhich one19:30
apwwhich file?19:30
manjodm-region-hash.c19:30
smbsorry I lost my crystal ball19:30
smbbut the patch makes changes to region hash19:31
apwmanjo, but the only reason thats there is cause it got changed ... what smb said19:31
manjoI left the changes in /drivers/md... are you guys thinking of having 2 copies of the same ? 19:32
apwno the changes should have been moved over19:32
apwand the original restored19:32
manjothe changes cannot be moved over coz there are dependcies19:33
apwi mean apply the changes, copy the 19:33
apwwhole of the changes file19:33
apwchanged file19:33
apwand then restore the original?19:33
manjoah yes then you will have 2 copies of the same file 19:33
=== bjf is now known as bjf_afk
manjocoz the patch changes the header file as well19:33
apwyes, we will but at least the original is unchanged, and cannot regress19:34
apwbring the .h file over to the same place too19:34
manjook I see what you mean... heh that is hack 19:34
apwyes, but it is the safe hack19:34
manjookies19:34
apwthe normal people with the original dm get the original code19:34
manjowill do that now 19:34
apwand 0 chance of a regression, the people who opt in to the new driver get the risk19:35
apwwe are risk averse19:35
manjohmm some how its botched way of doing it ... but less risky ofcourse 19:36
apwyes it is indeed botched, but that is the risk averse way19:36
manjok I am on it 19:36
mahfouzI had a problem today with 2.6.30-10-generic in jaunty20:07
mahfouztalked to the people in #kernel but they only started a distro flame war20:08
mahfouzstarting up with 2.6.30-10-generic, I get the splash screen all the way to the end but then an unresponsive black screen20:08
mahfouzit worked yesterday, but today it didn't anymore, even though there were no updates afaik20:08
maxbmahfouz: Well the obvious response is "If a karmic kernel doesn't work in jaunty, how about trying *Jaunty's* kernel with Jaunty?20:32
mahfouzbecause it screws up my intel video20:32
mahfouzI downloaded 2.6.30-10-generic from jaunty repo, you know?20:33
maxbNo, you didn't.20:33
mahfouzIt was in there temporarily, but now seems to be removed20:33
mahfouzI did20:33
mahfouzmaybe it was xorg-edgers20:33
mahfouzyes, I downloaded 2.6.30-10-generic from the xorg-edgers ppa20:43
mahfouzbut it worked at first and today it didn't boot anymore20:43
amitkbjf_afk: did you solve your xmodem problem?21:18
bjf_afkamitk, yes I did, user error21:19
pgranerdtchen: ping... when your around :-)21:43
amitkbjf_afk: http://pastebin.ubuntu.com/207169/ this is bad right? (size of uploaded kernel vs. size of default kernel partition in redboot)22:05
=== bjf_afk is now known as bjf
bjfamitk, yes, that looks wrong22:11
bjfamitk, got to look at my notes22:11
bjfamitk, no 22:12
* amitk is not too familiar with redboot22:13
bjfamitk, the size you uploaded is 0x1C5463 which fits22:17
amitkbjf: duh, I was forgetting the '1' in the start address22:19
bjfamitk, :-) 22:19

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