Soft-Realtime and Idle-Only scripts (BFS)

These handy scripts to make use of the BFS patches' extra scheduling policies (soft realtime for music production, emulation gaming, video calling, etc. and  forced idle-only to keep long-term and high-load tasks out of the way)
Execute a command or enhance a running process with isosynchronous scheduling, the highest priority and the most favorable IO policy (almost realtime):
/usr/bin/isosched
if [[ $1 == -p ]]; then
shift
schedtool -I -n -20 "$@"
ionice -c 2 -n 0 -p "$@"
else
schedtool -I -n -20 -e ionice -c 2 -n 0 "$@"
fi
Execute a command or limit a running process with idle priority scheduling, the lowest priority and the least favorable IO policy (buried alive):
/usr/bin/idleprio
if [[ $1 == -p ]]; then
shift
schedtool -D -n 20 "$@"
ionice -c 3 -p "$@"
else
schedtool -D -n 20 -e ionice -c 3 "$@"
fi
For example, make X near-realtime:
sudo isosched -p `pidof X`
Then start PCSX2 at near-realtime
isosched pcsx2
This should give you the maximum frame rate and best AV synchronization possible. Also works well for WINE programs.
Last edited by quequotion (2014-08-01 20:57:26)

Ordinary users are not allowed to increase priority by default (the policy seems designed for multi-user systems).
If you have administrative rights, replace "$USER" with your username and append the following line to control your own destiny:
/etc/security/limits.conf
$USER - nice -20
Last edited by quequotion (2014-08-01 20:59:01)

Similar Messages

  • How to give browse and monitor only options of an ICM script to a certain group?

    I am looking for an option in the Feature Control Set, how to give "Browse and Monitor" only options for a certain group in our contact centre. If someone give me some clue, it would be appreciatable.

    Hello Praveen,
    This work at some point. But it's not resolving what I intend to do. When I give "Read Only" previledge, to the certain group, it won't be able to do other tasks what they do day to day. I am looking specifically to give read only previledge in the scripting level. Not at the configuration level.
    Thanks.

  • Why is the Executable class only available in Script Task and not in Script Component.

    Why is the Executable class only available in Script Task and not in Script Component.
    Here is a link to the Executable class documentation.
    http://technet.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.executable.aspx
    Mr Shaw

    Because Executables are available only in Control Flow. Script Task is a control flow component whreas Script Component is a data flow component. It works on data buffer and rows and not on executables.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • (Mountain Lion) suddenly the screen turns black, and I have to use the switch to turn it on. And, the screen turns to zoom, and the only way to turn to normal is to close the window and start all over again?

    (Mountain Lion) suddenly the screen turns black, and I have to use the on/off switch to turn it on. And, the screen turns to zoom, and the only way to return to normal is to close the window and start all over again?

    Does the screen go black while you are using the machine? ...or after it has sat idle for a bit?
    If it happens while you're using the machine, check to see if a hot corner has been set for sleep. You can do that here: System Preferences > Desktop & Screen Saver > Screen Saver and click the button labelled "Hot Corners..." in the lower right.
    If it happens after a bit of idle time, that's normal sleep behavior. The delay can be adjusyed here: System Preferences > Energy Saver.
    In either case, pressing any key on the keyboard should bring it out of sleep.
    Re zooming -
    If this happens while in Safari, and you are using an Apple Magic Mouse, a default setting applicable to it is that a soft double-tap on the mouse will zoom the Safari window. A second double-tap will bring it back.
    If it is the entire screen that is zooming, Control plus scroll gesture on the mouse will zoom the whole screen. Repeat with the opposite scroll gesture to bring it back.

  • Itunes and all my movies have disappeared,i can no longer add to library from my external hdd which ive always used and can only add from the laptops own hard drive,any ideas what the issue could be?

    ive recently updated, itunes and all my movies have disappeared,i can no longer add to library from my external hdd which ive always used and can only add from the laptops own hard drive,any ideas what the issue could be?if i transfer the movies from the external to the laptop they will add to the library without any problem so theres no issue with the laptop but when i go to add file in itunes i can path to the external but as soon as i select the file nothing happens, just goes back to itunes

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • I have rebooted my computer over 20X and performed the soft reset and the option command p.r. my iMac still gives me the gray screen with the file and question mark.

    I have been having issues with starting up my computer for the last 5 weeks it started with a loud clicking sound when starting up and it use to only take turning the computer off and on a few times to get it running. This week it has taken almost a day of me turning off the computer and turning it back on. Last night I did the soft reset and it did come on. I did not shut down the computer and when I returned to it this evening I had to force it to shut down because it was stuck.I have did the soft reset and sad to say it did not work.I decided to try the option command and pr to reset it it did not work do any one have any other suggestions?

    You can get a decent new hard drive for $100, plus labor to install it if you're not comfortable doing it on your own. In contrast, a new computer will cost quite a bit more than that. Of course, if that iMac is very old at this point - like, say 6 or 7 years old - the new drive may be worth more than the computer, and you could use this as an excuse to buy a new one!

  • How can I delete the duplicates, and leave only one exact copy of an item in my iTunes library?

    Howw can I delete the exact duplicaztes in iTunes, and leave only one exact copy of an item?

    I've written a script called DeDuper which can help remove unwanted duplicates. See this thread for background.
    tt2

  • Missing "illustrations" tab and read-only information

    After a Windows XP Home repair, no illustration tab and read-only information by new music downloads. Have most recent itunes. Can someone help me...please?

    Thanks Gilad, In that case, is there then a way (via a script) that if I leave field 2 as not readonly, so the cursor moves into this field on tab out of field one, that I can reject any input from the user, if field one does not contain any data ? I thought this might be a solution. I have the script with the If Else statement, that sets the value of field 2 to "", if the value of field 1 is also "", but what is the else statement required to accept the value, if the content of field 1 is not "" ?.
    The script preoduces an error, if field 1 is blank, and I try to enter data into field 2 and then tab out of field.

  • How to solve firefox crashing and continuous "unresponsive script" messages?

    I've had this issue for a couple days now. When in firefox and having multiple tabs open, the tab that I am on will freeze and an "unresponsive script" message will come up. When I only have one tab open, the browser will shut down completely without any message. I have already tried disabling all of my plugins, allowing the script to run longer, restarting firefox, and even uninstalling and reinstalling firefox. None of these seem to work for me. Does this mean I have a virus? Are there any other things I can try or should I have this looked at?

    Try this for your mac computer:
    Please do the following to give us crash IDs that will help us understand more about the crash.
    #'''(OS X 10.6 or previous)''' Click the '''Finder''' icon in the dock. Your home folder will be selected. In the right side of the window, click the Library folder to open it. Then open the "Application Support" folder, the "Firefox" folder, the "Crash Reports" folder and finally the "submitted" folder.<br>'''(OS X 10.7 or above)''' Click the '''Finder''' icon in the dock. On the menu bar, click the '''Go''' menu, hold down the '''option''' or '''alt''' key and select '''Library'''. A window will open containing your Library folder. Then open the "Application Support" folder, the "Firefox" folder, the "Crash Reports" folder and finally the "submitted" folder.
    #Open the 5 most recent files with a text editor and copy the IDs.
    #Paste each ID with '''bp-''' into the reply window on the forums.
    Thanks in advance!
    You can find more information and troubleshooting steps in the [[Firefox crashes]] article.

  • Copy and pasting Arabic script

    Hi there..
    I have a pdf file which contains Arabic script. When I copy and paste the Arabic script I get boxes with alien faces in them.
    the file can be found here
    http://www.kalamullah.com/Books/ArabicTutor-VolumeOne.pdf
    Any help will be much much appreciated
    Thanks
    Saf

    pdf cannot be relied upon for copy/paste (and various other things) when using Arabic and various other scripts because of the different encoding systems used depending on how it was produced. The only thing you can do is try different readers (e.g. Adobe Reader instead of Preview) and different recipient apps -- or try to get the text in some other more reliable format (.doc, .rtf, .txt, .html, etc).

  • How to do a "Find and Replace" only on html or htm documents

    I am trying to add some Java script to every page in a website that is a html or htm before the </body> tag.
    The site contains other file types and the find function is ofcourse picking those up as well. Since the site has over two-thousand pages it would be very labor intensive to click through them all.
    Any ideas would be very helpful.

    I wouldn't be worried about anything but the *.sql files.  If an asp or aspx file matches that tag pair, then you would want to add the analytics code anyhow.
    Nevertheless, the only other way I can think of to do what you want would be to sort the file list by type, and select only the *.html and *.htm files before running the find and replace against the selected files.

  • I'm unable to drag-and-drop a script from the Story window in Premiere Pro to a clip

    I have a film script visible in the Story window, and I try to drag it to the relevant clip in the Premiere Pro project window—but nothing happens.
    I have also tried to attach an astx file, but I get the "matching scene number not found" error, even though I put scene number 1 in the clip and in the astx.
    What am I doing wrong?
    Incidentally, though your help indicates that "all the scripts" you have in Story will be visible in the Story Windows in Premiere Pro, I can see only the film scripts—not for instance the multicolumn scripts I also have.  Is there something I can do about this?
    Thanks you,
    PIerre Sauvage

    Hi,
    Please make sure that you are performig drag drop with scenes and not complete scripts. You will notice a cursor change when you do so. For more clarification, please refer to this post. 'http://forums.adobe.com/message/5533247#5533247'.
    Importing astx is a much longer way to go through the same thing , so i would suggest to try out the drag drop workflow only and let me know in case you still face issues with it.
    Also, yes, column scripts wont be visible to you in the Story panel inside Premiere. For this, I am afraid you will have to convert your column scripts into a film script. Let me know if you need help with this.
    Hope this helps.
    Thanks
    Rashi

  • Can I download and use celtx script software on the Blackberry Playbook?

    Can I download and use celtx script software on the Blackberry Playbook?  I really love the program and was looking at buying a playbook but would only do it if I could download that software.

    cups pdf is like cute pdf but for mac
    https://bitbucket.org/codepoet/cups-pdf-for-mac-os-x/downloads
    after installing you need to go to settings, printer, add printer
    full instructions here
    http://basics4mac.com/article.php/print_to_pdf
    pdfs go in /Users/Shared/CPS-PDF/{your account name}
    This creates a virtual printer just like cute pdf does. This allows pdfs from applications that do not use the mac print interface

  • Print with only script.

    I use do not to make the print button can, i print with only script.
    Is this possibility??
    if this is possibility, please informs the method to me...

    Not sure what you are asking but I think you are asking if you can print through script. If that is the question then the anwser is yes. In the My Favorites library there is a print button configured and ready to be used. Simply drag and drop it onto your convas and you are ready to go.
    Paul

  • Soft links and endpoints

    Hello,
    I would be grateful if someone would confirm to me the following:
    A soft link always relates to an external endpoint.
    Is the above statement true?
    Julien.

    Soft, hard, and standard links always apply to internal endpoints (external and internal endpoints are defined by the spec in section 5.1.7). They are used to govern connections made by the NMR between service consumers and providers.
    External endpoints are used only for endpoint reference (EPR) generation. (External service providers are considered internal endpoints, since they are proxied by the binding components.)

Maybe you are looking for

  • Syncing  with itunes

    I reciently updated iTunes, now my iPhone 4 and my iPod will no longer sync with iTunes. I am running OS X  10.7.3 - I when I attempt to sync- it stops at syncing photos and quits- giving me an error page. Any ideas of how to solve this problem....??

  • Using different templates for the desktop and phone versions of the same blog

    I have a site which was created in Adobe Muse and is hosted on Business Catalyst. I have created both a desktop and a phone versions of the site. I  want to know how I can integrate the blogs that I  currently have on the desktop site with the phone

  • Problems with render/export

    I'm working in Premiere Elements 9 on a work computer (large network, limited privileges, Windows XP) and having trouble on multiple fronts, but they may all be related. When I try to render timeline, I get: Invalid Scratch Disk path for Video Previe

  • No enable palm option / no sync / no joy / no phone completion / no holiday

    Hi. After reviewing all the advise found here, I repeatedly fixed permissions, updated to Palm Desktop rev D, reinstalled combined Mac OS 10.4.7, but still iSync does not see my Palm (105) anymore. There is no "enable palm" item in iSync menu and "Ad

  • CS6 content aware fill and spot healing smudge

    I just upgraded to CS6 64 bit under Windows 7.  I used content aware fill and the spot healing tool on CS5 under XP with no problems.  Now under CS6 they leave a smudge.  For example, if the is a spot on a vein of a leaf, now, instead of removing the