[mythtv-users] Question on configuring rlimits

Robin Hill myth at robinhill.me.uk
Mon Oct 2 08:40:22 UTC 2006


On Mon Oct 02, 2006 at 06:12:58PM +1000, Phill Edwards wrote:

> http://www.mythtv.org/docs/mythtv-HOWTO-5.html says this:
> <snip>
> Assuming anyone running mythfrontend is in the audio group and rlimits
> are supported, all you need to do is place this in your
> /etc/security/limits.conf
> 
>     *               -       rtprio     0
>     *               -       nice       0
>     @audio          -       rtprio     50
>     @audio          -       nice       0
> </snip>
> 
> When I log on as mythtv and run the groups command I get this:
> $ groups
> mythtv users
> 
> I have 2 questions:
> 
> 1) Am I right to assume that I can just replace @audio in the example
> above with @mythtv?
> 
Yes, or just mythtv (the @ indicates a group, without it means a user).

> 2) Is there some sort of check I can do to make sure this worked and
> that the frontend is running with realtime scheduling of the video
> output thread?
> 
If you run top while watching a recording/LiveTV then the thread should
have a priority of RT (i.e. realtime) - you may have to provide top with
extra switches to show threads, I use htop which does that by default.

Note that this definitely won't work if your version of PAM isn't new
enough - the HOWTO above gives the minimum version.

Cheers,
        Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <myth at robinhill.me.uk>  |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20061002/24067a38/attachment.pgp 


More information about the mythtv-users mailing list