> Speaking of network bugs in kernel memory ... does this look pathological? 
> Even with adaptive start set pretty agressively, I'm still getting kernel 
> panics.  (using -stable 3.5)

Do this to calculate the max number of PF states you can allocate (on
top of what have already been allocated)
  $ cd /sys/arch/i386/compile/GENERIC
  $ env DEBUG=-g make clean all
  $ su
  # gdb bsd.db
  (gdb) target kcore /dev/mem
  (gdb) p kmem_map->header.end - kmem_map->header.start - kmem_map->size
     ^ that will print the kmem_map memory you have left
  (gdb) p pf_state_pl.pr_itemsperpage
     ^ that prints the number of states you can alloc per page
  (gdb) p pool_allocator_kmem->pa_pagesz
     ^ and that is your machine's page size
  (gdb) p ($1 / $3) * $2
     ^ and that is how many states you have memory left for if you used
       everything for PF states.

> # vmstat -m
> Memory statistics by bucket size
>     Size   In Use   Free           Requests  HighWater  Couldfree
>       16     7270    922              82618    1280          3
>       32     1387    533              15436     640          0

the rest of vmstat -m is more useful

.mike

Reply via email to