/srv/irclogs.ubuntu.com/2009/10/05/#ubuntu-kernel.txt

=== doko__ is now known as doko
=== akgraner_ is now known as akgraner
=== soren_ is now known as soren
rpintoThe Ubuntu server at my place just hangs and stops responding and on the console the following message is seen looping  Sep 25 11:51:57 ubuntu kernel: [ 1298.605672] unregister_netdevice: waiting for ppp0 to become free. Usage count = 1 Sep 25 11:52:07 ubuntu kernel: [ 1302.497456] unregister_netdevice: waiting for ppp0 to become free. Usage count = 113:30
rpintoit's the ubuntu 8.04 LTS version13:30
rpintoguys please help.. this server is hanging atleast 2wice a day13:30
rpintohere's the message again13:31
rpintoSep 25 11:51:57 ubuntu kernel: [ 1298.605672] unregister_netdevice: waiting for ppp0 to become free. Usage count = 1 13:31
rpintoSep 25 11:52:07 ubuntu kernel: [ 1302.497456] unregister_netdevice: waiting for ppp0 to become free. Usage count = 113:31
rpintoanybody worked with asterisk+voip?13:37
apwrpinto, which kernel version are you running on there14:17
rpinto2.6.24-24-server14:19
apwsmb, seen anything like that?14:20
smbapw, not that I remember...14:21
apwrpinto, are you able to login on the console when it does that?14:29
rpintono14:29
apwif so then getting a ps -ef and an lsmod might be informative14:29
rpintoit just hangs14:29
rpintono ssh or vnc14:29
rpintonothin orks14:29
apwwhen u ssh in are you coming in over the ppp link or elsewhere14:30
apwand what is the ppp link being used for if at all14:30
rpintossh is local for me14:31
rpintonot the ppp link14:31
rpintothere are 2 ppp links14:31
rpinto2 modems14:31
rpinto256kbps and 2 mbps14:31
rpintoany idea on my issue?15:00
smbrpinto, Not really. Thus that much silence. It sound a bit like something on close-reopen being not cleanly handled. But I cannot recall something like this. Is networkmanager dynamically doing setup which might be set to something static for testing?15:09
rpintohow do i check that?15:09
smbI would expect it to show up under the connections shown by left-clicking on the nm applet. Unfortunately not really much knowledge there...15:15
lxphi16:30
lxpis it possible that the current karmic kernel is missing cpio as build-dependency?16:31
apwthere is no specific dependancy that i can see no16:37
lxpi tried building in my launchpad ppa and also on my local machine (with pbuilder) always with the same result /bin/bash: line 5: cpio: command not found16:37
lxphttp://launchpadlibrarian.net/32984274/buildlog_ubuntu-karmic-i386.linux_2.6.31-11.38~phc0_FAILEDTOBUILD.txt.gz16:37
lxpi must admit that the kernel compiled in the ppa is modified16:38
lxpbut an my local machine i also tried the unmodified one16:38
apwwell the same kernel is built in the main archive16:38
lxpyes i looked at the build logs16:38
rtgapw, I think it might be a chroot problem. I had to restart the i386 build once.16:38
lxpand it seems it uses a different base tarball16:39
apwso that might imply there is a change in some other package which has tripped through16:39
lxpyes i found a change in dpkg-dev16:39
lxpbut that is older16:39
lxpcpio dependency was removed in dpkg version 1.15.016:40
rtglxp, so, do you think it needs to be added to the kernel package as a build dep?16:41
* apw had the feeling we got cpio for free via some other standard build environment deps16:42
rtgapw, maybe that has changed.16:43
apwyeah tends to unfortuanatly16:43
lxpsorry i was away16:58
lxpit would be good if someone else could verify if cpio should be added as build dep16:59
lxpbut i suppose so as cpio is not founded on my clean pbuilder environment and also on the seaborgium build machine with /home/buildd/filecache-default/0517a8e2e8e875206f54e38411e83733c120b9b1 tarball as chroot17:03
rtglxp, I've add cpio as a build dep, so it'll take effect on teh next upload.17:04
lxpthanks17:04
rtgapw, what did you and Keybuk come up with for i915/agp module load ordering? Shall we just build one of them in?18:53
apwthe correct fix i think needs new infrastructure ... its possibel we could build in the agp module18:54
rtgapw, I think thats the simplest solution.18:54
apwi'll see if that builds and post some test kernels18:54
rtgapw, I assume it'll build, but will it fix your race problem?18:55
apwinterestingly keybuk suggested a modprobe incantation, but it may 18:56
apwhave been tounge in cheek18:56
apwrtg the sufferers are able to reproduce pretty easily18:56
apw<Keybuk> install i915 /sbin/modprobe -qb intel-agp ; /sbin/modprobe --ignore-install i915 $CMDLINE_OPTS18:56
rtgapw, ok, I'd prefer a kernel solution for this. its the way we've solved other load races.18:56
apwyeah its clearly an issue kernel side18:57
rtghmm, does agp need any module parameters? thats what usually bites us when we build something in18:57
apwit doesn't have any obvious options18:58
rtgapw, nope. I was just looking at intel-agp.c and couldn't see any either18:59
apwalways a worry at this stage in the release18:59
apwstatic int __init agp_intel_init(void)18:59
apw{18:59
apw        if (agp_off)18:59
apw                return -EINVAL;18:59
apwit would be off'able from the command line still i think18:59
rtgapw, yep  - backend.c:static __init int agp_setup(char *s) ...19:01
=== Wim_ is now known as wim
apwok i'll see if it can be flipped and get the hoover on a kernel19:02
rtgapw, do you remember offhand the magic incantation to stimulate sreadahead profiling? was it just 'profile' ?19:08
apwhmmm, i think so, but cannot remember accuralty19:09
Keybukapw: I never suggest things tongue-in-cheek :p21:54
KeybukI instead simply stay silent21:54
KeybukI offered the modprobe hack as a workaround for karmic provided that we agree to come up with a proper fix for lynx21:54
KeybukI'm not a fan of building things in to solve ordering problems21:55
KeybukI'd even like to get ehci-hcd and ohci-hcd back as modules again21:55
rtgKeybuk, I'm thinking about some macro magic that'll tie these modules together symbolically, then let modprobe just do the right thing.21:57
Keybukas I understand it, the problem is that it's not as simple as i915 depends intel-agp21:57
Keybuksince some cards that i915 supports don't use agp21:58
Keybukis that right?21:58
rtgKeybuk, even so, it won't hurt to load agp.21:58
Keybukwell, in that case, just make i915 depend intel-agp21:58
rtgthats kind of what I'm wiorking on. its a gross hack right now21:58
Keybukisn't that just a single macro?22:00
Keybukit'd be worth talking upstream22:00
rtgKeybuk, definitely22:01
Keybukabout whether we should actually have an agp: subsystem22:01
Keybukso intel-agp would expose agp:i915 or something22:01
Keybukand then the i915 driver would have agp:i915 as well as pci:blah22:01
Keybukthat'd mean that the ordering was enforced the _right_ way22:01
Keybukbut ime they like to pretend that agp is just an aperture to pci, rather than a subsystem in its own right22:01
Keybukand that wouldn't solve the ehci/[ou]hci ordering problem anyway22:02
Keybukfor the latter, it looks like we're getting "soft depends" support for modprobe22:02
Keybukwhere a soft dependency can be either pre or post22:02
Keybukmodprobe will try to load it22:02
Keybukbut obey they blacklist22:02
Keybukand if it fails, won't fail the module actually being loaded22:02
rtgKeybuk, won't those soft dependencies (or load orders) have to be managed by modprobe?22:02
apwwe basically want Recommends: for modules22:03
Keybukrtg: we'll put them in modinfo like we do for depends already22:03
rtgif we're gonna do that, then why not find a kernel solution.22:03
Keybukindeed22:04
rtgor are you talking about a soft-depends modalias gizmo?22:04
Keybukright, exactly that22:04
KeybukI'm muttering about what the right kernel solution might be :p22:04
rtgah, likely a bit more elegant22:04
apwthat sounds like the 'right' long term soln. to me22:04
rtgwell, for karmic we're gonna have to use an uglier solution, like symbol dependencies.22:05
Keybukreally?22:08
* Keybuk thought there was a MODULE_DEPEND macro or something22:08
apwwe do have to ensure i915 still loads if intel-agp does not22:09
rtgperhaps. looking...22:09
apwlike if you have 0 aperture enabled in the BIOS22:09
apwie. is a hard depend going to cut it22:09
Keybukhard depend will fail that situation22:11
apwalso we need to consider the amd case, which means a different agp module22:11
apwbeep, not for i91522:12
Keybukdo amd have i915?22:12
apwnope, ignore me22:12
mjg59When will you have i915 without AGP?22:12
mjg59int i915_driver_device_is_agp(struct drm_device * dev)22:13
mjg59{ return 1;22:13
mjg59}22:13
apwhandy22:13
mjg59i915 won't do anything useful unless intel-agp is there22:13
mjg59Otherwise you'll never get any video memory22:13
Keybukin which case, i915 should just depend on it?22:14
mjg59I don't think there's any direct symbol use22:14
mjg59i915 just calls into the AGP subsystem22:15
Keybuksure, but you can add an explicit depend too22:15
KeybukI'd tell you the macro but I had no git tree here, and it's being git (ie. slow)22:19
rtgKeybuk, I didn't see anything named DEPEND in modules.h, but there might be some other possibilities. I'll mess with it more tomorrow. I'm outta here for now.22:21

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