System hangs when reading or writing many or large files

From: ralf willenbacher (b_j@gmx.net)
Date: Wed Apr 26 2000 - 10:27:26 EST


[1.] One line summary of the problem:
System hangs when reading or writing many or large (2gig max) files

[2.] Full description of the problem/report:
When grabbing videos using bttvgrab or copying small files from one disk
to another the system hangs.
Turning off the swap partition makes the system more stable and delays
the hang.
The OOps is either from kswapd or from the programm writing to a file.
when its from the programm the system runs for some seconds and then
hangs.. msysreq messages are printed but not working.
I got an empty Oops once.. (EIP: :[<>] and so on)
one of my files changed into a special node.. but this could be
something else..

Creating and deleting files on a ramdisk fast gets the system down for
sure..
a 50 file window with a file size of 150kb, 10 files/sec for example
i changed from 2.2.12 to 2.3.99-pre3 and up.. 2.2.12 was ok..

[3.] Keywords (i.e., modules, networking, kernel):
kernel, kswapd

[4.] Kernel version (from /proc/version):
Linux version 2.3.99-pre6 (root@rat3) (gcc version egcs-2.91.66 19990314
(egcs-1.1.2 release)) #3 SMP Tue Apr 25 14:59:20 CEST 2000

[5.] Output of Oops.. message (if applicable) with symbolic information
     resolved (see Documentation/oops-tracing.txt)

from paper through ksymoops..

Invalid operand: 0000
CPU: 1
EIP: 0010:[<c0138799>]
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010296
eax: 00000020 ebx: c1003ce0 ecx: ffffffb5 edx: 00000086
esi: c1002cfc edi: 00000000 ebp: c14e1fa8 esp: c14e1f34
ds: 0018 es: 0018 ss: 0018
Process kswapd (pid: 2, stackpage=c14e1000)
Stack: c021a8c8 c021ab55 00000068 c1002ce0 c1002cfc 00000000 c14e1fa8
c1002d0c
00000282 00000023 c1002d04 c14e1fa8 c012dc2b 00000014 00000006 00000004
c025ae00 c025ae00 00000007 c14e1f98 c025ae20 c14e1fa8 c14e1fa0 00001cd4
Call Trace: [<c021a8c8>] [<c021ab55>] [<c012dc2b>] [<c013823b>]
[<c0138333>] [<c010907b>]
Code: 0f 0b 83 c4 0c 89 f6 89 d8 2b 05 ec aa 25 c0 69 c0 1b ca 6b

>>EIP; c0138799 <__free_pages_ok+49/324> <=====
Trace; c021a8c8 <tvecs+2e40/14ef8>
Trace; c021ab55 <tvecs+30cd/14ef8>
Trace; c012dc2b <shrink_mmap+457/5c8>
Trace; c013823b <do_try_to_free_pages+33/98>
Trace; c0138333 <kswapd+93/1b0>
Trace; c010907b <kernel_thread+23/30>

[6.] A small shell script or example program which triggers the
     problem (if possible)
[7.] Environment
[7.1.] Software (add the output of the ver_linux script here)

my base system is still libc5
rat3:/usr2/kram/linux # sh scripts/ver_linux
-- Versions installed: (if some fields are empty or look
-- unusual then possibly you have very old versions)
Linux rat3 2.3.99-pre6 #3 SMP Tue Apr 25 14:59:20 CEST 2000 i686 unknown
Kernel modules 2.3.10
Gnu C egcs-2.91.66
Binutils 2.9.5
Linux C Library 2.1.3
Dynamic linker 2.1.3
Linux C++ Library 2.8.1.1
Procps 1.2.6
Mount 2.10h
Net-tools 1.96
Kbd 0.93
Sh-utils 1.12
Modules Loaded st sd_mod sr_mod sg aic7xxx scsi_mod bttv msp3400
videodev i2c-algo-bit i2c-core emu10k1 agpgart hisax isdn bsd_comp

[7.2.] Processor information (from /proc/cpuinfo):
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 498.679597
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr xmm
bogomips : 992.87

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 498.679597
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr xmm
bogomips : 996.15

[7.3.] Module information (from /proc/modules):
st 28040 0 (unused)
sd_mod 10108 0 (unused)
sr_mod 12356 0 (unused)
sg 25412 0 (unused)
aic7xxx 133780 0 (unused)
scsi_mod 69064 5 [st sd_mod sr_mod sg aic7xxx]
bttv 53924 0 (unused)
msp3400 15476 1
videodev 3104 2 [bttv]
i2c-algo-bit 7432 1 [bttv]
i2c-core 12132 0 [bttv msp3400 i2c-algo-bit]
emu10k1 66736 1
agpgart 14484 5
hisax 137488 5
isdn 98304 6 [hisax]
bsd_comp 4344 0 (unused)

[7.4.] Loaded driver and hardware information (/proc/ioports,
/proc/iomem)
rat3:/usr2 # cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0240-0240 : HiSax hscx A fifo
0280-029f : NE2000
02f8-02ff : serial(auto)
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0640-065f : HiSax hscx A
0a40-0a40 : HiSax hscx B fifo
0e40-0e5f : HiSax hscx B
1240-1240 : HiSax isac fifo
1640-165f : HiSax isac
1a40-1a47 : avm cfg
4000-403f : Intel Corporation 82371AB PIIX4 ACPI
5000-501f : Intel Corporation 82371AB PIIX4 ACPI
c000-cfff : PCI Bus #01
d000-d01f : Intel Corporation 82371AB PIIX4 USB
d400-d41f : Creative Labs SB Live! EMU10000
  d400-d41f : EMU10K1
d800-d807 : Creative Labs SB Live!
dc00-dcff : Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895
  dc00-dcbe : aic7xxx
e000-e0ff : Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895 (#2)
  e000-e0be : aic7xxx
f000-f00f : Intel Corporation 82371AB PIIX4 IDE
  f000-f007 : ide0
  f008-f00f : ide1

rat3:/usr2 # cat /proc/iomem
00000000-0009efff : System RAM
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000c8000-000c87ff : Extension ROM
000f0000-000fffff : System ROM
00100000-0fffffff : System RAM
  00100000-0024f06f : Kernel code
  0024f070-0026debf : Kernel data
e0000000-e3ffffff : Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
e4000000-e7ffffff : PCI Bus #01
  e4000000-e4003fff : Matrox Graphics, Inc. MGA G400 AGP
  e5000000-e57fffff : Matrox Graphics, Inc. MGA G400 AGP
e8000000-e9ffffff : PCI Bus #01
  e8000000-e9ffffff : Matrox Graphics, Inc. MGA G400 AGP
eb000000-eb000fff : Brooktree Corporation Bt878
eb001000-eb001fff : Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895
eb002000-eb002fff : Brooktree Corporation Bt878
  eb002000-eb002fff : bttv
eb003000-eb003fff : Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895 (#2)

[7.5.] PCI information ('lspci -vvv' as root)
i realy should get lspci..

rat3:/usr2 # cat /proc/pci
PCI devices found:
  Bus 0, device 0, function 0:
    Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
(rev 2).
      Master Capable. Latency=64.
      Prefetchable 32 bit memory at 0xe0000000 [0xe3ffffff].
  Bus 0, device 1, function 0:
    PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev
2).
      Master Capable. Latency=64. Min Gnt=136.
  Bus 0, device 7, function 0:
    ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 2).
  Bus 0, device 7, function 1:
    IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 1).
      Master Capable. Latency=64.
      I/O at 0xf000 [0xf00f].
  Bus 0, device 7, function 2:
    USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 1).
      Master Capable. Latency=64.
      I/O at 0xd000 [0xd01f].
  Bus 0, device 7, function 3:
    Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 2).
  Bus 0, device 9, function 0:
    Multimedia video controller: Brooktree Corporation Bt878 (rev 17).
      IRQ 17.
      Master Capable. Latency=64. Min Gnt=16.Max Lat=40.
      Prefetchable 32 bit memory at 0xeb002000 [0xeb002fff].
  Bus 0, device 9, function 1:
    Multimedia controller: Brooktree Corporation Bt878 (rev 17).
      IRQ 17.
      Master Capable. Latency=64. Min Gnt=4.Max Lat=255.
      Prefetchable 32 bit memory at 0xeb000000 [0xeb000fff].
  Bus 0, device 10, function 0:
    Multimedia audio controller: Creative Labs SB Live! EMU10000 (rev
6).
      IRQ 18.
      Master Capable. Latency=64. Min Gnt=2.Max Lat=20.
      I/O at 0xd400 [0xd41f].
  Bus 0, device 10, function 1:
    Input device controller: Creative Labs SB Live! (rev 6).
      Master Capable. Latency=64.
      I/O at 0xd800 [0xd807].
  Bus 0, device 12, function 0:
    SCSI storage controller: Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895
(rev 4).
      IRQ 16.
      Master Capable. Latency=64. Min Gnt=8.Max Lat=8.
      I/O at 0xdc00 [0xdcff].
      Non-prefetchable 32 bit memory at 0xeb001000 [0xeb001fff].
  Bus 0, device 12, function 1:
    SCSI storage controller: Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895
(#2) (rev 4).
      IRQ 16.
      Master Capable. Latency=64. Min Gnt=8.Max Lat=8.
      I/O at 0xe000 [0xe0ff].
      Non-prefetchable 32 bit memory at 0xeb003000 [0xeb003fff].
  Bus 1, device 0, function 0:
    VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev
4).
      IRQ 16.
      Master Capable. Latency=64. Min Gnt=16.Max Lat=32.
      Prefetchable 32 bit memory at 0xe8000000 [0xe9ffffff].
      Non-prefetchable 32 bit memory at 0xe4000000 [0xe4003fff].
      Non-prefetchable 32 bit memory at 0xe5000000 [0xe57fffff].

[7.6.] SCSI information (from /proc/scsi/scsi)
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: TEAC Model: CD-R56S Rev: 1.0F
  Type: CD-ROM ANSI SCSI revision: 02

[7.7.] Other information that might be relevant to the problem

PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
hda: QUANTUM FIREBALL1280A, ATA DISK drive
hdb: FUJITSU MPA3035ATU, ATA DISK drive
hdc: IBM-DTTA-351680, ATA DISK drive
hda: 2503872 sectors (1282 MB) w/83KiB Cache, CHS=621/64/63, DMA
hdb: 6835952 sectors (3500 MB), CHS=847/128/63, UDMA(33)
hdc: 33022080 sectors (16907 MB) w/462KiB Cache, CHS=32760/16/63,
UDMA(33)

-- 
ralf willenbacher (bj@ocrana.de)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:11 EST