How to change process priority after its already started

This question is also active in the Tiger forum... http://discussions.apple.com/thread.jspa?threadID=1491812
I am posting here in case it is somehow different for Leopard.
How can I change the priority of a program (say Handbrake) to be lower?
I have tried "sudo renice 20 <handbrake PID>" but Activity Monitor doesn't seem to show any
change in behaviour and the Nice CPU display is still zero percent.
How can an app's priority be lowered and how can one verify that it worked?

I saw this post in another thread
poster: P Gierke
thread: http://discussions.apple.com/thread.jspa?messageID=6662466
nice and renice still alter a processes scheduling priority. You can see for yourself using the pridist.d dtrace script ( type sudo pridist.d ). This script samples at 1 kHz and spits out a scheduling priority distribution graph broken down by process.
As an example, kick off a cpu intensive command that does nothing, like:
dd if=/dev/urandom of=/dev/null
renice it to -10, and run the dtrace script.
Then, renice to 10 and run the script again.
You should see a major difference in the priority distribution for dd in each case. In my case, scheduling priorities moved from 0-15 (niced at 10) to 80-90 (niced at -10).
As a side note, nice values that are negative will increase the scheduling priority of a process, making them not so 'nice' to other processes.
P Gierke iMac 20'' Mid-2007 Mac OS X (10.5)

Similar Messages

  • HT4623 how to change phone number after its been activated?

    After I purchased the iphone 4S and it was activated, I had my old number transported.  The Iphone still shows the number originally assigned by the carrier.  Apple support says to reset network settings and that will correct the problem.  Didn't work.  Now what?

    Settings/phone then my phone number

  • How to change process chain in SAP APO, in RSCP tcode.

    HI SAP APO Experts
    I am from SAP ABAP background, I need to change a 'AND' operator in process chain in RSCP tranaaction in SAP APO.
    I dont have any idea how to change process chain.
    Could you please help me how to change process chain in SAP APO in RSCP tcode.
    Appreciate your help or comments.
    Sandeep..

    Hi Sandeep,
    The t-code RSCP does not exist in SAP APO.  The correct t-code is RSPC. 
    Step 1:- In RSPC t-code, select the process chain which you need to change. 
    Step 2:- Double click on it. 
    Step 3:- It will display the various programmes attached to the process chain.  Go to change mode by clicking on the change indicator (Control + F9)
    Step 4:- Select the programme area where you need to do the correction or change.  Double click on it.
    Step 5:- It will take you to the programme and its selection contents.  Make the relevant changes.  You can directly carry out the change in se38 also if there is variant kind of changes for that particular programme.
    Step 6:- Once the changes are done, save the changes and press F3 button which will take you to the home page of the process chain
    Step 7:- Save again so that the change in the programme alongwith the process chain will get saved.
    Regards
    R. Senthil Mareeswaran.

  • How to change task priority?

    How to change task priority? Task has been created and user claim it. TaskManager do not have method to change priority

    That is exactly how I did it. I did have a space after the 10, and I dragged the application to the terminal window, and it responded with the "Not found" error message.
    I will try the renice when I get home tonight. At work I am using Windows 2000 and Lotus notes (AAAArrrrgh!). I also support 4 PDP-11s and 6 antique VAX systems and an old Stratus.
    I have renamed the title of my position to "Paleocybernetic Systems Administrator".

  • HT5957 how can i fix my iphone its already ios 7 then now need activation required

    how can i fix my iphone its already ios 7 then now need activation required

    Were you, by chance, running a beta version of iOS 7 on your phone?
    If so, this will be the problem. You will need to log Into the private developers forum athttps://developer.apple.com/support/ios/
    If you are not a developer, you will need to seek help by way of your favourite search site.

  • When I use Photoshop CS 6 to edit video, I don't know how to change video speed after I converted the clip to smart object?

    When I use Photoshop CS 6 to edit video, I don't know how to change video speed after I converted the clip to smart object? The clip color turns purple and it only allows me to add motion but not change the clip duration and speed anymore.

    Thanks for the reply and as a work around method I used the Photoshop to do all the adjustments then export the video to iMovie to finish the final cut. I also have a problem to paint or clone on a blank video layer created in Photoshop. It tells me the time is beyond the target frame time, I don't understand the message. Can you explain to me what did I do wrong? Thanks a lot!
    John Wang
    801-3618742
    [email protected] 
    http://johnwanggallery.shutterfly.com  

  • How to change the priority level of message sent to market place.

    Hi to all gurus,
              I have rasied a query at market place. I raised the query with medium priority and now want to change it to high or very high priority as user is badly in need of the module for which the query is raised.
           How can i changed the priority of this message while I have not yet got reply for the same from SAP and the status is under process.
    Thanks and Regards

    Hello
    The hotline number of your local Support Customer Interaction can be found in SAP note 560499 - Global Support Customer Interaction.
    Either phone call or email and they will raise the priority accordingly.
    Regards
    Michael

  • How to change page type after the fact

    In the application builder, I click on an application and choose Details in View.
    I get the list of pages I have in my app.
    The page type column has:
    Interactive Report
    Navigation Form
    Dynamic HTML
    DML Form
    Chart
    Report
    How do I change this column after a page has long been created?
    Specifically, I want to the change "Dynamic HTML" to something else.
    Why?
    Because on this particular page, tabs do not work (error: page not found).
    Buttons created among a regions items do not work (same error, page not found).
    I need to use tab and buttons to go from this page to other pages.
    And I am suspecting the page type may have something to do with my problem.
    Thanks in advance for any pointers.

    Thanks for your consideration!
    For my current app, a clinical management system,
    I'd like to have, say, 1000 items.
    (For other applications I am thinking about, but have no time,
    nor expertise for now, I'd need millions of items,
    each corresponding to a pixel of a graphic.)
    Who cares if the current computers are too slow?
    How about make it a parameter that can be changed
    per app or per apex installation, and default to 100?
    Some forms can be broken up logically, as people have helpfully suggested,
    and I did follow that advise on some pages.
    But other forms cannot be. People have put a lot of thought on designing
    those forms, they are government or legal standards (or at least something more important
    than computer performance), and people have been trained
    with those original forms.
    Consider the hoops I have to jump through to get more than 100 items
    on a page I am currently working on:
    Generate the items (INPUT type="text" and INPUT type="checkbox") using PLSQL
    lots of htp.p('<INPUT ...>').
    a JavaScript function to collect all the values on the page
    and make up an XML string. submits this string to an application
    process, and application process parses the XML string and does insert or update.
    Another JavaScript to populate the items based on the current values of a row,
    using an application process to retrieve the columns of a row.
    There are about 150 items on this particular page.
    All these are ok, because I was aware of the restriction of 100.
    And because I wanted to generate my own HTML to mimic the original
    form anyway.
    Then things started to go weird.
    I need buttons to go back to another page. and I use tabs.
    Buttons to go back from this page,
    when a button is created with "Create a button in a region position",
    it works fine.
    When a button is created with "Create a button displayed among this region's items",
    it does not work, and I get HTTP 404, https://.../apex/wwv_flow.accept, page cannot be found.
    But I need a button to work like the one created with "Create a button in a region position",
    but displayed like the one created with "Create a button displayed among this region's items".
    This is still not too bad. I saw the difference between the two kinds of buttons.
    I copied the HTML code for the button "Create a button in a region position",
    and used a display only item to create a Back button where I wanted:
    '<table class="t15Button" cellspacing="0" cellpadding="0" border="0"><tr><td class="t15L"><img src="/i/themes/theme_15/button-l.gif"/></td>'||
    '<td class="t15C">Back</td>'||
    '<td class="t15R"><img src="/i/themes/theme_15/button-r.gif"/></td></tr></table>'
    Here P145_BACK holds the page number to which I want this page to go back to.
    Then I noticed that the tabs did not work any more. same error, page not found.
    That's is when I got a little frustrated and posted for help on the forum.
    Then I begin to undo my steps, and
    by lucky accident, I noticed that, if none of the checkboxes is checked,
    the tabs work fine. If at least one is checked, I get this error, page not found.
    My current solution is to add a function of my own in the doSubmit(B) function in file apex_3_1.js,
    which unchecks all checkboxes (o.checked=false).
    And now, from this page of about 150 items,
    the tabs are ok, and I have a button that is similar to one
    created with "Create a button displayed among this region's items", except I created myself
    using HTML.
    I think this trick of using a custom function in doSubmit(), that unchecks or even hides
    INPUT type="text" items (o_div.style.visibility = "hidden"; o_div.style.display = "none";)
    should work in general. this function is only invoked when the user clicks the tab,
    or buttons among a region's items.
    Somebody said regarding restrictions on drugs or sex.....
    you will not make people stop, you just make it harder or more expensive.
    Same here and many other things, a restriction is just making things harder.
    People will try to get around it.
    Now that I have a solution, and I am aware of the problem, I'll calm down and
    go back to my own thing for now.

  • Changing the effect duration after it already started

    How do i change the duration of one effect, in my case "Move", when its already playing.
    For example, i'll have a slider that will provide the duration of the event, and as the event plays, i would be able to slide the bar and make it slower or faster!
    Thanks..
    Leandro Cardoso
    Brazil

    Unless you stop the effect and then restart it, I don't think you can change the duration in the middle of it's playing.

  • HOW TO CHANGE HOST NAME AFTER SAP IS INSTALLED?

    i have installed ecc6 in my computer.But after installation is completed i want to change my computer(system) name.If i change the computer name is there any problem occur.May i change computer name after installation also.

    As far as my understanding goes it can be done. The only problem is SAP is not recommending it. Still if you want to give it a shot please go through the link to learn more and step by step guidance.
    [Click Here|http://www.saptechies.com/changing-host-name-on-r3-host-what-do-you-do/]
    Also take a look  at this SDN thread, you might find something interesting.
    [click here for SDN thread|How to change the hostname was set/defined in SAP system?;
    Edited by: santra.anirban on Sep 13, 2010 10:45 AM

  • How to change the priority of workitem

    im using the task to trigger the work item.
    normally the work item is coming with priority 5 that is medium. can i trigger the workitem with the priority decided by me in the method?
    generally who will decide the priority of the work item ?
    please suggest.
    Raghu

    You can change the priority at runtime using Function module
    SAP_WAPI_CHANGE_WORKITEM_PRIO
    or
    you can define the priority in the Workflow step from the OTHER or MISCELLANEOUS Tab.
    Thanks
    Arghadip

  • How to restart a program that has already started?

    On my previous cable TV system, I could restart a program after it had already started all the way back to the beginning, to see the whole program. How can I do this with FIOS?
    Thanks.

    tns wrote:
    I had only heard that Cablevision was doing this with its Virtual DVR.
    Essentially with Verizon FIOS you can only restart on a DVR what the DVR has in its buffer.  If it one of the tuners happened to be tuned to that station (even if the DVR was off), you can backup to the beginning of the program if its still in the buffer.  One way to see if this is possible, without rewinding, is to hit record, then look in your DVR recordings and select the program.
    Some days later you might find a program in the VOD section.  For some channels, e.g. movie channels, it may be already in VOD. 
    No. I don't mean with the DVR. Let's say I turn on a program at 9:17PM but it started at 9 PM. Is there a way I can re-start the program so I can watch it from the beginning? My cable company had a way to do this. Does FIOS?

  • HT4864 How to change email name after account is already created

    I already have an email account but I want to change the email name, not the name on the account.  Is it possible to change the email name?

    Settings>Mail, contacts, calendars>  
    Choose the mail account
    Erase the existing name or part of the name that you want to change and retype the correct name.  I made a spelling error in my display name when I initially set up the account.  I tried to change just the one wrong letter but it would not save, so I finally erased the entire word and retyped it and it worked! 

  • Can a document author password protect something after its already downloaded?

    If I download a document from a website and am not required to enter a password to open it after I’ve downloaded it, is it possible for the author to add password protection to the downloaded document later? For example, let’s say I am a member of a paid website that allows its members to download documents. Let’s say I’ve downloaded some stuff and was not required to enter a password at the time. If I cancel my membership can they somehow change my downloaded copy in my computer and add password protection? Meaning if I cancel my membership I could possibly lose access to the stuff I’ve already downloaded?

    Awesome. I looked up online how to check to see if they used DRM and they don't for any of their documents. Thank you so much!

  • How to change PO price after Goods receipt

    Hi Expert,
    This is very urgent. I have created PO with account assignment (Individual order/project (D)) and has material master last month and received goods last month too.
    PO item already been issued and used for production. There is no stock balance both urestricted and sales order stock.
    Now we need to change the PO price for paying the vendor right price. I have tried MBST to cancel/reverse material document and give me error message saying "Sales ord stk deficit" I think because of no stock avaible in the system.
    I need a urgent solution: How can  i change PO price or cancel material doc to adjust the PO price.
    Thanks,
    Mohammed Rahman

    Hi Mohammed
    Which step system appear error ?
    Example: Qty PO have already receipt 4 set, you already used 3 set. Stock have 1 set.
    When you use 561with quantity 5 set, stock have 6 set.
    after u cancel PO wrong price (qty is 4 set) - stock have 2 set  but when you change PO and Goods Receipt again stock will have 6 set.
    And you use 562 with Qty 5set => now stock still have 1 set.
    And price already changed.
    Regards,
    Thang
    Edited by: Cao Danh Thang on Jun 13, 2008 4:30 AM

Maybe you are looking for