[dtrace-discuss] dtrace wired issue

Aubrey Li
Tue, 15 Jan 2008 09:07:36 -0000

On Jan 15, 2008 4:43 PM, max at bruningsystems.com <max at
bruningsystems.com> wrote:
> Aubrey Li wrote:
> > On Jan 15, 2008 2:45 PM, max at bruningsystems.com <max at
bruningsystems.com> wrote:
> >
> >> Hi Aubrey,
> >>
> >>> -------snip----------
> >>> setrlimit(RLIMIT_NOFILE, 0xFFFFFD7FFFDFEE80)    = 0
> >>> openat(AT_FDCWD, "/dev/dtrace/provider",
O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
> >>> fcntl(3, F_SETFD, 0x00000001)                   = 0
> >>> fstat(3, 0xFFFFFD7FFFDFE8E0)                    = 0
> >>> getdents(3, 0xFFFFFD7FFF174000, 8192) (sleeping...)
> >>> -----------here, dtrace sleep almost 4 minutes--------
> >>> ...and continue...
> >>>
> >>>
> >>>
> >> How long does an ls -l /dev/dtrace/provider take?
> >>
> >
> > Yes, it costs almost 4 minutes.
> >
> >
> So, what does ls -l /dev/dtrace/provider show?
> max
>
>

# ls -l /dev/dtrace/provider
total 14
lrwxrwxrwx   1 root     root          43 Sep  3 01:21 fasttrap ->
../../../devices/pseudo/fasttrap at 0:fasttrap
lrwxrwxrwx   1 root     root          33 Sep  3 01:21 fbt ->
../../../devices/pseudo/fbt at 0:fbt
lrwxrwxrwx   1 root     root          43 Sep  3 01:21 lockstat ->
../../../devices/pseudo/lockstat at 0:lockstat
lrwxrwxrwx   1 root     root          49 Sep  3 01:21 lx_systrace ->
../../../devices/pseudo/lx_systrace at 0:lx_systrace
lrwxrwxrwx   1 root     root          41 Sep  3 01:21 profile ->
../../../devices/pseudo/profile at 0:profile
lrwxrwxrwx   1 root     root          33 Sep  3 01:21 sdt ->
../../../devices/pseudo/sdt at 0:sdt
lrwxrwxrwx   1 root     root          43 Sep  3 01:21 systrace ->
../../../devices/pseudo/systrace at 0:systrace

err, now I got something interesting.
It looks like this wired issue is caused by the ata driver bug
which I reported on the opensolaris-bug mailing list.

When I switch the system to the console mode(X is disabled), I got
#dtrace -l
--------snip--------
scsi: WARNING: /pci at 0,0/pci-ide at 1f,2/ide at 1 (ata1):
       timeout: abort request, target=0 lun=0
scsi: WARNING: /pci at 0,0/pci-ide at 1f,2/ide at 1 (ata1):
       timeout: abort device, target=0 lun=0
scsi: WARNING: /pci at 0,0/pci-ide at 1f,2/ide at 1 (ata1):
       timeout: reset target, target=0 lun=0
scsi: WARNING: /pci at 0,0/pci-ide at 1f,2/ide at 1 (ata1):
       timeout: reset bus, target=0 lun=0
ID   PROVIDER            MODULE                          FUNCTION NAME
    1     dtrace                                                     BEGIN
    2     dtrace                                                     END
    3     dtrace                                                     ERROR
    4   lockstat           genunix                       mutex_enter
adaptive-acquire
    5   lockstat           genunix                       mutex_enter
adaptive-block
    6   lockstat           genunix                       mutex_enter
adaptive-spin
    7   lockstat           genunix                        mutex_exit
adaptive-release
    8   lockstat           genunix                     mutex_destroy
adaptive-release
    9   lockstat           genunix                    mutex_tryenter
adaptive-acquire
 ----snip----

-Aubrey