Re: UBC?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff Ross
Subject: Re: UBC?
Date: Thursday, February 4, 2010 - 9:29 am

Jeff Ross wrote:

Okay, I've been testing.  I brought everything up to current, applied the
ami.c patch sent by David Gwynne as modified by Phillip Guenther, and the 
patch to bus_dma.c sent by Kenneth Westerback.

I started by setting kern.bufcachepercent=60 and then moving down by 10 after
each panic. Anything 20 or greater triggers the same panic as above.

I then set it to 10 to see what would happen.  The load ran okay, but I did
get three uvm_mapent_alloc: out of static map entries entries into the console
that seems to coincide with the end of one of the three pgbench runs and the
start of the next.

So I set it to 11 and got this:

ddb{2}> show panic
malloc: out of space in kmem_map
ddb{2}> trace
Debugger(3fff,c,d488a000,4,4000) at Debugger+0x4
panic(d0752c20,0,4000,0,0) at panic+0x55
malloc(4000,7f,0,da8980b4,70000) at malloc+0x76
vfs_getcwd_scandir(e002eee8,e002eecc,e002eed0,d4e80400,da24f184) at vfs_getcwd_
scandir+0x123
vfs_getcwd_common(da898154,0,e002ef10,d4e80400,200,1,da24f184,22) at vfs_getcwd
_common+0x1f0
sys___getcwd(da24f184,e002ef68,e002ef58,da24f184) at sys___getcwd+0x62
syscall() at syscall+0x12b
--- syscall (number 304) ---
0x1c028f25:

I reported a similar panic back in December
	http://kerneltrap.org/mailarchive/openbsd-misc/2009/12/14/6309363
and was told I'd twisted the knobs too hard ;-)

Here are the sysctl values I'm currently using:

kern.maxproc=10240
kern.maxfiles=20480
kern.maxvnodes=6000

kern.shminfo.shmseg=32
kern.seminfo.semmni=256
kern.seminfo.semmns=2048
kern.shminfo.shmall=512000
kern.shminfo.shmmax=768000000

About that time Owain Ainsworth sent his version of a fix to bus_dma.c so I 
applied that and built a new kernel and I still get panics when I adjust 
kern.bufcachepercent above 15 or so.

Here's the latest panic, trace and ps with kern.bufcachepercent set to 20:
ddb{0}> show panic
pmap_enter: no pv entries available
ddb{0}> trace
Debugger(b6f30,dff02e1c,2000,c,0) at Debugger+0x4
panic(d077d7a0,0,0,d0e7a980,1) at panic+0x55
pmap_enter(d08f3520,e002d000,b6f30000,7,13) at pmap_enter+0x2e5
uvm_km_alloc1(d08ad720,2000,0,1) at uvm_km_alloc1+0xd5
fork1(da8c5834,14,1,0,0) at fork1+0x100
sys_fork(da8c5834,dff02f68,dff02f58,da8c5834) at sys_fork+0x38
syscall() at syscall+0x12b
--- syscall (number 2) ---
ddb{0}> ps
    PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
  18032   3768  18032    503  3   0x2000008  flt_pmfail2   postgres
  28815   3768  28815    503  3   0x2000008  inode         postgres
  16262   3768  16262    503  2   0x2000008                postgres
  15301   3768  15301    503  3   0x2000008  inode         postgres
  16712   3768  16712    503  2   0x2000008                postgres
   5959   3768   5959    503  3   0x2000008  flt_pmfail2   postgres
  24166   3768  24166    503  3   0x2000008  flt_pmfail2   postgres
  23692   3768  23692    503  3   0x2000008  flt_pmfail2   postgres
  21841   3768  21841    503  3   0x2000008  flt_pmfail2   postgres
  23838   3768  23838    503  3   0x2000008  flt_pmfail2   postgres
  25423   3768  25423    503  3   0x2000008  inode         postgres
   5075   3768   5075    503  3   0x2000008  inode         postgres
  23008   3768  23008    503  3   0x2000008  inode         postgres
  10527   3768  10527    503  3   0x2000008  flt_pmfail2   postgres
  17391   3768  17391    503  3   0x2000008  flt_pmfail2   postgres
  27363   3768  27363    503  3   0x2000008  flt_pmfail2   postgres
   4858   3768   4858    503  2   0x2000008                postgres
  18716   3768  18716    503  2   0x2000008                postgres
   8073   3768   8073    503  2   0x2000008                postgres
  30893   3768  30893    503  3   0x2000008  flt_pmfail2   postgres
  13741   3768  13741    503  3   0x2000008  flt_pmfail2   postgres
  14272   3768  14272    503  2   0x2000008                postgres
   1962   3768   1962    503  3   0x2000008  inode         postgres
   4988   3768   4988    503  3   0x2000008  flt_pmfail2   postgres
   8452   3768   8452    503  3   0x2000008  inode         postgres
  15633   3768  15633    503  3   0x2000008  flt_pmfail2   postgres
  17648   3768  17648    503  3   0x2000008  flt_pmfail2   postgres
  27751   3768  27751    503  3   0x2000008  inode         postgres
  12932   3768  12932    503  7   0x2000008                postgres
  21367   3768  21367    503  2   0x2000008                postgres
  13583   3768  13583    503  3   0x2000008  flt_pmfail2   postgres
  11813   3768  11813    503  3   0x2000008  inode         postgres
   6094   3768   6094    503  3   0x2000008  inode         postgres
  13686   3768  13686    503  3   0x2000008  flt_pmfail2   postgres
  10011   3768  10011    503  3   0x2000008  flt_pmfail2   postgres
  30652   3768  30652    503  7   0x2000008                postgres
   5358   3768   5358    503  3   0x2000008  flt_pmfail2   postgres
  24385   3768  24385    503  3   0x2000008  inode         postgres
  29773   3768  29773    503  3   0x2000008  flt_pmfail2   postgres
  22599   3768  22599    503  3   0x2000008  flt_pmfail2   postgres
  14231   3768  14231    503  3   0x2000008  flt_pmfail2   postgres
  14083   3768  14083    503  3   0x2000008  flt_pmfail2   postgres
   9729   3768   9729    503  2   0x2000008                postgres
  11748   3768  11748    503  3   0x2000008  inode         postgres
   9097   3768   9097    503  3   0x2000008  flt_pmfail2   postgres
  16057   3768  16057    503  3   0x2000008  inode         postgres
   1067   3768   1067    503  3   0x2000008  flt_pmfail2   postgres
  27445   3768  27445    503  3   0x2000008  flt_pmfail2   postgres
  24037   3768  24037    503  3   0x2000008  flt_pmfail2   postgres
   7000   3768   7000    503  2   0x2000008                postgres
  29367   3768  29367    503  3   0x2000008  inode         postgres
  25020   3768  25020    503  3   0x2000008  flt_pmfail2   postgres
  20564   3768  20564    503  3   0x2000008  flt_pmfail2   postgres
   4090   3768   4090    503  3   0x2000008  flt_pmfail2   postgres
   8865   3768   8865    503  3   0x2000008  flt_pmfail2   postgres
  29631   3768  29631    503  3   0x2000008  inode         postgres
  16278   3768  16278    503  7   0x2000008                postgres
  20854   3768  20854    503  2   0x2000008                postgres
  31943   3768  31943    503  3   0x2000008  flt_pmfail2   postgres
  18137   3768  18137    503  2   0x2000008                postgres
  10523   4345  10523      0  3   0x2044182  poll          systat
   4345      1   4345      0  3   0x2004082  pause         ksh
   2520      1   2520      0  3   0x2004082  ttyin         getty
  32389      1  32389      0  3   0x2004082  ttyin         getty
  21553      1  21553      0  3   0x2000080  select        cron
  22285      1  22285      0  3   0x2000080  select        sshd
  19843      1  19843      0  3   0x2000180  select        inetd
  24948  27412  17184     83  3   0x2000180  poll          ntpd
  27412  17184  17184     83  3   0x2000180  poll          ntpd
  17184      1  17184      0  3   0x2000080  poll          ntpd
   7640  25372  25372     74  3   0x2000180  bpf           pflogd
  25372      1  25372      0  3   0x2000080  netio         pflogd
  25643  12522  12522     73  3   0x2000180  poll          syslogd
  12522      1  12522      0  3   0x2000088  netio         syslogd
  31132   3768  31132    503  3   0x2000088  poll          postgres
   6731   3768   6731    503  3   0x2000088  select        postgres
   3796   3768   3796    503  2         0x8                postgres
  10178   3768  10178    503  3   0x2000088  select        postgres
  23616   3768  23616    503  3   0x2000088  select        postgres
   1109  22145  22399   7794  3   0x2004082  piperd        qmail-clean
   4633  22145  22399   7795  3   0x2004082  select        qmail-rspawn
  26222  22145  22399      0  3   0x2004082  select        qmail-lspawn
* 3768  27937  22399    503  7   0x200400a                postgres
   3493  26189  22399     73  3   0x2004082  piperd        multilog
  19747  10749  22399   7792  3   0x2004082  piperd        multilog
  31915  18366  22399   1002  3   0x2004082  piperd        multilog
    611  19270  22399     73  3   0x2004182  netio         socklog
   6710      1   6710      0  3   0x2004082  ttyin         getty
  30305      1  30305      0  3   0x2004082  ttyin         getty
   1774      1   1774      0  3   0x2004082  ttyin         getty
  25968  31940  22399   1001  3   0x2004182  poll          dnscache
  30323   3543  22399     73  3   0x2004082  piperd        multilog
  22145  15017  22399   7796  3   0x2004082  select        qmail-send
  26189  30365  22399      0  3   0x2004082  poll          supervise
  27937  30365  22399      0  3   0x2004082  poll          supervise
   3543  30365  22399      0  3   0x2004082  poll          supervise
  19270  30365  22399      0  3   0x2004082  poll          supervise
  10749  30365  22399      0  3   0x2004082  poll          supervise
  15017  30365  22399      0  3   0x2004082  poll          supervise
  18366  30365  22399      0  3   0x2004082  poll          supervise
  31940  30365  22399      0  3   0x2004082  poll          supervise
  30671  22399  22399      0  3   0x2004082  piperd        readproctitle
  30365  22399  22399      0  3   0x2004082  nanosleep     svscan
  22399      1  22399      0  3   0x2004082  pause         sh
     19      0      0      0  3   0x2100200  bored         crypto
     18      0      0      0  3   0x2100200  aiodoned      aiodoned
     17      0      0      0  3   0x2100200  syncer        update
     16      0      0      0  3   0x2100200  cleaner       cleaner
     15      0      0      0  3    0x100200  reaper        reaper
     14      0      0      0  2   0x2100200                pagedaemon
     13      0      0      0  3   0x2100200  pftm          pfpurge
     12      0      0      0  3   0x2100200  usbevt        usb2
     11      0      0      0  3   0x2100200  usbevt        usb1
     10      0      0      0  3   0x2100200  usbtsk        usbtask
      9      0      0      0  3   0x2100200  usbevt        usb0
      8      0      0      0  3   0x2100200  acpi_idle     acpi0
      7      0      0      0  3  0x40100200                idle3
      6      0      0      0  3  0x40100200                idle2
      5      0      0      0  3  0x40100200                idle1
      4      0      0      0  3   0x2100200  bored         syswq
      3      0      0      0  3  0x40100200                idle0
      2      0      0      0  3   0x2100200  kmalloc       kmthread
      1      0      1      0  3   0x2004080  wait          init
      0     -1      0      0  3   0x2080200  scheduler     swapper

  Anybody got an idea what I can test from here?

Thanks,

Jeff
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
UBC?, Donald Allen, (Fri Jan 29, 9:17 am)
Re: UBC?, Bret S. Lambert, (Fri Jan 29, 9:41 am)
Re: UBC?, Bob Beck, (Fri Jan 29, 11:45 am)
Re: UBC?, Donald Allen, (Fri Jan 29, 12:08 pm)
Re: UBC?, Donald Allen, (Fri Jan 29, 12:26 pm)
Re: UBC?, Bob Beck, (Fri Jan 29, 1:24 pm)
Re: UBC?, Bret S. Lambert, (Fri Jan 29, 1:41 pm)
Re: UBC?, Bob Beck, (Fri Jan 29, 1:47 pm)
Re: UBC?, Bret S. Lambert, (Fri Jan 29, 1:54 pm)
Re: UBC?, Damien Miller, (Fri Jan 29, 7:52 pm)
Re: UBC?, Bob Beck, (Sat Jan 30, 9:20 am)
Re: UBC?, Jeff Ross, (Sat Jan 30, 11:46 am)
Re: UBC?, Bob Beck, (Sat Jan 30, 1:26 pm)
Re: UBC?, Damien Miller, (Sat Jan 30, 2:08 pm)
Re: UBC?, David Gwynne, (Sat Jan 30, 4:41 pm)
Re: UBC?, David Gwynne, (Sat Jan 30, 4:50 pm)
Re: UBC?, Stuart Henderson, (Sun Jan 31, 6:18 am)
Re: UBC?, Bret S. Lambert, (Sun Jan 31, 6:38 am)
Re: UBC?, Jeff Ross, (Sun Jan 31, 12:16 pm)
Re: UBC?, Philip Guenther, (Sun Jan 31, 1:43 pm)
Re: UBC?, Ariane van der Steldt, (Sun Jan 31, 4:36 pm)
Re: UBC?, Artur Grabowski, (Mon Feb 1, 2:08 am)
Re: UBC?, Owain Ainsworth, (Mon Feb 1, 7:07 am)
Re: UBC?, Ted Unangst, (Mon Feb 1, 10:41 am)
Re: UBC?, Ted Unangst, (Mon Feb 1, 10:42 am)
Re: UBC?, Donald Allen, (Mon Feb 1, 2:09 pm)
Re: UBC?, Bob Beck, (Mon Feb 1, 2:46 pm)
Re: UBC?, Nick Bender, (Mon Feb 1, 3:05 pm)
Re: UBC?, Darrin Chandler, (Mon Feb 1, 3:28 pm)
Re: UBC?, Bob Beck, (Mon Feb 1, 3:59 pm)
Re: UBC?, Jacob Meuser, (Mon Feb 1, 7:51 pm)
Re: UBC? And a Mr. Allen, Sean Kennedy, (Tue Feb 2, 7:00 am)
Re: UBC?, Darrin Chandler, (Tue Feb 2, 10:09 am)
Re: UBC?, Jacob Meuser, (Tue Feb 2, 11:36 am)
Re: UBC?, Darrin Chandler, (Tue Feb 2, 11:58 am)
Re: UBC?, Jacob Meuser, (Tue Feb 2, 12:19 pm)
Re: UBC?, Bob Beck, (Tue Feb 2, 4:18 pm)
Re: UBC?, Owain Ainsworth, (Wed Feb 3, 7:36 am)
Re: UBC?, Jeff Ross, (Thu Feb 4, 9:29 am)
Re: UBC?, Ariane van der Steldt, (Thu Feb 4, 11:36 am)
Re: UBC?, Jeff Ross, (Thu Feb 4, 12:21 pm)
Re: UBC?, Ted Unangst, (Thu Feb 4, 1:40 pm)
Re: UBC?, Anton Maksimenkov, (Thu Feb 4, 11:50 pm)
Re: UBC?, Anton Maksimenkov, (Thu Feb 4, 11:52 pm)
Re: UBC?, Jeff Ross, (Fri Feb 5, 4:03 pm)
Re: UBC?, Anton Maksimenkov, (Fri Feb 5, 8:53 pm)
Re: UBC?, Ariane van der Steldt, (Mon Feb 8, 7:05 am)