LinHES Forums
http://forum.linhes.org/

Setting nice level for mythfrontend?
http://forum.linhes.org/viewtopic.php?f=5&t=2645
Page 1 of 1

Author:  ceenvee703 [ Sun Oct 10, 2004 1:48 pm ]
Post subject:  Setting nice level for mythfrontend?

Quick question: how can I get KnoppMyth's automatically-running version of mythfrontend to always come up at a particular nice level? What do I need to edit?

Long version of the question: I'm trying to get my new setup running, which is a master backend and a remote frontend. I'm noticing lags in playing back recorded programs when I access a recording from the remote frontend. Playback will pause for a couple of seconds then start again. I don't see the lags when I play back the recording from the master backend computer, nor do I see it when I play the same recording from the same (wired 100Base-T) Ethernet connection with a MediaMVP. (Oddly enough, I don't see lags when playing back live TV, but then again I don't watch enough to know for sure there are no lags that way.)

Closest I came to seeing a solution was on the mythtv-user mailing list, and they suggested to adjust the nice level of mythfrontend. I guess I could renice it after Knoppmyth runs it, but I'd rather have it come up at the right nice level. Searched here for "mythfrontend AND nice" and came up with messages that talked about "nice" in the non-Unix meaning of the word.

Thanks for the assistance.

Author:  cesman [ Sun Oct 10, 2004 3:19 pm ]
Post subject: 

~/.fvwm/.fvwm2rc
Look for the line that launchs the frontend. Edit it to include nice.

Author:  ceenvee703 [ Sun Oct 10, 2004 8:28 pm ]
Post subject: 

Thanks, cesman. Setting the nice level seems to have helped.

Author:  cesman [ Sun Oct 10, 2004 9:47 pm ]
Post subject: 

You're welcome!

Author:  Liv2Cod [ Mon Oct 11, 2004 12:28 am ]
Post subject: 

What nice level did you use? About -10? I'm curious since I'll want a separate FE/BE system someday.

Author:  ceenvee703 [ Mon Oct 11, 2004 3:40 am ]
Post subject: 

The post I found on the mailing list archives suggested a nice level of -15.

Author:  avocade [ Wed Aug 23, 2006 9:04 am ]
Post subject: 

how do I include nice in a process? tried mythfrontend -nice 15 but it didn't like it.

been trying to find a way to make ffmpeg (with the myth2ipod script) run at nice 15, so the boinc client at nice 19 won't overtake it.

Author:  khrusher [ Wed Aug 23, 2006 9:27 am ]
Post subject: 

nice is a unix command, not a mythfrontend parameter

Code:
man nice

shows:

nice [OPTION] [COMMAND [ARG]...]

so
Code:
nice -15 mythfrontend

Author:  avocade [ Wed Aug 23, 2006 10:31 am ]
Post subject: 

thanks. so if I wanted to change the myth2ipod script so that ffmpeg would always run at nice 15, how would I do that?

or could I write a script that checks for whenever ffmpeg is running and automatically does a renice 15 on it?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/