Andrea Arcangeli wrote: >On Wed, Jun 04, 2003 at 12:46:33PM +0200, Marc-Christian Petersen wrote: > >>On Wednesday 04 June 2003 12:42, Jens Axboe wrote: >> >>Hi Jens, >> >> >>>>>the issue with batching in 2.4, is that it is blocking at 0 and waking >>>>>at batch_requests. But it's not blocking new get_request to eat >>>>>requests in the way back from 0 to batch_requests. I mean, there are >>>>>two directions, when we move from batch_requests to 0 get_requests >>>>>should return requests. in the way back from 0 to batch_requests the >>>>>get_request should block (and it doesn't in 2.4, that is the problem) >>>>> >>>>do you see a chance to fix this up in 2.4? >>>> >>>Nick posted a patch to do so the other day and asked people to test. >>> >>Silly mcp. His mail was CC'ed to me :( ... F*ck huge inbox. >> > >I was probably not CC'ed, I'll search for the email (and I was >travelling the last few days so I didn't read every single l-k email yet >sorry ;) > > The patch I sent is actually against 2.4.20, contrary to my babling. Reports I have had say it helps, but maybe not so much as Andrew'ss fixes. Then Matthias Mueller ported my patch to 2.4.21-rc6 which include Andrew's fixes. It seems that they might be fixing two different problems. It looks promising though. My patch would not affect read IO throughput for a smallish number of readers because the queue should never fill up. > 1 writer or a lot of readers could see some throughput drop due to the patch causing the queue to be more FIFO at high loads. I have attached the patch again. Its against 2.4.20. Nick Matthias Mueller wrote: >Currently I'm running 2.4.21-rc6 with your patch and the patch from Andrew >and it looks very promising. Both patches seem to address two different >problems, combined I can have 2 parallel dds running and play music with >xmms and notice no sounddrops (actually i had one, but that was during >very high cpu load). Your patch seems to lower IO-throughput, but I >haven't tested this, so no real numbers, just my personal feelings and >the numbers 'time dd ...' gave me. > >