All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven-Thorsten Dietrich <sven@thebigcorporation.com>
To: Nicholas Mc Guire <der.herr@hofr.at>
Cc: Tim Blechmann <tim@klingt.org>,
	y@opentech.at, Mark Knecht <markknecht@gmail.com>,
	linux-rt-users@vger.kernel.org
Subject: Re: rt file i/o
Date: Thu, 05 Nov 2009 01:22:17 -0800	[thread overview]
Message-ID: <4AF29949.40303@thebigcorporation.com> (raw)
In-Reply-To: <20091104171412.GB1702@opentech.at>

On 11/04/2009 09:14 AM, Nicholas Mc Guire wrote:
> On Wed, 04 Nov 2009, Tim Blechmann wrote:
>
>    
>>>     I'm not a developer and cannot really address your specific
>>> question but for my use of the rt-kernel I put important rt-audio
>>> files on a 1394 drive and give the 1394 driver higher priorities using
>>> the IRQ scheduling tools. I don't have any trouble running 2 or 3 1394
>>> drives recording and playing back 48 channels in Ardour.
>>>
>>>     While I agree you should do everything the right way technically in
>>> the code maybe part of your solution is outside of the app you are
>>> writing and in the use of these support tools?
>>>        
>> well, if i understand the rt howto correctly, _no_ disc access is
>> allowed, neither from rt nor from non-rt threads, since it may produce
>> page faults, which introduce latencies ...
>>      
> I would be supprised if the rt howto states that page-faults in non-rt
> threads is a critical problem - that would not significantly impact RT
> performance - atelast not the worst case - it will (as every other system
> load) impact the average case. so having a non-rt thread reading disk-files
> to a buffer and a rt-thread processing this buffer should be perfectly fine.
>
>    

Ack. I agree with Herr Hofrat, and would only add, that it is helpful to 
pre-allocate and mlock() memory you use to pipe data from RT tasks to 
the I/O subsystem.

It is possible to trigger delays in a priority-agnostic manner when a 
large number of tasks end up all hammering heavily on malloc().

Sven

> hofrat
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>    


  parent reply	other threads:[~2009-11-05  9:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-04 15:25 rt file i/o Tim Blechmann
2009-11-04 15:43 ` Mark Knecht
2009-11-04 15:52   ` Tim Blechmann
2009-11-04 17:14     ` Nicholas Mc Guire
2009-11-04 17:32       ` Tim Blechmann
2009-11-04 22:41         ` Nicholas Mc Guire
2009-11-04 22:44         ` Clark Williams
2009-11-05  4:30           ` Shane M Smith
2009-11-05  9:29           ` Tim Blechmann
2009-11-05 20:30             ` Remy Bohmer
2009-11-05  9:22       ` Sven-Thorsten Dietrich [this message]
2009-11-05  4:14     ` Mark Knecht
2009-11-04 17:09 ` Nicholas Mc Guire

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AF29949.40303@thebigcorporation.com \
    --to=sven@thebigcorporation.com \
    --cc=der.herr@hofr.at \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=markknecht@gmail.com \
    --cc=tim@klingt.org \
    --cc=y@opentech.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.