Bug: PPP dropouts in >=2.6.16
Subsystems (2)
We do seem to have had a few reports of ppp regressions around this timeframe.
Begin forwarded message:
Date: Thu, 20 Apr 2006 23:28:24 +0200 (CEST)
From: Nuri Jawad <[email protected]>
To: [email protected]
Subject: Bug: PPP dropouts in >=2.6.16
Good evening,
I've recently had problems with my ADSL connection (PPPoE) after upgrading from 2.6.15.3 to 2.6.16.5. Every now and then, it would stall for 30-50 seconds. According to tcpdump, during these dropouts packets get received through ppp0 but none that are supposed to be sent appear on the interface. This is consistent with the modem not sending out any data via its ATM interface during these periods. I made sure the ISP, modem or ethernet interface wasn't the problem with a second box running IPCop (minimal 2.4 router distro, I can log in twice with my ISP) and a telnet connection to the modem that never stalled.
Upgrading pppd from 2.4.2 to 2.4.4b1 and rp-pppoe from 3.5 (latest Debian package) to 3.8 had no effect.
I was using Bittorrent and also the folding@home client so the system had a high load. Stopping those seemed to reduce the frequency of dropouts but they were still coming up at least every few hours. A fallback to the old kernel made the problem disappear.
I then tested 24 hours a day this week by pinging my box from 2 hosts and making sure above load was persistent, while trying different kernels. So far I can say that:
- <= 2.6.15.7 is not affected, tested with .3, .4 and .7
- >= 2.6.16 is affected, tested with 2.6.16, .1, .5 and .9
- the dropouts last between 30 and 50 seconds but often exactly 41, they appear about every half to one hour
- a night yields 20-40 lost packets with 2.6.15 and 700-1100 with 2.6.16 on my connection
The system:
P4 Northwood with HT enabled, 2 GB RAM, Asus P4C800 Boot/root PATA ICH5, torrents saved to SATA HD through ata-piix Third drive through sata-promise
Debian GNU/Linux unstable
Kernel config: http://jawad.org/.config
Let me know what I can do to give you more specific information.
Regards,
Nuri
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines · Andrew Morton
We do seem to have had a few reports of ppp regressions around this timeframe.
me too. I couldn't use 2.6.16 at home on my pppoe connected router because it was so slow. I didn't have time to debug. I can probably try patches and provide more data too. Tell me what is needed.
Is there a bugzilla on this?
Jesse
Quoted 9 lines · Jesse Brandeburg
Quoted 3 lines · Andrew Morton
We do seem to have had a few reports of ppp regressions around this timeframe.
me too. I couldn't use 2.6.16 at home on my pppoe connected router because it was so slow. I didn't have time to debug. I can probably try patches and provide more data too. Tell me what is needed.
probably git-bisect, sorry. It's the sort of thing you can do while reading a good book ;)
Quoted 1 line
Is there a bugzilla on this?
I don't think so. Bubgzilla records which I'm folowing which mention ppp are:
http://bugzilla.kernel.org/show_bug.cgi?id=5695
http://bugzilla.kernel.org/show_bug.cgi?id=6197
http://bugzilla.kernel.org/show_bug.cgi?id=6402
Perhaps the final one is related.
Quoted 8 lines · Jesse Brandeburg
Quoted 3 lines · Andrew Morton
We do seem to have had a few reports of ppp regressions around this timeframe.
me too. I couldn't use 2.6.16 at home on my pppoe connected router because it was so slow. I didn't have time to debug. I can probably try patches and provide more data too. Tell me what is needed.
I seem to have some trouble on my PPPoE too. But it's not really unusable, just dropouts now and then.
-Andi
On Sat, Apr 22, 2006 at 02:02:59AM +0200, Andi Kleen told us:
Quoted 6 lines · Jesse Brandeburg
Quoted 5 lines · Andrew Morton
Quoted 3 lines
We do seem to have had a few reports of ppp regressions around this timeframe.
Quoted 6 lines
Quoted 3 lines
me too. I couldn't use 2.6.16 at home on my pppoe connected router because it was so slow. I didn't have time to debug. I can probably try patches and provide more data too. Tell me what is needed.
I seem to have some trouble on my PPPoE too. But it's not really unusable, just dropouts now and then.
no problems here with pppoe, kernel is 2.6.17-rc1-mm1, ppp 2.4.4-b1.
Sven
Quoted 2 lines
(quoted diff) +0
-2-Andi -
Signature · 2 lines
Linux zion.homelinux.com 2.6.17-rc1-mm1_31 #31 Sat Apr 8 16:18:23 CEST 2006 i686 athlon i386 GNU/Linux 09:40:22 up 1 day, 13:14, 4 users, load average: 0.34, 0.16, 0.11
Quoted 1 line
no problems here with pppoe, kernel is 2.6.17-rc1-mm1, ppp 2.4.4-b1.
Did you create a high load on the system in the manner I described?
The bug once only appeared after about 6 hours here when line + CPU had been mostly idle. But that was the longest time between failures. Can you test with one of the 2.6.16 kernels I tried (latest was .9)? Can't say for sure if CPU load is a factor, load on the connection seems to be.
After using 2.6.15.7 for another 5 days now with some more stress testing, I can assure that 2.6.15 definitely does not produce any dropouts on this machine.
For now I'll try to reproduce the effects on my second box (AMD64/nf4).
I'd be happy if someone could give me some hints on which patches I could try to revert as the changes to ppp between the two versions look fairly harmless. For the first time in 8.5 years, I cannot use a 'stable' kernel release and there is really nothing special about this system.
Regards,
Nuri
Hi,
On Wed, Apr 26, 2006 at 02:36:18AM +0200, Nuri Jawad told us:
Quoted 7 lines
Quoted 1 line
no problems here with pppoe, kernel is 2.6.17-rc1-mm1, ppp 2.4.4-b1.
Did you create a high load on the system in the manner I described? The bug once only appeared after about 6 hours here when line + CPU had been mostly idle. But that was the longest time between failures. Can you test with one of the 2.6.16 kernels I tried (latest was .9)? Can't say for sure if CPU load is a factor, load on the connection seems to be.
well, machine is mostly idle beside downloads now and then or software compilations (kernel mostly) or periodic mail fetching including virus and spam scanning. This is my box at home (on which I'm currently writing this email). I'm currently compiling 2.6.16.9 and will test with this release later on. I will get some periodic ping running to check for connection failures and put some load on the machine. Will come back with the results later, but don't hold your breath waiting for me, kernel compile takes more than two hours on my box :-)
Regards,
Sven
Quoted 4 lines
Regards,
Nuri
Signature · 2 lines
Linux zion.homelinux.com 2.6.17-rc1-mm1_31 #31 Sat Apr 8 16:18:23 CEST 2006 i686 athlon i386 GNU/Linux 07:56:45 up 3 days, 11:30, 2 users, load average: 2.79, 1.32, 0.68
On Wed, Apr 26, 2006 at 02:36:18AM +0200, Nuri Jawad told us:
Quoted 4 lines
Did you create a high load on the system in the manner I described? The bug once only appeared after about 6 hours here when line + CPU had been mostly idle. But that was the longest time between failures. Can you test with one of the 2.6.16 kernels I tried (latest was .9)? Can't say
Unfortunately it seems like plain 2.6.16.x doesn't like the ide controller on my (VIA) mainboard, I'm getting I/O errrors on hda when booting this kernel (but hard drive works ok with -mm) :-( actually I haven't been running a plain stable kernel for a while, I've been running -mm kernels for ages...
Sven
Quoted 1 line
for sure if CPU load is a factor, load on the connection seems to be.
Signature · 2 lines
Linux zion.homelinux.com 2.6.17-rc1-mm1_31 #31 Sat Apr 8 16:18:23 CEST 2006 i686 athlon i386 GNU/Linux 23:16:15 up 3:58, 2 users, load average: 0.83, 0.82, 0.79
Quoted 7 lines · Sven Schuster
On Wed, Apr 26, 2006 at 02:36:18AM +0200, Nuri Jawad told us:
Quoted 4 lines
Did you create a high load on the system in the manner I described? The bug once only appeared after about 6 hours here when line + CPU had been mostly idle. But that was the longest time between failures. Can you test with one of the 2.6.16 kernels I tried (latest was .9)? Can't say
Quoted 6 lines
Unfortunately it seems like plain 2.6.16.x doesn't like the ide controller on my (VIA) mainboard, I'm getting I/O errrors on hda when booting this kernel (but hard drive works ok with -mm) :-( actually I haven't been running a plain stable kernel for a while, I've been running -mm kernels for ages...
So there's something in -mm which fixes your kernel? It's usually the other way around ;)
And it sounds like something which has been in -mm for a long time, so it might not be a patch which I was planning on sending upstream.
Can you think of a way in which we can identify which patch does the good deed?
Hi Andrew,
On Wed, Apr 26, 2006 at 03:07:33PM -0700, Andrew Morton told us:
Quoted 2 lines
So there's something in -mm which fixes your kernel? It's usually the other way around ;)
actually this was the first time that I tried a "normal" kernel. I haven't chosen to run -mm because it fixed something for me originally, I just run -mm for a matter of taste ;)
Quoted 5 lines
And it sounds like something which has been in -mm for a long time, so it might not be a patch which I was planning on sending upstream.
Can you think of a way in which we can identify which patch does the good deed?
My first thought was it had something to do with pata_via, as mkinitrd complained it cannot find that module in 2.6.16.9 when I installed it. Taking a closer look, it doesn't even seem like pata_via is really used, its use count in lsmod output is 0. But, in the last few releases of -mm I had problems every now and then where my box didn't want to boot complaining about lost interrupts on hdb (hdb here, not hda) or it just froze after some days of uptime (I was able to do sysrq though). Later on I ran SMART self tests on both my hard drives which didn't reveal any errors. Google told me some other guys with VIA based boards had similar problems which went away when using a board with another vendor's chipset. Being a lazy bastard and having no real time I stopped digging into this...
How to debug? I might try unapplying VIA and/or IDE related patches from -mm until I get the same problem like with the stable series. If one would tell me which patches I should try :-)
Here's the dmesg output concerning my IDE controller:
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xxVP_IDE: IDE controller at PCI slot 0000:00:07.1
PCI: Via IRQ fixup for 0000:00:07.1, from 255 to 0VP_IDE: chipset revision 6VP_IDE: not 100% native mode: will probe irqs laterVP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:07.1
ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:pioProbing IDE interface ide0...
hda: Maxtor 6Y120L0, ATA DISK drive
hdb: Maxtor 6Y120L0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: AOPEN CD-RW CRW4852 1.00 20030123, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes supported
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 >
hdb: max request size: 128KiB
hdb: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hdb: cache flushes supported
hdb: hdb1 hdb2 hdb3 hdb4 < hdb5 hdb6 hdb7 hdb8 >
hdc: ATAPI 40X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20
If someone wants me to provide more info, test patches or anything please tell me :-)
Thanks
Sven
--
Linux zion.homelinux.com 2.6.17-rc1-mm1_31 #31 Sat Apr 8 16:18:23 CEST 2006 i686 athlon i386 GNU/Linux
07:19:57 up 12:02, 2 users, load average: 0.19, 0.10, 0.13
Quoted 2 lines · Sven Schuster
but don't hold your breath waiting for me, kernel compile takes more than two hours on my box :-)
Ouch. Takes 5/7 minutes here on the AMD64 resp. P4. Computer museum? :P
Anyhow, I tested PPP for 2.5 hours on the AMD64 the day before yesterday with a bidirectional transfer that maxed out the upstream. Last night, I additionally put some load on the CPU. Another 3 hours, no problems whatsoever. Looks like the bug does not manifest on that system.
The next step will be to clone .config's settings as far as possible with the different hardware and try again.
Regards,
Nuri
Re: Fw: Bug: PPP dropouts in >=2.6.16 - updates
In reply to Andrew MortonSome more info:
- turning off Hyper Threading and using a uniprocessor kernel did not improve things
- so didn't using 2.6.17rc3, in fact the bug manifested after only 4 minutes with a 43 seconds gap
- those kernel debug watchdog routines don't detect anything
Going to try kernel PPPoE next time. Btw, at least with rp-pppoe it requires HDLC and that dependency isn't caught in menuconfig.
I would try to roll back some patches between 2.6.15.7 and 2.6.16 but
that changelog is pretty large. I'm sure there are good reasons for the current development model, but with the old unstable/stable system and its few changes between stable versions, the right
one could've been spotted easily :/.
Regards, Nuri