Setting thresholds for cpu governor with TLP?

I used to have a set of scripts with every power saving trick I ever collected that would run upon un/plugging my laptop. But today I decided to play with TLP because it's all the rage these days.
It's really nice! It seems to hit more stuff than Laptop Mode Tools did, which is awesome. My powertop is reporting under 11 watts, which is about as good as I can ever get with this laptop.
The one thing I'm missing, though, is I like to switch to conservative governor when on battery. I also change the up and down thresholds to 98 and 95, respectively as per this probably dated article: http://www.ibm.com/developerworks/libra … index.html .
Anyway, I have TLP set to switch to performance when plugged in and conservative when on battery. Is there any way to get TLP to also set the thresholds when the computer is unplugged? Any kind of "run this script upon unplugging" option? I think Laptop Mode Tools had that, so that would be the one thing which I'd say is better about LMT if TLP doesn't also have that.

Hello,
I would assign 8 CPUs to affinity mask (CPU) and 8 CPUs to I/O affinity mask per instance.
Please read about why you should not assign the both to the same schedulers on the following post.
http://blogs.msdn.com/b/psssql/archive/2010/11/19/how-it-works-io-affinity-mask-should-i-use-it.aspx
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com

Similar Messages

  • Setting thresholds for Metrics in OEM

    I want to set thresholds for metrics in OEM and everytime I do, the following error occurs.
    Error occurred while editing the metric thresholds.
    Communication exception occurred while saving the thresholds data to the emd.
    Error
    java.lang.Exception: No such metric
    Does anyone have any idea why this is happening and what can I do to fix it.
    Thank you

    Hi.
    Monitoring templates are not permanently associated with targets.
    Applying a template on a target updates the target's settings but if you modify the template afterwards you need re-apply it.
    Furthermore, you can apply more than one template on a target. The second apply operation will generally override settings applied in the first one.
    (As a best practice I would make sure that if I use more than one template for a specific target type , the different templates will
    include different metrics).
    Apply operations are logged and you can check which template was applied against which target.
    This is available under "past apply operations" in the templates page.
    HTH,
    Erez.

  • What is the best FC Pro Easy Set up for video shot with an iPhone 4?

    what is the best FC Pro Easy Set up for video shot with an iPhone 4?

    There isn't one. You have to convert the media to one of the ProRes codecs, probably ProRes LT would work best. You need to do this in Compressor.
    Easy setup isn't relevant as it's options are for tape based media, which this isn't.

  • Shell script for cpu governor toggling [SOLVED]

    I am fairly new to shell (bash) scripting, but i thought i would at least manage an if test, though i was proven wrong :/
    I have been looking at this for way to long by now, and i am positive i am just missing the obvious, though I just cannot see where im wrong (checked alot of examples of similar bash scripts)
    The problem is that the code runs as if the if statement is always true (as if the `cat /sys/.../scaling_governor` is never updated). So  what I think might have a say is the fact that it gathers info from /sys/... since i have never done that before
    #!/bin/bash
    if [ `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`="performance" ]
    then
    echo "conservative" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo "conservative" >/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
    echo "conservative" >/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
    echo "conservative" >/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
    echo "cpu governor: conservative"
    else
    echo "performance" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo "performance" >/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
    echo "performance" >/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
    echo "performance" >/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
    echo "cpu governor: performance"
    fi
    the code should "toggle" the governor for each core by checking 1 of them and applying it to all (I know the code probably looks sub-par, so if you can't handle it, please tell me how to improve it :P, or if there is a better solution to this whole thing altogheter)
    Thanks in advance, and I will be trying to solve this in the mean time :)
    Last edited by JulianNymark (2011-03-10 23:47:45)

    That was a good idea AdmiralSpark (and also owain ), I didn't know that I could pass -r in cpufreq-set.
    I really should be more thorough in my manual reading
    I don't think i will be going for a GUI selection (though that is a good idea for this).
    The next (and final) step for me would be to have some sort of pop-up message display what governor i switched to. (since I bound this to a button press event it will not display in active terminal?). But I havent really started looking into that yet, and should probably make another thread for that after i fail miserably .
    Thanks again for the help & suggestions.

  • WADK components & setting used for power management with answer file for windows 8.1 ent

    hello,
    I have to deploy windows 8.1 ent device with MDT answer file related to power management  with customized  following settings:
    High performances
    sleep timeout settings
    standby or sleep and hibernate setting
    Enable critical battery task.
    But don't know 
    1. how to manage power settings using answer file (WADK) for win8.1.
    2. which OS Windows image component and setting used for power management in WADK.
    Thanks
    Richa Km

    The way I do it with my task sequences (this works with MDT as well as SCCM) is to have an exported power plan using the POWERCFG -EXPORT command.  I create a software package around the resulting *.POW file with a command do do an POWERCFG -IMPORT.
     I then issue a POWERCFG -SETACTIVE command to the GUID of the *.POW file to enable that power scheme.
    More information on the POWERCFG command can be found here:
    https://technet.microsoft.com/en-us/library/cc748940%28v=ws.10%29.aspx
    Hope that helps,
    Darth.Mongo

  • NullPointerException: setting value for CMP EJB with 1:n relationship

    Hi all,
    I have two CMP Entity EJB with relatioship 1:n.
    Setting any value for second entity throws NullPointerException
    I'm using SAP NWDS 7.0.16
    server-side: sap.com/SAP-JEE 7.00 SP16
    So far I've seen [this|CMR Nullpointer Exception; thread, discussing the same problem, but as I understood, SPs higher than SP14 should solve this problem.
    Any ideas about this?
    Renat
    Thanks in advance

    Hi,
    Can you please check your JDK version,update to latest.
    Hi,
    May be these notes might help you.
    Note 1225262 - java.lang.NullPointerException in the screen
    Note 987509 - Update of NWDS causes problems
    regards
    nag

  • How to set properties for HTTPClient came with WSClient_extends.jar ?

    In my web service client application, we need cookie to maintain session between server and client.
    I think the server cookie policy is not completely standards compliant since HTTP request to this server through Apache HTTPClient need to setup following:
    "http.protocol.single-cookie-header" to be true
    cookie policy to be "CookiePolicy.BROWSER_COMPATIBILITY"
    My problem is, we are using Oracle WSClient_extends.jar for web service call, WSClient_extends.jar came with it own HTTPClient implemetation.
    Are there equlivant properties can be set in Oracle HTTPClient similar to Apache HTTPClient to handle such cookie policy?
    Thanks

    Hi,
    This is correct; see my blog entry: http://db360.blogspot.com/2007/01/is-your-java-application-failoverproof.html
    However, you need to use oracle.jdbc.pool.OracleDataSource and from what i know Websphere does not (yet?) allow bypassing its own connection pool in favor of Oracle driver's embedded conection pool.
    Kuassi http://db360.blogspot.com

  • WorkFlow get triggered even if we set trigger for item update with SPEmailEventReceiver and workflow attached to same Library

    Hi All,
               I have a situation, SPEmailEventReceiver and WorkFlow is attached to same library, WorkFlow is configured to run after item is updated, but soon as the email is received in library the workflow
    is getting triggered, We have a action to create folder with subject and date and put the attachment with the date folder in SPEmailEventReceiver e.g: once a mail is received in library the SPEmailEventReceiver will create a folder with Subject and then Folder
    with Date and then put the attachment in the date folder so hierarchy will be subject folder/Date folder/attachment
    I have tried to alter the SquenceNumber attribute in Feature Element file to 1 and make the Synchronization as synchronous but no luck.

    Hi,
    Here are some articles for your reference:
    Programmatically creating Folders within SharePoint List
    http://www.mindfiresolutions.com/Programmatically-creating-Folders-within-SharePoint-List-487.php
    How to use SPEmailEventReceiver?
    http://kkryczka.wordpress.com/2010/11/05/how-to-use-spemaileventreceiver/
    Attachments disappear with custom email event handler
    http://blogs.msdn.com/b/malag/archive/2009/05/13/attachments-disappear-with-custom-email-event-handler.aspx?PageIndex=2
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Setting criteria for pc sync with ipad

    i dont want all my music to sync with my ipad.  is there an easy way (such as rating) to restrict a lot of my music filling my ipad unnecessarily.  or is there a way that is even more easy and less time consuming

    Create playlist(s) and sync only those.
    For Ratings, create a smart playlist;
    Match rule;
    Rating is greater than 3 stars (or whatever you want)

  • How to set privillages for created user with iSQL *Plus

    The hosting company has provided ISQL * Plus interface. I have created user by using the following command:
    Create user test identified by test;
    Grant connect, resource to test;
    But I am unable to load or import data into db. How can I import/load data as its giving permission denied message.
    I think there is a lack of imp/loading data grants. Who do I set?
    Thanks & best regards
    Message was edited by:
    Raakh

    1. which version of the database ?iSQL *Plus 10.2.0.1.0
    2. how you are trying/want to import/load data ?from online control pannel I am selecting the Load Data option and processing 7 steps. message appears "Successfully Loaded" but when am seeing log file its given me
    Step: Load
    Page Refreshed Jun 7, 2007 6:38:47 AM
    Status Succeeded
    Targets orcl
    Started Jun 7, 2007 6:38:11 AM GMT-04:00
    Ended Jun 7, 2007 6:38:11 AM GMT-04:00
    Elapsed Time 0 seconds
    Output Log
    Username:SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12546: TNS:permission denied
    SQL*Loader: Release 10.2.0.1.0 - Production on Thu Jun 7 06:38:11 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Message was edited by:
    Raakh

  • SQL 2008R2 - Performance Condition alert for CPU Threshold event

    I am trying to use SQLServer Agent alert for Resoure governor setup. I would like to be alerted when CPU threshold -> REQUEST_MAX_CPU_TIME_SEC >  20 -> is crossed for any particular query. I am in RTM version for SQL2008R2. For some reason
    the alert never occurs thru SQL Agent Alert.
    Here is my alert configuration
    EXEC msdb.dbo.sp_add_alert
    @name=N'CPU Alert',
    @message_id = 0,
    @severity = 0,
    @enabled = 1,
    @delay_between_responses = 60,
    @include_event_description_in = 1,
    @notification_message = N'Email from alert CPU',
    @category_name = N'[Uncategorized]',
    @performance_condition = N'MSSQL$XXXXXX:Workload Group Stats|Max request cpu time (ms)|default|>|1',
    @job_id = N'00000000-0000-0000-0000-000000000000'
    THe same alert is working if I put < 5, I am able to notified by email. But when I put > I dont see any alert.
    I have tried changing the default setting for resource governor to various #s (1, 5, 20, 600) . But for any change, if i use perf condition > 5, i dont get any alert. If i use < 5 then i get alerts...
    Is it a bug, or am i missing something...
    Any help will be much appreciated...

    I got the event notifications / service broker solution working.  Thanks to
    Aaron Bertrand blog for providing me with a working model.
    I ended up using Aaron's code to create a more generic framework to support the processing of any number of trace events (not just exceeding resource governor's max cpu). 
    Here it is... use at your own risk:
    -- Create the Target Service:
    USE msdb;
    go
    CREATE QUEUE eventNotificationsQueue ;
    GO
    CREATE SERVICE eventNotificationsService
    ON QUEUE eventNotificationsQueue ( [http://schemas.microsoft.com/SQL/Notifications/PostEventNotification] );
    GO
    CREATE ROUTE eventNotificationsRoute
    WITH SERVICE_NAME = 'eventNotificationsService',
    ADDRESS = 'LOCAL';
    GO
    -- Create the event notification:
    -- SQL Trace Event Types: http://msdn.microsoft.com/en-us/library/ms186265.aspx
    -- drop event NOTIFICATION [CPUThresholdExceededNotification] on server
    CREATE EVENT NOTIFICATION CPU_THRESHOLD_EXCEEDEDNotification
        ON SERVER 
    WITH FAN_IN
        FOR CPU_THRESHOLD_EXCEEDED
        TO SERVICE 'eventNotificationsService', 'current database';
    GO
    -- ******************  Add new notifications here ********************
    --CREATE EVENT NOTIFICATION CPU_THRESHOLD_EXCEEDEDNotification
    --    ON SERVER 
    -- WITH
    FAN_IN
    --    FOR XXXX
    --    TO SERVICE 'eventNotificationsService', 'current database';
    --GO
    USE msdb;
    GO
    CREATE PROCEDURE [dbo].[dba_processEventNotifications]
    WITH EXECUTE AS OWNER
    AS 
    -- [dbo].[dba_processEventNotifications] - Provides a framework to alert on trace events.
    -- Reference: Aaron Bertran's post at http://www.mssqltips.com/sqlservertip/2595/get-alerts-for-specific-sql-server-login-failed-events/
    -- Revision History:
    -- 20140827 D Turpin Original creation.
    -- Candidate events include select * from sys.trace_events
    BEGIN
    SET NOCOUNT ON;
    DECLARE
    @message_body XML
    , @message
    NVARCHAR(max)
    , @subject
    NVARCHAR(255)
    , @recipients
    varchar(max);
    --SET @recipients = '[email protected]; [email protected]';
    SET @recipients = '[email protected]';
    WHILE (1 = 1)
    BEGIN
    WAITFOR (
    RECEIVE TOP(1) @message_body = message_body
    FROM dbo.eventNotificationsQueue)
    , TIMEOUT 1000;
    IF (@@ROWCOUNT = 1)
    BEGIN
    -- Let's see if we can capture the query that is running:
    EXECUTE sp_start_job 'DBA Load whoisactive';
    IF (@message_body.value('(/EVENT_INSTANCE/EventType)[1]', 'nvarchar(max)') = N'CPU_THRESHOLD_EXCEEDED')
    BEGIN
    SELECT @subject =
    N'A query on ' + CAST(@@SERVERNAME AS nvarchar(256)) + 
    N' exceeded the Resource Governor limit REQUEST_MAX_CPU_TIME_SEC';
    SELECT @message = N'Event Notification: User query exceeded REQUEST_MAX_CPU_TIME_SEC at '
    + @message_body.value('(/EVENT_INSTANCE/PostTime)[1]', 'nvarchar(max)' )
    + CHAR(13) + CHAR(10)
    + @message_body.value('(/EVENT_INSTANCE/CPU)[1]', 'nvarchar(max)' ) + ' CPU (ms) '
    + CHAR(13) + CHAR(10)
    + N'SPID: ' + @message_body.value('(/EVENT_INSTANCE/OwnerID)[1]', 'nvarchar(max)' )
    + CHAR(13) + CHAR(10)
    + N' Check dba_baselines.dbo.whoisactive for currently active queries';
    --Use this if you want to list the XML nodes/values.
    --SELECT @message = CAST(@message_body AS NVARCHAR(max));
    END
    -- ********************* Add new events here ********************
    --IF (@message_body.value('(/EVENT_INSTANCE/EventType)[1]', 'nvarchar(max)') = N'CPU_THRESHOLD_EXCEEDED')
    --BEGIN
    -- SELECT @subject = = N'A query on ' + CAST(@@SERVERNAME AS nvarchar(256)) + 
    -- N' exceeded the Resource Governor limit REQUEST_MAX_CPU_TIME_SEC';
    -- SELECT @message = N'Event Notification: User query exceeded REQUEST_MAX_CPU_TIME_SEC at '
    -- + @message_body.value('(/EVENT_INSTANCE/PostTime)[1]', 'nvarchar(max)' )
    + CHAR(13) + CHAR(10)
    -- + @message_body.value('(/EVENT_INSTANCE/CPU)[1]', 'nvarchar(max)' ) + ' CPU (ms) '
    + CHAR(13) + CHAR(10)
    -- + N'SPID: ' + @message_body.value('(/EVENT_INSTANCE/OwnerID)[1]', 'nvarchar(max)' )
    + CHAR(13) + CHAR(10)
    -- + N' Check dba_baselines.dbo.whoisactive for currently active queries';
    --END
    EXECUTE msdb.dbo.sp_send_dbmail
    @profile_name = 'DBMailProfile'
    , @recipients = @recipients
    , @subject =
    @subject
    , @body =
    @message;
    END
    END
    END
    GO
    ALTER QUEUE eventNotificationsQueue
    WITH ACTIVATION (
    STATUS = ON
    , PROCEDURE_NAME = [dbo].[dba_processEventNotifications]
    , MAX_QUEUE_READERS = 1
    , EXECUTE AS OWNER );
    GO

  • Need Advise on Setting Critical Metric Threshold  for "Status"

    Hi All,
    I am trying top copy all metric thresholds from OEM 9i to 10G. I ran across the metric threshold for "Status" (whether the node is up or down). It is set to "Down" and, although I'd like to set it to "Up/Down", when I hit Continue it comes back with
    "The format of the critical threshold is not correct.". Does anyone know what the problem is?
    Thanks
    Sam

    you are status metrics for all targets in grid control
    the notification rules for databases,hosts,listener,aplication server are enabled the send mail if the status change.

  • Set metric threshold for default metrics

    Running Grid Control 10.2.0.4; have not had the time to go through an upgrade to 10.2.0.5 yet.
    There are several metrics I am interested in setting a threshold for, specifically the Streams Replication metrics. When I click the "All Metrics" link on the cluster database's homepage I see a category called Streams Process Count as well as several metrics within that group. Right now none of those metrics have thresholds set. I have tried adding a threshold in the monitoring config (Preferences -> Rules -> Database availability and critical states) but the Streams metrics do not appear.
    Am I missing something here? I feel kind of ridiculous for asking, but I can't seem to find the answer anywhere...

    Not every metric in 'all metrics' is configurable with metric thresholds.
    Your workaround is to write an user definied metric.

  • Help: FSB Setting for MSI 875P with Intel 3.06 533Mhz & Corsair 512 27

    Help: FSB Setting for MSI 875P with Intel 3.06 533Mhz & Corsair 512 2799 333Mhz
    Need a little help here, Intel's specs for the P4 3.06GHz 533 is a multiplier of 23 x 133Mhz.
    However 133Mhz as a FSB seems very slow.
    The 875P NEO has two BIOS settings: CPU Ratio and Adjust CPU Bus
    What are your settings for these - I am quite confused?
    Thanks!
    G.

    133 is the stock FSB setting. set your memory to DDR333.
    Do you want to overclock? you might want to set your memory to DDR266 which is 1:1. so u can adjust a bit of FSB from 133 to maybe 150.
    PS dont forget your memory timing. 2-6-3-3 would be oki i think. what bios version r u using?

  • Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

Maybe you are looking for

  • R.I.P GoLive and thank you

    It's official. Adobe has killed our beloved app. Many many years ago as I looked for ways to bring in more income, my girlfriend suggested I get into web designing since I was so fascinated with the internet and technology. She went out and bought me

  • Session problem in JSP portlet

    Hi, I have a jsp portlet. In this jsp i am creating a session and i am putting some value in session. There is navigation from this jsp to second jsp(not portlet) and from this jsp to third jsp(again this is also not a portlet). Now in third jsp i am

  • CAN'T COMPILE HashMap !?!

    Hello, I'm trying to compile FruitMap.java, which code is : public class FruitMap extends java.util.HashMap{ ...thanks to : javac FruitMap.java ...and i can't succed in that, even if i put a main method public class FruitMap extends java.util.HashMap

  • DirectAccess - Load Balancing Outage

    Ok very quick question in terms of failover. I have two load balanced arrarys for directaccess across 2 entry points. What would happen if one of the servers lost access to the internal network but still had access to the external network and was sti

  • PARTITION ISSUE

    dear all, if i have partition on table this partition is create every months like 7th and 8th now i not need the old data so i plan to truncate partition use this below cmd ALTER TABLE TABLE_NAME TRUNCATE PARTITION PART_NAME DROP STORAGE UPDATE INDEX