Hello,
I have got a reproducible file corruption with kernels from
2.2 series. Ftp-ing a 350MB file revealed the problem.
md5sum produced a different checksum on the target host.
In fact any write operation of a similar size will result in
file corruption (i.e. the file written is not the same as
the file read). Running a modified Bonnie test yielded the
following results (writing/comparing a ~1.7GB file):
filepos bytes offset to the next (in MB)
287977473 4094293
595566593 4094293
902807553 4094292
1209094145 4094292
1515995137 4094291
1822068737 4094
The number of bytes corrupted looks suspiciously close to the
page size. The offsets hint at the amount of memory
available for the caching purpose. The test was run in
single and multiple user modes and produced the same results
with both versions 2.2.17 and 2.2.18. Sometimes the laptop
would freeze as well. I tested the memory and it seems to
be OK.
Later, I found out that disabling the DMA solves the issue
(of course, with a severe performance penalty). Also,
kernel v2.4.0 doesn't exhibit this problem.
Below is some info I thought relevant [in case somebody
needs more, just drop me a line].
Cheers.
Dejan
P.S. Please respond directly to my address (not subscribed
to linux-kernel).
--
Dejan Muhamedagic mailto:[EMAIL PROTECTED]
Xsoft GmbH http://www.xsoft.at
Modecenterstr. 14, 1030 Vienna, Austria+43 1 7963636 676
--
IBM ThinkPad 600x (320MB of memory)
Stock kernels 2.2.17 and 2.2.18 with international crypto patches
# gcc --version
2.95.2
# dpkg -l libc6 | grep libc6
ii libc6 2.2-6 GNU C Library: Shared libraries and Timezone
# ld -v
GNU ld version 2.10.91 (with BFD 2.10.1.0.2)
# ldd --version
ldd (GNU libc) 2.2
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
# cat /proc/interrupts
CPU0
0: 100277 XT-PIC timer
1: 3014 XT-PIC keyboard
2: 0 XT-PIC cascade
8: 1 XT-PIC rtc
9: 38768 XT-PIC ibmtr_cs
11: 1 XT-PIC cs461x, i82365
12: 17960 XT-PIC PS/2 Mouse
13: 1 XT-PIC fpu
14: 118526 XT-PIC ide0
15: 7 XT-PIC ide1
NMI: 0
# cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: Intel 440BX - 82443BX Host (rev 3).
Medium devsel. Master Capable. Latency=64.
Prefetchable 32 bit memory at 0x4000 [0x4008].
Bus 0, device 1, function 0:
PCI bridge: Intel 440BX - 82443BX AGP (rev 3).
Medium devsel. Master Capable. Latency=168. Min Gnt=136.
Bus 0, device 2, function 0:
CardBus bridge: Texas Instruments Unknown device (rev 3).
Vendor id=104c. Device id=ac1b.
Medium devsel. IRQ 11. Master Capable. Latency=168. Min Gnt=192.Max Lat=7.
Non-prefetchable 32 bit memory at 0x50103000 [0x50103000].
Bus 0, device 2, function 1:
CardBus bridge: Texas Instruments Unknown device (rev 3).
Vendor id=104c. Device id=ac1b.
Medium devsel. IRQ 11. Master Capable. Latency=168. Min Gnt=192.Max Lat=3.
Non-prefetchable 32 bit memory at 0x2000 [0x2000].
Bus 0, device 3, function 0:
Communication controller: Lucent (ex-AT&T) Microelectronics Unknown device (rev 1).
Vendor id=11c1. Device id=449.
Medium devsel. Fast back-to-back capable. IRQ 11. Master Capable. No bursts.
Min Gnt=252.Max Lat=14.
Non-prefetchable 32 bit memory at 0x50101000 [0x50101000].
I/O at 0x4500 [0x4501].
I/O at 0x4400 [0x4401].
Bus 0, device 6, function 0:
Multimedia audio controller: Cirrus Logic Unknown device (rev 1).
Vendor id=1013. Device id=6003.
Slow devsel. IRQ 11. Master Capable. Latency=64. Min Gnt=4.Max Lat=24.
Non-prefetchable 32 bit memory at 0x5010 [0x5010].
Non-prefetchable 32 bit memory at 0x5000 [0x5000].
Bus 0, device 7, function 0:
Bridge: Intel 82371AB PIIX4 ISA (rev 2).
Medium devsel. Fast back-to-back capable. Master Capable. No bursts.
Bus 0, device 7, function 1:
IDE interface: Intel 82371AB PIIX4 IDE (rev 1).
Medium devsel. Fast back-to-back capable. Master Capable. Latency=48.
I/O at 0xfcf0 [0xfcf1].
Bus 0, device 7, function 2:
USB Controller: Intel 82371AB PIIX4 USB (rev 1).
Medium devsel. Fast back-to-back capable. IRQ 11. Master Capable.
Latency=48.
I/O at 0x4000 [0x4001].
Bus 0, device 7, function 3:
Bridge: Intel 82371AB PIIX4 ACPI (rev 3).
Medium devsel. Fas