login
Header Space

 
 

Re: [RFC] Disk shock protection (revisited)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Elias Oltmanns <eo@...>
Cc: <linux-ide@...>, <linux-kernel@...>, Jens Axboe <jens.axboe@...>
Date: Thursday, February 28, 2008 - 7:13 am

> > That sounds like a non starter. What if the box is busy, what if the

mlock does not guarantee anything of that form. A syscall by an mlocked
process which causes a memory allocation can cause paging of another
process on the system.


It depends a lot on hardware but you can certainly get user space delays
in seconds as an extreme worst case.


Yes - the fact we may well have bounced off the floor already.


Thats fine - nothing says a user space daemon isn't a good starting point.


No doesn't work like that. The command currently being processed on IDE
can take up to 60 seconds to complete. Idle immediate (on the devices it
works for - it hangs some) is very special in that it can be used in some
cases to interrupt a running command sequence. It requires a significant
amount of work in the driver layer to then clean up and requeue the
partial command and to know if it is possible to do so.


I think we have three things here

1.	A general queue freeze scheme from user space
2.	A general implementation of a queue freeze that stops further
command issuing while the queue is blocked
3.	The ability for devices to provide a function to be called
when a queue freeze is done (ie idle immediate and the like)

The fine details of how you abort an ATA command don't actually matter
for an initial implementation and can be written once the core stuff is
right.


I have the specs, and I don't understand it or even if it is valid to do
so. Some research (as in trying it and seeing) may be needed.


The scsi midlayer is the main manager of queues so that seems sane - and
if you've got the basic queue freeze logic right then one assumes it will
work for scsi too.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] Disk shock protection (revisited), Elias Oltmanns, (Thu Feb 28, 4:24 am)
Re: [RFC] Disk shock protection (revisited), Alan Cox, (Thu Feb 28, 7:13 am)
Re: [RFC] Disk shock protection (revisited), Pavel Machek, (Sun Feb 24, 2:03 pm)
Re: [RFC] Disk shock protection (revisited), Greg Freemyer, (Thu Feb 28, 1:00 pm)
speck-geostationary