Closed renzhengeek closed 8 years ago
read side: Lockres: M0000000000000000000005895607d4 Mode: Protected Read Flags: Initialized Attached RO Holders: 0 EX Holders: 0 Pending Action: None Pending Unlock Action: None Requested Mode: Protected Read Blocking Mode: Invalid PR > Gets: 8 Fails: 0 Waits Total: 657us Max: 655us Avg: 82210ns EX > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns Disk Refreshes: 1
Inode: 5 Mode: 0755 Generation: 2304116692 (0x895607d4)
FS Generation: 2304116692 (0x895607d4)
CRC32: ae6c9d00 ECC: 02e0
Type: Directory Attr: 0x0 Flags: Valid System
Dynamic Features: (0x1) InlineData
User: 0 (root) Group: 0 (root) Size: 3896
Links: 3 Clusters: 0
ctime: 0x563b0482 0x393ba09 -- Thu Nov 5 15:25:54.60013065 2015
atime: 0x563b036e 0x0 -- Thu Nov 5 15:21:18.0 2015
mtime: 0x563b0482 0x393ba09 -- Thu Nov 5 15:25:54.60013065 2015
dtime: 0x0 -- Thu Jan 1 08:00:00 1970
Refcount Block: 0
Last Extblk: 0 Orphan Slot: 0
Sub Alloc Slot: Global Sub Alloc Bit: 1
Inline Data Max: 3896
debugfs.ocfs2 1.8.2 debugfs: 5 / debugfs:
11-31 writing side: /* lock type dentry... /file */ Lockres: N000000000000000500011a18 Mode: Protected Read Flags: Initialized Attached RO Holders: 0 EX Holders: 0 Pending Action: None Pending Unlock Action: None Requested Mode: Protected Read Blocking Mode: Invalid PR > Gets: 1 Fails: 0 Waits Total: 47us Max: 47us Avg: 47827ns EX > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns Disk Refreshes: 0
/* W:OCFS2_LOCK_TYPE_RW /file */ Lockres: W0000000000000000011a18b700bbe4 Mode: Exclusive Flags: Initialized Attached RO Holders: 0 EX Holders: 1 Pending Action: None Pending Unlock Action: None Requested Mode: Exclusive Blocking Mode: Invalid PR > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns EX > Gets: 58801804 Fails: 0 Waits Total: 4986485us Max: 209us Avg: 84ns Disk Refreshes: 0
/* OCFS2_LOCK_TYPE_OPEN /file */ Lockres: O0000000000000000011a1800000000 Mode: Protected Read Flags: Initialized Attached RO Holders: 1 EX Holders: 0 Pending Action: None Pending Unlock Action: None Requested Mode: Protected Read Blocking Mode: Invalid PR > Gets: 1 Fails: 0 Waits Total: 30us Max: 30us Avg: 30681ns EX > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns Disk Refreshes: 0
/* M: OCFS2_LOCK_TYPE_META, /file */ Lockres: M0000000000000000011a1800000000 Mode: Exclusive Flags: Initialized Attached RO Holders: 0 EX Holders: 1 Pending Action: None Pending Unlock Action: None Requested Mode: Exclusive Blocking Mode: Invalid PR > Gets: 58801812 Fails: 0 Waits Total: 4527416us Max: 249us Avg: 76ns EX > Gets: 58801810 Fails: 0 Waits Total: 4557270us Max: 203us Avg: 77ns Disk Refreshes: 0
/* //orphan_dir:0001/ */ Lockres: M000000000000000000000d895607d4 Mode: Protected Read Flags: Initialized Attached RO Holders: 0 EX Holders: 0 Pending Action: None Pending Unlock Action: None Requested Mode: Protected Read Blocking Mode: Invalid PR > Gets: 2 Fails: 0 Waits Total: 76us Max: 75us Avg: 38036ns EX > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns Disk Refreshes: 1
/* //journal:0000 */ Lockres: M0000000000000000000012895607d4 Mode: Exclusive Flags: Initialized Attached RO Holders: 0 EX Holders: 1 Pending Action: None Pending Unlock Action: None Requested Mode: Exclusive Blocking Mode: Invalid PR > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns EX > Gets: 1 Fails: 0 Waits Total: 20us Max: 20us Avg: 20263ns Disk Refreshes: 1
/* //orphan_dir:0000/ */ Lockres: M000000000000000000000c895607d4 Mode: Protected Read Flags: Initialized Attached RO Holders: 0 EX Holders: 0 Pending Action: None Pending Unlock Action: None Requested Mode: Protected Read Blocking Mode: Invalid PR > Gets: 2 Fails: 0 Waits Total: 47us Max: 47us Avg: 23750ns EX > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns Disk Refreshes: 1
/* //global_bitmap */ Lockres: M000000000000000000000b895607d4 Mode: Exclusive Flags: Initialized Attached RO Holders: 0 EX Holders: 0 Pending Action: None Pending Unlock Action: None Requested Mode: Exclusive Blocking Mode: Invalid PR > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns EX > Gets: 2 Fails: 0 Waits Total: 48us Max: 48us Avg: 24354ns Disk Refreshes: 1
/* / */ Lockres: M0000000000000000000005895607d4 Mode: Protected Read Flags: Initialized Attached RO Holders: 0 EX Holders: 0 Pending Action: None Pending Unlock Action: None Requested Mode: Protected Read Blocking Mode: Invalid PR > Gets: 8 Fails: 0 Waits Total: 33us Max: 31us Avg: 4145ns EX > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns Disk Refreshes: 1
write side:
Lockres: M000000000000000000000b895607d4 Mode: Exclusive Flags: Initialized Attached RO Holders: 0 EX Holders: 0 Pending Action: None Pending Unlock Action: None Requested Mode: Exclusive Blocking Mode: Invalid PR > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns EX > Gets: 2 Fails: 0 Waits Total: 54us Max: 54us Avg: 27111ns Disk Refreshes: 1
Lockres: M0000000000000000000005895607d4 Mode: Protected Read Flags: Initialized Attached RO Holders: 0 EX Holders: 0 Pending Action: None Pending Unlock Action: None Requested Mode: Protected Read Blocking Mode: Invalid PR > Gets: 8 Fails: 0 Waits Total: 66us Max: 64us Avg: 8270ns EX > Gets: 0 Fails: 0 Waits Total: 0us Max: 0us Avg: 0ns Disk Refreshes: 1
n1:/debug/dlm # echo "locate" | debugfs.ocfs2 /dev/sda2
debugfs.ocfs2 1.8.2
debugfs: 11 //global_bitmap
debugfs:
n1:/debug/dlm # echo "locate " | debugfs.ocfs2 /dev/sda2
debugfs.ocfs2 1.8.2
debugfs: 5 /
debugfs: