/proc/scsi/sg/debug and timeouts
- From: "Damián Gatabria" <dgatabria@xxxxxxxxx>
- Date: Mon, 31 Mar 2008 16:57:06 -0300
Hello,
I've got a question regarding the values reported by
/proc/scsi/sg/debug. I'm currently troubleshooting a SCSI tape problem
-- our backup software sometimes gets stuck and never releases the
drive. I see some messages in dmesg about reservation conflicts, which
leads me to believe that some other process is trying to grab the
drive when it's busy doing something else...?
Assuming this theory is correct, I cat /proc/scsi/sg/debug and find this:
sg]# cat debug
dev_max(currently)=64 max_active_device=61 (origin 1)
def_reserved_size=65536
FD(1): timeout=1800000ms bufflen=65536 (res)sgat=2 low_dma=0device=sg56 scsi1 chan=0 id=0 lun=2 em=0 sg_tablesize=255 excl=0
cmd_q=0 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=324 t_o/elap=1800000/86235844ms sgat=0 op=0x4d
FD(2): timeout=1800000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=0 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=324 t_o/elap=1800000/59911955ms sgat=0 op=0x4d
FD(3): timeout=1800000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=0 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=324 t_o/elap=1800000/23683541ms sgat=0 op=0x4d
FD(4): timeout=1800000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=0 f_packid=0 k_orphan=0 closed=1
act: id=0 blen=0 t_o/elap=1800000/21087406ms sgat=0 op=0x16
FD(5): timeout=1800000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=0 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=324 t_o/elap=1800000/15882555ms sgat=0 op=0x4d
FD(6): timeout=1800000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=0 f_packid=0 k_orphan=0 closed=0
rb>> act: id=0 blen=324 t_o/elap=1800000/4728576ms sgat=0 op=0x4d
FD(7): timeout=600000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=0 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=96 t_o/elap=600000/3465563ms sgat=0 op=0x12
FD(8): timeout=60000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=1 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=36 t_o/elap=20000/2543704ms sgat=0 op=0x12
act: id=0 blen=36 t_o/elap=20000/2518259ms sgat=0 op=0x12
FD(9): timeout=60000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=1 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=36 t_o/elap=60000/1605323ms sgat=0 op=0x12
FD(10): timeout=600000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=0 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=96 t_o/elap=600000/1574035ms sgat=0 op=0x12
FD(11): timeout=60000ms bufflen=65536 (res)sgat=2 low_dma=0
cmd_q=1 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=36 t_o/elap=60000/1548383ms sgat=0 op=0x12
So, I see that of all of those commands, only '6' corresponds to an
open file descriptor (the backup process, which is sleeping, waiting
for a read on the tape drive's sg device to return), and I also see
that '4' is a closed file descriptor with an active "0x16 RESERVE".
However, several of these
show 'elapsed' times that go beyond their respective timeout values.
I'm running: Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
Kernel: 2.6.9-67.ELsmp
Questions:
- Aren't the commands that are beyond their timeouts supposed to
expire somehow?
- Is there a way for me to get some information about which process
created '4'?
Thank you,
Damian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Prev by Date: Re: [PATCH] SUNRPC: have soft RPC tasks return -ETIMEDOUT instead of -EIO on major connect timeout
- Next by Date: hci_usb: races, races, races
- Previous by thread: [git pull] Input updates for 2.6.25-rc7
- Next by thread: hci_usb: races, races, races
- Index(es):
Relevant Pages
- Re: [opensuse] backup software for dds3 tape drive
... BashLogic Linux wrote: ... is there a good backup software or script
to use with a dds3 tape drive? ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
... (SuSE) - [opensuse] Re: Backup Software
... March 2007 16:08:23 Per Qvindesland wrote: ... What backup software would
be best if you want it to do a automated ... backup to a dvd during night time, ...
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ... (SuSE) - [opensuse] backup software for dds3 tape drive
... is there a good backup software or script to use with a dds3 tape drive? ...
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands,
e-mail: opensuse+help@xxxxxxxxxxxx ... (SuSE)