* Deadline for video capture
@ 2004-01-22 5:08 Con Kolivas
2004-01-22 5:17 ` Nick Piggin
0 siblings, 1 reply; 4+ messages in thread
From: Con Kolivas @ 2004-01-22 5:08 UTC (permalink / raw)
To: linux kernel mailing list; +Cc: Nick Piggin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all
I suspected that the anticipatory scheduler might not have been the best
choice for video capture because of the interruption to writes by reads and
the subsequent anticipatory delay associated with it. I have now confirmed
that booting with the default anticipatory i/o elevator I get many dropped
frames that I don't get if I boot with elevator=deadline.
briefly: dual 7200 rpm ATA5 IDE drives in software RAID0
I guess there isn't really a lot to do about this, it's a compromise one way
or the other. The anticipatory scheduler seems better all round but in this
large streaming write situation it doesn't seem ideal. Any sysctl settings I
could use to blunt the anticipation just before I do video capture?
Con
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAD1qzZUg7+tp6mRURAuekAJ9pFVgSLkY7zr4TL7CEfdRfKdp1DQCfUC6T
RnALyU70HgP9AQt8LS4+B6M=
=H3WY
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Deadline for video capture
2004-01-22 5:08 Deadline for video capture Con Kolivas
@ 2004-01-22 5:17 ` Nick Piggin
2004-01-22 14:28 ` Timothy Miller
0 siblings, 1 reply; 4+ messages in thread
From: Nick Piggin @ 2004-01-22 5:17 UTC (permalink / raw)
To: Con Kolivas; +Cc: linux kernel mailing list
Con Kolivas wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi all
>
>I suspected that the anticipatory scheduler might not have been the best
>choice for video capture because of the interruption to writes by reads and
>the subsequent anticipatory delay associated with it. I have now confirmed
>that booting with the default anticipatory i/o elevator I get many dropped
>frames that I don't get if I boot with elevator=deadline.
>
>briefly: dual 7200 rpm ATA5 IDE drives in software RAID0
>
>I guess there isn't really a lot to do about this, it's a compromise one way
>or the other. The anticipatory scheduler seems better all round but in this
>large streaming write situation it doesn't seem ideal. Any sysctl settings I
>could use to blunt the anticipation just before I do video capture?
>
echo 0 > /sys/block/*/queue/iosched/antic_expire
Turns it off alltogether.
You could also adjust read and write batch expire settings which are
heavily biased toward reads.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Deadline for video capture
2004-01-22 5:17 ` Nick Piggin
@ 2004-01-22 14:28 ` Timothy Miller
2004-01-22 15:37 ` Con Kolivas
0 siblings, 1 reply; 4+ messages in thread
From: Timothy Miller @ 2004-01-22 14:28 UTC (permalink / raw)
To: Nick Piggin; +Cc: Con Kolivas, linux kernel mailing list
Nick Piggin wrote:
>
>
> Con Kolivas wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi all
>>
>> I suspected that the anticipatory scheduler might not have been the
>> best choice for video capture because of the interruption to writes by
>> reads and the subsequent anticipatory delay associated with it. I
>> have now confirmed that booting with the default anticipatory i/o
>> elevator I get many dropped frames that I don't get if I boot with
>> elevator=deadline.
>> briefly: dual 7200 rpm ATA5 IDE drives in software RAID0
>>
>> I guess there isn't really a lot to do about this, it's a compromise
>> one way or the other. The anticipatory scheduler seems better all
>> round but in this large streaming write situation it doesn't seem
>> ideal. Any sysctl settings I could use to blunt the anticipation just
>> before I do video capture?
>>
>
> echo 0 > /sys/block/*/queue/iosched/antic_expire
> Turns it off alltogether.
>
> You could also adjust read and write batch expire settings which are
> heavily biased toward reads.
Please excuse my potentially very stupid questions....
In AS, are there any sorts of "pressure levels" which indicate how many
read and write blocks are pending? Perhaps AS itself could be modified
to strongly favor writes once some water mark of available pages (page
cache, right?) has been reached.
The main idea behind AS is to increase throughput at the expense of
additional latency. It certainly wouldn't hurt us if occasionally there
was a sudden burst of well-ordered writes.
I'm assuming that AS attempts to order reads and writes in ascending
block number, right? Why not order I/O's by ascending block number
regardless of whether they're reads or writes, especially when the write
pressure reaches a certain point?
Also, what kind of other system load was going on when the capture was
happening? A kernel compile? Is there any feedback from the process
scheduler to AS which indicates that an interactive task is what is
doing the writes?
It seems to me that video playback would be helped by AS. If capture is
hurt by AS, that would be a shame. Who wants to have to reboot or
change /proc parameters to switch between record and playback?
But then again, anyone doing professional video editing is not likely to
be doing a kernel compile in the background. :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Deadline for video capture
2004-01-22 14:28 ` Timothy Miller
@ 2004-01-22 15:37 ` Con Kolivas
0 siblings, 0 replies; 4+ messages in thread
From: Con Kolivas @ 2004-01-22 15:37 UTC (permalink / raw)
To: Timothy Miller, Nick Piggin; +Cc: linux kernel mailing list
On Fri, 23 Jan 2004 01:28, Timothy Miller wrote:
> Also, what kind of other system load was going on when the capture was
> happening? A kernel compile?
Basically idle. With the deadline scheduler I was able to continue using the
machine without dropping frames.
Con
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-01-22 15:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-22 5:08 Deadline for video capture Con Kolivas
2004-01-22 5:17 ` Nick Piggin
2004-01-22 14:28 ` Timothy Miller
2004-01-22 15:37 ` Con Kolivas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox