[Date Prev][Date Next] [Chronological] [Thread] [Top]

No Subject



Hello. I have a question related to audio latency. It looks Benno
measured the latency with an audio program which doesn't use the disk. 
But still many audio programs use the disk and I see only problems
in it. My questions follows.

If both RT priority and user priority process makes a read() to the disk
while disk is still serving a previous read/write, what happens?

If previous read was done by user priority process, will it be killed
and RT process's read serviced immediately?

Will RT process read get the turn before the user process read independing
on which order the reads were done?

What if the previous read was done with read(fd,buf,4000000), will
the both new reads freeze for all that time it takes to read 4 MB
or is the 4 MB read divided to smaller parts just to give others their
turn?

 -*-

I hope I got all important to those questions.

Basically I would like to have a system where reads and writes are
prioriticed and where higher priority read or write can preempt the
lower priority read or write.

Somehow the kernel's page swapping should co-work with this system because
it would not be good if RT process is freezed by heavy swapping of lower
priority process.

If kernel's page swapping is prioriticed, it might happen that X server
freezes. But that is okay, because realtime audio system should take
its all inputs from realtime devices such as MIDI controller. Of course,
it would be great if X windows would have a priority system allowing
a synth GUI to get its events processed before any other X clients.

Yours,

Juhana
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/