lkml.org 
[lkml]   [1998]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.1.93 goes belly-up with memory.

Whilst compiling the 2.1.93 modules under 2.1.93...

make -j5 MAKE='make -j5' modules
(While a 'make -j' of another small package is going on in the background.)

ld -r -o sound.o soundcard.o dev_table.o audio.o dmabuf.o \
sequencer.o sys_timer.o sound_timer.o lowlevel/lowlevel.o \
midi_synth.o midibuf.o sound_firmware.o
ld -r -o sb.o sb_audio.o sb_card.o sb_common.o sb_midi.o sb_mixer.o
[...stops here...]

Top says (a minute or two later, when the other make -j finished):

8:55pm up 14 min, 8 users, load average: 3.73, 9.67, 5.72
49 processes: 46 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 3.3% user, 1.5% system, 0.0% nice, 95.3% idle
Mem: 63456K av, 25888K used, 37568K free, 6548K shrd, 6636K buff
Swap: 33228K av, 6984K used, 26244K free 10516K cached

PID USER SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
694 root 4700 3504 1872 D 0.0 5.5 0:05 /usr/lib/gcc-lib/i586-pc-

Looks like a lodged process, one minute later (I started another 'make -j5
modules' to continue the build):

8:56pm up 15 min, 8 users, load average: 11.63, 10.50, 6.18
120 processes: 85 sleeping, 35 running, 0 zombie, 0 stopped
CPU states: 167.1% user, 11.9% system, 0.0% nice, 0.0% idle
Mem: 63456K av, 62568K used, 888K free, 48472K shrd, 6168K buff
Swap: 33228K av, 6880K used, 26348K free 11028K cached

PID USER SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
1343 root 4316 4316 1288 R 8.7 6.8 0:02 /usr/lib/gcc-lib/i586-pc-
694 root 4700 3504 1872 D 0.0 5.5 0:05 /usr/lib/gcc-lib/i586-pc-

Still lodged, again later:

8:57pm up 15 min, 8 users, load average: 16.71, 12.32, 7.04
64 processes: 58 sleeping, 6 running, 0 zombie, 0 stopped
CPU states: 146.6% user, 3.3% system, 0.0% nice, 0.0% idle
Mem: 63456K av, 28624K used, 34832K free, 13704K shrd, 4524K buff
Swap: 33228K av, 8068K used, 25160K free 5744K cached

PID USER SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
1494 root 4316 4316 1280 R 30.0 6.8 0:02 /usr/lib/gcc-lib/i586-pc-
1397 greerga 2840 2840 1156 R 28.6 4.4 0:07 /usr/lib/gcc-lib/i586-pc-
694 root 4700 2808 1872 D 0.0 4.4 0:05 /usr/lib/gcc-lib/i586-pc-

The 'greerga' is a 'make -j' in the background again.

moving:/proc/694# cat stat
694 (cc1) D 688 276 105 1033 276 0 1181 0 737 0 572 23 0 0 0 0 -1 0 51895
5730304 338 2147483647 134512640 135814578 3221219040 3221217328 134652584
0000000000040000 0000000000000000 0000000080000000 0000000000001080
3222405296 858 0
moving:/proc/694# cat status
Name: cc1
State: D (disk sleep)
Pid: 694
PPid: 688
Uid: 0 0 0 0
Gid: 0 0 0 0
VmSize: 5596 kB
VmLck: 0 kB
VmRSS: 1352 kB
VmData: 3664 kB
VmStk: 60 kB
VmExe: 1272 kB
VmLib: 552 kB
SigPnd: 0000000000040000
SigBlk: 0000000000000000
SigIgn: 0000000080000000
SigCat: 0000000000001080
moving:/proc/694# cat statm
972 338 265 84 0 254 73
moving:/proc/694#

About 5 minutes later (make -j is done by now, I thought the swapping may
help to kick the 694 free, but alas, no):

9:01pm up 20 min, 8 users, load average: 18.25, 18.55, 10.94
54 processes: 51 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 30.0% user, 5.8% system, 0.0% nice, 64.5% idle
Mem: 63456K av, 31472K used, 31984K free, 5260K shrd, 9900K buff
Swap: 33228K av, 10072K used, 23156K free 11200K cached

PID USER SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
2064 root 3420 3420 972 R 23.4 5.3 0:01 /usr/lib/gcc-lib/i586-pc-
694 root 3888 1352 1060 D 0.0 2.1 0:05 /usr/lib/gcc-lib/i586-pc-

Here I started two 'make -j's of the small package which is just enough to
cause my machine to run low, but not out, of memory.

And it decided to lock up, although I knew it was running because it still
tried to access the hard drive:

EIP: 0010:[<c019b3c3>] EFLAGS: 00000286
EAX: c2400000 EBX: c2400000 ECX: 00000001 EDX: 00000000
ESI: c376a000 EDI: 0000004f EBP: c2401ed8 DS: 0018 ES: 0018
SysRq: Show Regs

c019b3b0 T __lock_kernel
c019b3ec T __delay

EIP: 0010:[<c019b3df>] EFLAGS: 00000287
EAX: c2400000 EBX: c2400000 ECX: 00000001 EDX: 00000000
ESI: c376a000 EDI: 0000004f EBP: c2401ed8 DS: 0018 ES: 0018
SysRq: Show Regs

c019b3b0 T __lock_kernel
c019b3ec T __delay

EIP: 0010:[<c0124f5b>] EFLAGS: 00000202
EAX: c0e14ee0 EBX: 00000000 ECX: c1c7c000 EDX: 00000000
ESI: c3710000 EDI: 00000002 EBP: 00000015 DS: 0018 ES: 0018
SysRq: Show Regs

c0124f00 t swap_out
c0124ff0 T try_to_free_page

EIP: 0010:[<c019b3df>] EFLAGS: 00000287
EAX: c2400000 EBX: c2400000 ECX: 00000001 EDX: 00000000
ESI: c376a000 EDI: 0000004f EBP: c2401ed8 DS: 0018 ES: 0018

c019b3b0 T __lock_kernel
c019b3ec T __delay

And it loops like this forever.

I surmise it ran out of swap and tried to swap something out, this is the
last recorded 'top' output: (Notice it has plenty of free memory!)

9:06pm up 24 min, 8 users, load average: 69.04, 36.03, 18.93
185 processes: 184 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 16.5% user, 7.8% system, 0.0% nice, 79.5% idle
Mem: 63456K av, 53980K used, 9476K free, 34328K shrd, 3188K buff
Done. 33228K av, 32756K used, 472K free 5840K cached

PID USER SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
2573 root 3880 2956 540 D 1.5 4.6 0:03 /usr/lib/gcc-lib/i586-pc-
2738 greerga 2624 2552 408 D 0.1 4.0 0:09 /usr/lib/gcc-lib/i586-pc-
2660 greerga 2360 2068 532 D 0.3 3.2 0:04 /usr/lib/gcc-lib/i586-pc-
2628 greerga 2092 1756 616 D 3.9 2.7 0:08 /usr/lib/gcc-lib/i586-pc-
2611 greerga 2068 1672 500 D 0.6 2.6 0:05 /usr/lib/gcc-lib/i586-pc-
2557 greerga 2056 1596 712 D 0.3 2.5 0:04 /usr/lib/gcc-lib/i586-pc-
2662 greerga 1828 1584 496 D 1.0 2.4 0:04 /usr/lib/gcc-lib/i586-pc-
2586 greerga 1844 1516 148 D 0.0 2.3 0:06 /usr/lib/gcc-lib/i586-pc-
2543 greerga 2132 1468 980 D 1.8 2.3 0:02 /usr/lib/gcc-lib/i586-pc-
2630 greerga 1844 1432 516 D 0.3 2.2 0:04 /usr/lib/gcc-lib/i586-pc-
2633 greerga 1672 1324 396 D 0.0 2.0 0:03 /usr/lib/gcc-lib/i586-pc-
2559 greerga 1856 1284 388 D 0.1 2.0 0:04 /usr/lib/gcc-lib/i586-pc-
2577 greerga 1720 1216 700 D 0.2 1.9 0:01 /usr/lib/gcc-lib/i586-pc-
2554 greerga 1740 1208 620 D 0.1 1.9 0:02 /usr/lib/gcc-lib/i586-pc-
2631 greerga 1384 1148 152 D 0.1 1.8 0:05 /usr/lib/gcc-lib/i586-pc-
2548 greerga 1708 1136 424 D 0.1 1.7 0:03 /usr/lib/gcc-lib/i586-pc-
2549 greerga 1612 1136 392 D 0.0 1.7 0:04 /usr/lib/gcc-lib/i586-pc-
2556 greerga 1688 1132 624 D 0.0 1.7 0:02 /usr/lib/gcc-lib/i586-pc-

I was able to recover the machine with a ALT+SysRq+E but nothing else would
respond, not even ALT+SysRq+S. (The Sync I tried before the 'E' actually
went off a little later as I tried to shut down, sort of a delayed
reaction.)

It's SMP, Dual Pentium 133's:
CONFIG_EXPERIMENTAL=y CONFIG_M586=y CONFIG_MODULES=y CONFIG_KMOD=y
CONFIG_NET=y CONFIG_PCI=y CONFIG_PCI_BIOS=y CONFIG_PCI_DIRECT=y
CONFIG_PCI_OPTIMIZE=y CONFIG_PCI_OLD_PROC=y CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y CONFIG_BINFMT_ELF=y CONFIG_VIDEO_SELECT=y
CONFIG_BLK_DEV_IDE=y CONFIG_BLK_DEV_IDEDISK=y CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_IDEDMA=y CONFIG_BLK_DEV_MD=y CONFIG_NETLINK=y
CONFIG_RTNETLINK=y CONFIG_FIREWALL=y CONFIG_NET_ALIAS=y CONFIG_UNIX=y
CONFIG_INET=y CONFIG_IP_ADVANCED_ROUTER=y CONFIG_RTNETLINK=y
CONFIG_NETLINK=y CONFIG_IP_FIREWALL=y CONFIG_IP_FIREWALL_VERBOSE=y
CONFIG_IP_ACCT=y CONFIG_IP_MASQUERADE=y CONFIG_IP_MASQUERADE_ICMP=y
CONFIG_IP_ALIAS=y CONFIG_SYN_COOKIES=y CONFIG_IP_NOSR=y CONFIG_SKB_LARGE=y
CONFIG_NETDEVICES=y CONFIG_QUOTA=y CONFIG_EXT2_FS=y CONFIG_JOLIET=y
CONFIG_PROC_FS=y CONFIG_SMB_WIN95=y CONFIG_NCPFS_NFS_NS=y
CONFIG_NCPFS_OS2_NS=y CONFIG_NCPFS_MOUNT_SUBDIR=y CONFIG_NLS=y CONFIG_VT=y
CONFIG_VT_CONSOLE=y CONFIG_SERIAL=y CONFIG_SERIAL_EXTENDED=y
CONFIG_SERIAL_SHARE_IRQ=y CONFIG_MOUSE=y CONFIG_APM=y
CONFIG_APM_DO_ENABLE=y CONFIG_APM_CPU_IDLE=y CONFIG_WATCHDOG=y CONFIG_RTC=y
CONFIG_MAGIC_SYSRQ=y CONFIG_VGA_CONSOLE=y

Modules weren't built at the time so I left them out of the .config
listing.

-George


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.026 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site