Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Oct 1995 20:09:51 +0100 (MET)
From:      guido@IAEhv.nl (Guido van Rooij)
To:        freebsd-hackers@freebsd.org
Subject:   vm kernel map exhausted (execve fails)?
Message-ID:  <199510041909.UAA28030@iaehv.IAEhv.nl>

next in thread | raw e-mail | index | archive | help
We are constantly getting kernel messages like:
execve: failed to allocate string space

Is there some memory leak inside the kernel?

Underneath the output of vmstat, some syslog and our config file.

-Guido


Memory statistics by bucket size
Size   In Use   Free   Requests  HighWater  Couldfree
  16     1591    713    2462926    1280          0
  32     3765   1739    2585964     640          0
  64     3081    375    4549303     320          0
 128     5285   1403   46047712     160         51
 256     2888    344    4534601      80          0
 512       53     27       1070      40          0
  1K       20     52    6628466      20    3195134
  2K       15      1        152      10          0
  4K       10      2       8299       5          0
  8K        6      2       1848       5          0
 16K        1      0          1       5          0

Memory usage type by bucket size
Size  Type(s)
  16  routetbl, vnodes, VM objhash, VM pgdata, proc, temp
  32  devbuf, pcb, routetbl, pgrp, session, VM mapent, VM pager, VM pgdata,
	  subproc, LFS segment, in_multi, ether_multi, temp
  64  devbuf, routetbl, ifaddr, namecache, UFS quota, VM pgdata, file,
	  lockf, LFS segment, temp
 128  mbuf, devbuf, pcb, routetbl, fragtbl, zombie, ifaddr, soopts, cred,
	  iov, vnodes, VM map, VM object, VM pgdata, file desc, LFS segment,
	  NFS srvsock, temp, ttys
 256  devbuf, socket, pcb, vnodes, VM map, VM pgdata, file desc, proc,
	  subproc, FFS node, temp
 512  devbuf, ioctlops, mount, UFS mount, VM pgdata, file desc
  1K  devbuf, namei, UFS mount, VM pgdata, file, file desc, NQNFS Lease,
	  NFS daemon, temp
  2K  mbuf, devbuf, UFS mount, VM pgdata, file, ttys
  4K  devbuf, UFS mount, VM pgdata, file, MSDOSFS mount, temp
  8K  devbuf, NFS node, namecache, UFS quota, UFS mount, VM pgdata, temp
 16K  VM pgdata

Memory statistics by type                          Type  Kern
        Type  InUse MemUse HighUse  Limit Requests Limit Limit Size(s)
         mbuf   365    48K    173K  9831K 38765169    0     0  128,2K
       devbuf    33    47K     47K  9831K       33    0     0  32,64,128,256,512,1K,2K,4K,8K
       socket   224    56K     87K  9831K   693173    0     0  256
          pcb   367    64K    102K  9831K   870918    0     0  32,128,256
     routetbl   136    11K     14K  9831K     9682    0     0  16,32,64,128
      fragtbl     0     0K      1K  9831K      132    0     0  128
       zombie     5     1K      2K  9831K   235961    0     0  128
       ifaddr     5     1K      1K  9831K        5    0     0  64,128
       soopts    38     5K      5K  9831K    13278    0     0  128
        namei     0     0K     17K  9831K  6472385    0     0  1K
     ioctlops     0     0K      1K  9831K        8    0     0  512
         cred    85    11K     17K  9831K    64314    0     0  128
         pgrp    33     2K      2K  9831K    21537    0     0  32
      session    28     1K      2K  9831K    12151    0     0  32
          iov     0     0K      1K  9831K      224    0     0  128
        mount     8     4K      4K  9831K        9    0     0  512
     NFS node     1     8K      8K  9831K        1    0     0  8K
       vnodes  2241   278K    286K  9831K     8941    0     0  16,128,256
    namecache  2189   145K    145K  9831K     2189    0     0  64,8K
    UFS quota    81    13K     13K  9831K       81    0     0  64,8K
    UFS mount    22    37K     37K  9831K       22    0     0  512,1K,2K,4K,8K
       VM map   106    26K     40K  9831K  1276925    0     0  128,256
    VM mapent  1681    53K     83K  9831K   433871    0     0  32
    VM object  1891   237K    318K  9831K  4881451    0     0  128
   VM objhash   768    12K     13K  9831K  1223201    0     0  16
     VM pager  1311    41K     52K  9831K  1460003    0     0  32
    VM pgdata  1854   128K    189K  9831K  1696805    0     0  16,32,64,128,256,512,1K,2K,4K,8K,16K
         file   453    29K     42K  9831K  3554035    0     0  64,1K,2K,4K
    file desc   131    29K     67K  9831K   244311    0     0  128,256,512,1K
        lockf     8     1K      3K  9831K   772819    0     0  64
         proc   115    26K     40K  9831K   245830    0     0  16,256
      subproc   111     6K     10K  9831K   237064    0     0  32,256
  LFS segment     0     0K      4K  9831K   258808    0     0  32,64,128
     FFS node  2185   547K    547K  9831K  3184146    0     0  256
  NQNFS Lease     1     1K      1K  9831K        1    0     0  1K
  NFS srvsock     4     1K      1K  9831K        4    0     0  128
   NFS daemon     1     1K      1K  9831K        1    0     0  1K
     in_multi     2     1K      1K  9831K        2    0     0  32
  ether_multi     1     1K      1K  9831K        1    0     0  32
MSDOSFS mount     1     4K      4K  9831K        1    0     0  4K
         temp    38     7K     26K  9831K   171808    0     0  16,32,64,128,256,1K,4K,8K
         ttys   192    28K     41K  9831K     9042    0     0  128,2K

Memory Totals:  In Use    Free    Requests
                 1899K    442K    66820342
Oct  2 22:34:44 iaehv kernel: FreeBSD 2.0-RELEASE #9: Thu Jun 15 20:36:39 MET DST 1995
Oct  2 22:34:44 iaehv kernel:     guido@iaehv.IAEhv.nl:/usr/src/sys/compile/IAEHV
Oct  2 22:34:44 iaehv kernel: CPU: Pentium (Pentium-class CPU) 90 MHz  Id = 0x521  Origin = "GenuineIntel"
Oct  2 22:34:44 iaehv kernel: real memory  = 66715648 (16288 pages)
Oct  2 22:34:44 iaehv kernel: avail memory = 64479232 (15742 pages)
Oct  2 22:34:45 iaehv kernel: using 750 buffers containing 6144000 bytes of memory
Oct  2 22:34:45 iaehv kernel: Probing for devices on the ISA bus:
Oct  2 22:34:45 iaehv kernel: sc0 at 0x60-0x6f irq 1 on motherboard
Oct  2 22:34:45 iaehv kernel: sc0: VGA color <4 virtual consoles>
Oct  2 22:34:45 iaehv kernel: ed0 at 0x280-0x29f irq 5 maddr 0xd8000 msize 16384 on isa
Oct  2 22:34:46 iaehv kernel: ed0: address 00:00:c0:29:31:a5, type WD8013EPC (16 bit) 
Oct  2 22:34:46 iaehv kernel: bpf: ed0 attached
Oct  2 22:34:46 iaehv kernel: sio0 at 0x3f8-0x3ff irq 4 on isa
Oct  2 22:34:46 iaehv kernel: sio0: type 16550A
Oct  2 22:34:46 iaehv kernel: sio1 at 0x2f8-0x2ff irq 3 on isa
Oct  2 22:34:47 iaehv kernel: sio1: type 16550A
Oct  2 22:34:47 iaehv kernel: lpt0 at 0x278-0x27f on isa
Oct  2 22:34:47 iaehv kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
Oct  2 22:34:47 iaehv kernel: fdc0: [0: fd0: 1.44MB 3.5in]
Oct  2 22:34:48 iaehv kernel: npx0 on motherboard
Oct  2 22:34:48 iaehv kernel: pci0: scanning device 0..31, mechanism=1.
Oct  2 22:34:48 iaehv kernel: pci0:0: vendor=0x1039, device=0x406, class=multimedia [not supported]
Oct  2 22:34:48 iaehv kernel: 	map(10): mem32(80000010)
Oct  2 22:34:48 iaehv kernel: 	map(14): mem64(80000010)
Oct  2 22:34:48 iaehv kernel: 	map(18): mem32(80000018)
Oct  2 22:34:48 iaehv kernel: 	map(1c): mem64(80000018)
Oct  2 22:34:49 iaehv kernel: 	map(20): mem32(80000020)
Oct  2 22:34:49 iaehv kernel: 	map(24): mem64(80000020)
Oct  2 22:34:49 iaehv kernel: pci0:1: vendor=0x1039, device=0x8, class=old [not supported]
Oct  2 22:34:49 iaehv kernel: ncr0 <ncr 53c810 scsi> int a irq 11 on pci0:6
Oct  2 22:34:49 iaehv kernel: 	reg20: virtual=0xf5a08000 physical=0xc0000000
Oct  2 22:34:49 iaehv kernel: ncr0: restart (scsi reset).
Oct  2 22:34:49 iaehv kernel: ncr0 scanning for targets 0..6 (V2 pl18 95/02/23)
Oct  2 22:34:49 iaehv kernel: ncr0 waiting for scsi devices to settle
Oct  2 22:34:49 iaehv kernel: ncr0 targ 0 lun 0: type 0(direct) fixed SCSI2
Oct  2 22:34:49 iaehv kernel: ncr0 targ 0 lun 0: <MICROP  2217-15MQ1001901HQ30>
Oct  2 22:34:49 iaehv kernel: sd0(ncr0:0:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8.
Oct  2 22:34:50 iaehv kernel: sd0: 1685MB (3450902 total sec), 2372 cyl, 15 head, 96 sec, bytes/sec 512
Oct  2 22:34:50 iaehv kernel: ncr0 targ 1 lun 0: type 0(direct) fixed SCSI2
Oct  2 22:34:50 iaehv kernel: ncr0 targ 1 lun 0: <MICROP  2217-15MQ1001901HQ30>
Oct  2 22:34:50 iaehv kernel: sd1(ncr0:1:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8.
Oct  2 22:34:50 iaehv kernel: sd1: 1685MB (3450902 total sec), 2372 cyl, 15 head, 96 sec, bytes/sec 512
Oct  2 22:34:51 iaehv kernel: ncr0 targ 2 lun 0: type 0(direct) fixed SCSI2
Oct  2 22:34:51 iaehv kernel: ncr0 targ 2 lun 0: <QUANTUM EMPIRE_2100S    1022>
Oct  2 22:34:51 iaehv kernel: sd2(ncr0:2:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8.
Oct  2 22:34:51 iaehv kernel: sd2: 2006MB (4108600 total sec), 3053 cyl, 12 head, 112 sec, bytes/sec 512
Oct  2 22:34:51 iaehv kernel: ncr0 targ 4 lun 0: type 1(sequential) removable SCSI2
Oct  2 22:34:51 iaehv kernel: ncr0 targ 4 lun 0: <HP      HP35470A        1009>
Oct  2 22:34:51 iaehv kernel: st0(ncr0:4:0): 200ns (5 Mb/sec) offset 8.
Oct  2 22:34:51 iaehv kernel: st0: density code 0x13, variable blocks, write-enabled
Oct  2 22:34:51 iaehv kernel: pci0:13: vendor=0x1095, device=0x640, class=storage [not supported]
Oct  2 22:34:51 iaehv kernel: pci uses physical addresses from 0xc0000000 to 0xc0001000
Oct  2 22:34:51 iaehv kernel: bpf: lo0 attached

#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
#	GENERIC,v 1.20 1994/11/18 19:10:25 jkh Exp
#

machine		"i386"
cpu		"I386_CPU"
cpu		"I486_CPU"
cpu		"I586_CPU"
ident		IAEHV
maxusers	64

options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3
options		UCONSOLE		#X Console support
options		"SCSI_DELAY=15"		#Be pessimistic about Joe SCSI device
options		"NCONS=4"		#4 virtual consoles
#options		GATEWAY			#internetwork gateway
options		QUOTA			#enable disk quotas
options		DUMMY_NOPS
options		FIFO
options		SYSVSHM
options		"NMBCLUSTERS=1024"
# FILESYSTEM OPTIONS
options		DODUMP
options		"PCI_IRQ=11"		#kludge for broken pci adapter

config		kernel	root on sd0 swap on sd0 and sd1 dumps on sd0

controller	isa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0

controller	ncr0

controller	scbus0

device		sd0
device		sd1
device		sd2
device		sd3

device		st0

device		cd0	#Only need one of these, the code dynamically grows

device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr

device		lpt0	at isa? port? tty

device ed0 at isa? port 0x280 net irq  5 iomem 0xd8000 vector edintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	pty		64
pseudo-device	bpfilter	4
pseudo-device	gzip		# Exec gzipped a.out's



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510041909.UAA28030>