Skip to contentSkip to conversation

tag starvation

parisc-linux Grant Grundler 2 participants 4 messages Jan 25, 2002 – Jan 26, 2002 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Follow up to [email protected] only please. (ie this isn't a debian linux issue)

Quoted 3 lines · Vlad Markov

I get the following message when I boot up on a 735/99:

Jan 22 19:12:41 grumpy kernel: scsi0 (1:0) Target is suffering from tag
	starvation.

Seems only 53c700.c prints this msg. Is this the right driver?

Normally you shouldn't see this *if* the device supports tagged commands. I can never remember the SCSI driver options (the parisc-linux FAQ has the URL to them) but one of them will either disable or limit "queue depth" for Queue Tags and that should take care of it.

BTW, normally you want to post the /proc/scsi/scsi info for the devices in question.

Quoted 7 lines

The kernel Iam using is:

Jan 22 19:12:41 grumpy kernel: Linux version 2.4.16-32 (root@paer) (gcc versi
  on

3.0.3) #1 Sat Dec 29 01:28:13 MST 2001

I suspect this is not a good message - should I worry?

Panic would be worse ;^)

grant

#2 lore raw
Quoted 10 lines · Grant Grundler

Follow up to [email protected] only please. (ie this isn't a debian linux issue)

Quoted 3 lines · Vlad Markov

I get the following message when I boot up on a 735/99:

Jan 22 19:12:41 grumpy kernel: scsi0 (1:0) Target is suffering from tag
	starvation.

Seems only 53c700.c prints this msg. Is this the right driver?

Should be; 735 has unsupported 53c720 FWD, and 53c700 or 710 driven by 53c700.c. I assume Vlad has external narrow SE disks attached.

Quoted 1 line

Normally you shouldn't see this *if* the device supports tagged commands.

I used to get this a lot, until James changed the driver to only report the first occurance of it. Don't remember the exact details, but iirc it is for info only, and non-fatal. From the code it looks like it means some cmnd has been sitting in the drive unprocessed for too long, and the code rejects new cmds until those older ones have been processed or timed out.

Quoted 3 lines

I can never remember the SCSI driver options (the parisc-linux FAQ has the URL to them) but one of them will either disable or limit "queue depth" for Queue Tags and that should take care of it.

Hmm, I thought that would be a feature of a specific driver, not the upper layers. 53c700.c doesn't (yet) have any boot options to disable tags.

Richard

#3 lore raw
Quoted 6 lines · Richard Hirst

I used to get this a lot, until James changed the driver to only report the first occurance of it. Don't remember the exact details, but iirc it is for info only, and non-fatal. From the code it looks like it means some cmnd has been sitting in the drive unprocessed for too long, and the code rejects new cmds until those older ones have been processed or timed out.

Ah ok...does "starvation" properly described by the following scenario?

While the drive is completing IO requests as fast as it can, *some* IO's don't complete because they never become the most optimal one to complete. This is an inherent "unfairness" in the normal SCSI Queue tag. (Two other types of tags exist but are never used by Unix OS's AFAICT: ordered, Head)

HP branded (and tested) drives are required to return a completion for any outstanding IO within 3 seconds. ie if 8 tags are active any given time, the drive can complete the IO's in any order until an IO reaches this 3 second limit. The reason for the limit is to prevent outstanding file system meta data from locking up access to portions the file system for 30+ seconds.

Quoted 3 lines

Hmm, I thought that would be a feature of a specific driver, not the upper layers. 53c700.c doesn't (yet) have any boot options to disable tags.

hmmm...could we just replace the following constant with a MODULE_PARAM() variable?

53c700.h:#define NCR_700_MAX_TAGS 16

In the interim, I suggest reducing this until the problem goes away for that disk.

IIRC, HPUX allows the user to set this on a per disk basis using scsictl command.

thanks,
grant

#4 lore raw
Quoted 7 lines · Grant Grundler

Ah ok...does "starvation" properly described by the following scenario?

While the drive is completing IO requests as fast as it can, *some* IO's don't complete because they never become the most optimal one to complete. This is an inherent "unfairness" in the normal SCSI Queue tag. (Two other types of tags exist but are never used by Unix OS's AFAICT: ordered, Head)

Yes, that sums it up nicely.

Quoted 4 lines

hmmm...could we just replace the following constant with a MODULE_PARAM() variable?

53c700.h:#define NCR_700_MAX_TAGS 16

That sounds like a good idea; I think James was planning to add some options like that to the driver, so we should check with him before doing anything.

Richard