NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/38669: NFS deadlock?



The following reply was made to PR kern/38669; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: ad%NetBSD.org@localhost
Subject: Re: kern/38669: NFS deadlock?
Date: Mon, 19 May 2008 01:04:57 +0200

 On Sun, May 18, 2008 at 02:30:04PM +0000, Andrew Doran wrote:
 >  With LOCKDEBUG, 'show lock' on the wchan will show you who holds that lock.
 >  t/a on LWP address of threads blocked on the locks (from ps/l), and on
 >  threads that hold those locks is useful to unravel the mess and find the
 >  root cause.
 
 I'm confused - I picked a process waiting on tstile:
 
   PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
  1775 martin   110    0  4440K   94M tstile/0   0:48  0.00%  0.00% cc1
 
 db{0}> ps/w
  PID        LID          COMMAND     EMUL  PRI WAIT-MSG    WAIT-CHANNEL
 [..]
  1775         1              cc1   netbsd   28 tstile       eb88970
 [..]
 db{0}> show lock 0xeb88970                                         
 lock address : 0x000000000eb88970 type     :     sleep/adaptive
 shared holds :                  0 exclusive:                  1
 shares wanted:                  0 exclusive:                  1
 current cpu  :                  0 last held:                  1
 current lwp  : 0x000000000d04fa40 last held: 0x000000000f227780
 last locked  : 0x00000000011582c0 unlocked : 0x0000000001158380
 initialized  : 0x0000000001159d9c                              
 owner/count  : 0x000000000f227780 flags    : 0x000000000000000f
                                                                
 Turnstile chain at 0x1474320.
 => Turnstile at 0xd050600 (wrq=0xd050620, rdq=0xd050640).
 => 0 waiting readers:                                    
 => 1 waiting writers: 0xf4548e0
 db{0}> t/a 0x000000000d04fa40  
 trace: pid 0 lid 2 at 0xd68d491
 db{0}> t/a 0xf4548e0
 trace: pid 1775 lid 1 at 0xf436851
 sleepq_block(0, 0, 1471d40, 11ea800, f434000, 1) at netbsd:sleepq_block+0x114
 turnstile_block(6c, f227780, d050600, 0, 1814000, 299936f00000000) at 
netbsd:tur
 nstile_block+0x2f0                                                             
 rw_vector_enter(eb88970, 1, eb88890, f4376a0, 0, 3) at 
netbsd:rw_vector_enter+0x
 100                                                                            
 vlockmgr(eb88970, 2, 11d0400, f4548e0, f4548e0, 1) at netbsd:vlockmgr+0x13c
 VOP_LOCK(eb88890, 10002, d047e40, 11ec400, f4548e0, 1) at netbsd:VOP_LOCK+0x38
 vn_lock(eb88890, 2, d04bc80, f4548e0, 1814000, 1) at netbsd:vn_lock+0xb4      
 nfs_lookup(0, f43786f, eb88ab0, 146f800, f4548e0, 0) at 
netbsd:nfs_lookup+0x1120
                                                                                
 VOP_LOOKUP(eb889a0, f437b50, f437b78, f4548e0, 1814000, 2f) at 
netbsd:VOP_LOOKUP
 +0x3c                                                                          
 lookup(f437b28, 0, f437938, 20, f434000, 1) at netbsd:lookup+0x338
 namei(0, 627000, f437b28, f437b78, 626c00, 5fe800) at netbsd:namei+0x128
 do_sys_stat(ffffffffffffd904, 54, f437c78, 5fe800, 482800, 634400) at 
netbsd:do_
 sys_stat+0x20                                                                  
 sys___stat30(f4548e0, f437dc0, f437e00, 0, 0, 0) at netbsd:sys___stat30+0x10
 syscall_plain(f437ed0, 2, 4083ce64, 193, 4083ce64, 800) at 
netbsd:syscall_plain+
 0x120  
 db{0}> ps/l                                                                   
  PID         LID S     FLAGS       STRUCT LWP *               NAME WAIT
  1584          1 3        84            f226c40                 as piperd
  1564          1 3         4            f31d3e0                cc1 netio 
  1682          1 3        84            f441400                 cc wait 
  1604          1 3        84            f227b40                 sh wait
  1588          1 3        84            f4408c0                 as piperd
  1646          1 3         4            f226100                cc1 nfsrcv
  1659          1 3        84            f454520                 cc wait  
  1598          1 3        84            f455ba0                 sh wait
  1464          1 3        84            f4417c0                 as piperd
  1771          1 3         4            f227780                cc1 nfsrcv
  1653          1 3        84            f31c4e0                 cc wait  
  1312          1 3        84            ecaec00                 sh wait
  1594          1 3        84            f31cc60                 as piperd
  1775          1 3         4            f4548e0                cc1 tstile
  1565          1 3        84            ecae840                 cc wait  
  1610          1 3        84            f2264c0                 sh wait
  423           1 3        84            eaaa820                top select
  419           1 3        84            eaaa460               tcsh pause 
  415           1 3        84            eaaabe0               sshd select
  98            1 3        84            eaaafa0               sshd netio 
  316           1 3        84            eaab360               make select
  276           1 3        84            eaab720               tcsh pause 
  275           1 3        84            eaabae0               sshd select
  272           1 3        84            ea04440               sshd netio 
  269           1 3        84            d0787e0              getty tty  
  277           1 3        84            ea04800              getty tty
  262           1 3        84            ea04bc0              getty tty
  270           1 3        84            d078ba0              getty tty
  273           1 3         4            d060b80               cron nfsrcv
  249           1 3        84            ea04080              inetd kqueue
  236           1 3        84            d078420               sshd select
  229           1 3        84            d060040             upsmon nanoslp
  232           1 3        84            d060400             upsmon piperd 
  228           1 3        84            ea04f80               upsd select
  216           1 3        84            ea05700           apcsmart select
  201           1 3   1000004            ea05340               ntpd nfsrcv
  87            1 3        84            d078060            syslogd kqueue
  1             1 3        84            d0607c0               init wait  
 >0            35 3       204            eaaa0a0            physiod physiod
               34 3       204            ea05ac0            swapiod swapiod
               33 3       204            d078f60        vmem_rehash vmem_rehash
               32 3       204            d079320           aiodoned aiodoned   
               31 3       204            d0796e0            ioflush nfsrcv  
               30 3       204            d079aa0           pgdaemon pgdaemon
               29 3       204            d0616c0              nfsio nfsiod  
               28 3       204            d061300              nfsio nfsiod
               27 3       204            d060f40              nfsio nfsiod
               26 3       204            d061a80              nfsio nfsiod
               17 3       204            d056020           scsibus0 sccomp
               16 3       204            d0563e0            xcall/1 xcall 
               15 1       204            d0567a0          softser/1      
               14 1       204            d056b60          softclk/1
               13 1       204            d056f20          softbio/1
               12 1       204            d0572e0          softnet/1
               11 7  20000205            d0576a0             idle/1
               10 3       204            d057a60           pmfevent pmfevent
                9 3       204            d04e000            cachegc cachegc 
                8 3       204            d04e3c0              vrele vrele  
                7 3       204            d04e780            xcall/0 xcall
                6 1       204            d04eb40          softser/0      
                5 1       204            d04ef00          softclk/0
                4 1       204            d04f2c0          softbio/0
                3 1       204            d04f680          softnet/0
            >   2 7  20000205            d04fa40             idle/0
                1 3       204            140f4e0            swapper schedule
 
 


Home | Main Index | Thread Index | Old Index