7.1-STABLE crash

Mikolaj Golub to.my.trociny at gmail.com
Wed Jun 3 12:22:56 UTC 2009


On Tue, 02 Jun 2009 23:24:54 +0300 Mikolaj Golub wrote:

> Actually some output from crashinfo looks suspicious. zero values for fork()
> calls, negative values in vmstat -m output... Does the userland where you were
> running crashinfo matched the crushed kernel?

It looks like the strange figures in vmstat output because its '-M' option is
broken. I am observing the same issue on my system. I have rebuild the kernel
and the world of today's RELENG_7 to make sure that this is not the issue with
my kernel not in sync with the userland.

zhuzha:~% uname -a
FreeBSD zhuzha.ua1 7.2-STABLE FreeBSD 7.2-STABLE #18: Wed Jun  3 14:28:49 EEST 2009     root at zhuzha.ua1:/usr/obj/usr/src/sys/DEBUG  i386
zhuzha:~% vmstat -m |head                                  
         Type InUse MemUse HighUse Requests  Size(s)
      ata_dma     3     1K       -        3  128
         GEOM    83     9K       -     1176  16,32,64,128,256,512,1024,2048
       isadev    20     2K       -       20  64
    ar_driver     0     0K       -        6  512,2048
   acd_driver     1     2K       -        1  2048
         cdev    27     4K       -       28  128
       kbdmux     6     9K       -        6  16,128,256,2048,4096
        sigio     8     1K       -        8  32
     filedesc   152    46K       -     1637  16,32,64,128,256,512,1024,2048,4096
zhuzha:~% sudo vmstat -m -M /dev/mem -N /boot/kernel/kernel |head
         Type InUse MemUse HighUse Requests  Size(s)
      ata_dma    -3     0K       -        0  
         GEOM 1124760 -1107K       -  1125936  16,32,64,128,256,512,1024,2048,4096,8192
       isadev   -20     0K       -        0  
    ar_driver 19450   -18K       -    19456  32,64
   acd_driver    -1    -1K       -        0  
         cdev   100    -2K       -      128  16
       kbdmux    -6    -7K       -        0  
        sigio    -8     0K       -        0  
     filedesc 384793  -422K       -   386432  16,32,64,128,1024,2048,4096,8192
zhuzha:~% vmstat -s |head                                        
  2380238 cpu context switches
    27952 device interrupts
   573159 software interrupts
   931165 traps
  9997656 system calls
       56 kernel threads created
     1519  fork() calls
       45 vfork() calls
        0 rfork() calls
        0 swap pager pageins
zhuzha:~% sudo vmstat -s -M /dev/mem -N /boot/kernel/kernel |head
        0 cpu context switches
        0 device interrupts
        0 software interrupts
        0 traps
        0 system calls
        0 kernel threads created
        0  fork() calls
        0 vfork() calls
        0 rfork() calls
        0 swap pager pageins

On CURRENT vmstat -m works ok but vmstat -s gives zero values:

fbsd# uname -a
FreeBSD fbsd.zhuzha.ua1 8.0-CURRENT FreeBSD 8.0-CURRENT #8 r193242M: Mon Jun  1 23:43:06 EEST 2009     root at zhuzha.ua1:/home/golub/freebsd/build/obj/home/golub/freebsd/src/sys/GENERIC  i386
fbsd# vmstat -m |head
         Type InUse MemUse HighUse Requests  Size(s)
         cdev    11     2K       -       11  128
CAM dev queue     1     1K       -        1  64
        sigio     1     1K       -        1  32
     filedesc    49    13K       -     1109  16,256,512
         kenv   106     8K       -      109  16,32,64,128,4096
       kqueue     0     0K       -       12  128,1024
    proc-args    29     2K       -      593  16,32,64,128
      ithread    63     6K       -       63  16,64,128
       acpica   426    23K       -     8140  16,32,64,128,256,512,1024
fbsd# vmstat -m -M /dev/mem -N /boot/kernel/kernel |head
         Type InUse MemUse HighUse Requests  Size(s)
         cdev    11     2K       -       11  128
CAM dev queue     1     1K       -        1  64
        sigio     1     1K       -        1  32
     filedesc    49    13K       -     1111  16,256,512
         kenv   106     8K       -      109  16,32,64,128,4096
       kqueue     0     0K       -       12  128,1024
    proc-args    29     2K       -      599  16,32,64,128
      ithread    63     6K       -       63  16,64,128
       acpica   426    23K       -     8140  16,32,64,128,256,512,1024
fbsd# vmstat -s |head
    88380 cpu context switches
     5058 device interrupts
    16851 software interrupts
   138908 traps
   140549 system calls
       18 kernel threads created
     1070  fork() calls
       22 vfork() calls
        0 rfork() calls
        0 swap pager pageins
fbsd# vmstat -s -M /dev/mem -N /boot/kernel/kernel |head
        0 cpu context switches
        0 device interrupts
        0 software interrupts
        0 traps
        0 system calls
        0 kernel threads created
        0  fork() calls
        0 vfork() calls
        0 rfork() calls
        0 swap pager pageins

On 6.3-RELEASE vmstat -s gives zero values only for some counters:

fbsd6# uname -a
FreeBSD fbsd6.zhuzha.ua1 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:18:52 UTC 2008     root at dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
fbsd6# vmstat -m |head
         Type InUse MemUse HighUse Requests  Size(s)
        DEVFS    12     1K       -       13  16,128
    pfs_nodes    20     3K       -       20  128
         GEOM    52     6K       -      259  16,32,64,128,256,512,1024,2048,4096
       isadev    17     2K       -       17  64
    CAM queue     3     1K       -        3  16
CAM dev queue     1     1K       -        1  64
  ata_generic     2     2K       -        2  1024
         cdev    24     3K       -       24  128
    file desc    64    17K       -      685  16,256,512
fbsd6# vmstat -m -M /dev/mem -N /boot/kernel/kernel |head
         Type InUse MemUse HighUse Requests  Size(s)
        DEVFS    12     1K       -       13  16,128
    pfs_nodes    20     3K       -       20  128
         GEOM    52     6K       -      259  16,32,64,128,256,512,1024,2048,4096
       isadev    17     2K       -       17  64
    CAM queue     3     1K       -        3  16
CAM dev queue     1     1K       -        1  64
  ata_generic     2     2K       -        2  1024
         cdev    24     3K       -       24  128
    file desc    64    17K       -      687  16,256,512
fbsd6# vmstat -s
    70467 cpu context switches
    23614 device interrupts
     2136 software interrupts
    46411 traps
    83608 system calls
       34 kernel threads created
      654  fork() calls
       22 vfork() calls
        0 rfork() calls
        0 swap pager pageins
        0 swap pager pages paged in
        0 swap pager pageouts
        0 swap pager pages paged out
      431 vnode pager pageins
     3015 vnode pager pages paged in
        0 vnode pager pageouts
        0 vnode pager pages paged out
        0 page daemon wakeups
        0 pages examined by the page daemon
       34 pages reactivated
    18811 copy-on-write faults
      116 copy-on-write optimized faults
    13147 zero fill pages zeroed
    13017 zero fill pages prezeroed
        3 intransit blocking page faults
    44963 total VM faults taken
        0 pages affected by kernel thread creation
    52028 pages affected by  fork()
     7493 pages affected by vfork()
        0 pages affected by rfork()
    34465 pages freed
        0 pages freed by daemon
    22467 pages freed by exiting processes
     2172 pages active
     2264 pages inactive
        0 pages in VM cache
     2800 pages wired down
     6528 pages free
     4096 bytes per page
    23942 total name lookups
          cache hits (90% pos + 5% neg) system 0% per-directory
          deletions 0%, falsehits 0%, toolong 0%
fbsd6# vmstat -s -M /dev/mem -N /boot/kernel/kernel
    76024 cpu context switches
        0 device interrupts
     2144 software interrupts
        0 traps
        0 system calls
       34 kernel threads created
      654  fork() calls
       23 vfork() calls
        0 rfork() calls
        0 swap pager pageins
        0 swap pager pages paged in
        0 swap pager pageouts
        0 swap pager pages paged out
      431 vnode pager pageins
     3015 vnode pager pages paged in
        0 vnode pager pageouts
        0 vnode pager pages paged out
        0 page daemon wakeups
        0 pages examined by the page daemon
       34 pages reactivated
    18826 copy-on-write faults
      116 copy-on-write optimized faults
    13186 zero fill pages zeroed
    13056 zero fill pages prezeroed
        3 intransit blocking page faults
    45035 total VM faults taken
        0 pages affected by kernel thread creation
    52028 pages affected by  fork()
     7967 pages affected by vfork()
        0 pages affected by rfork()
    34518 pages freed
        0 pages freed by daemon
    22502 pages freed by exiting processes
     2177 pages active
     2263 pages inactive
        0 pages in VM cache
     2800 pages wired down
     6524 pages free
     4096 bytes per page
    23983 total name lookups
          cache hits (90% pos + 5% neg) system 0% per-directory
          deletions 0%, falsehits 0%, toolong 0%

-- 
Mikolaj Golub


More information about the freebsd-hackers mailing list