Reduce CPU load in game

Hello everyone,
Having a problem with a game, The cpu load at the start when all the elements are on the stage is between 120 - 150%. Far too high. I reduced the frame rate from 30 to 24 and now the cpu load is around 100 - 125% which is still too high for my liking !! I'm wondering if this code can be optimized, I'm sure this is the cause, it's running within a movieclip class on 15 movies at the start.. can anyone help ?? Thanks in advance :-
       private function onEnterFrameHandler (event:Event) : void {
            this.vy += gravity;
            this.x += vx;
            this.y += vy;
            var left:Number = 0;
            var right:Number = stage.stageWidth;
            var top:Number = 0;
            var bottom:Number = stage.stageHeight;
            if(this.x + this.width > right)
                this.x = right - this.width;
                vx *= bounce;
            else if(this.x - this.width < left)
                this.x = left + this.width;
                vx *= bounce;
            if(this.y + this.height > bottom)
                this.y = bottom - this.height;
                vy *= bounce;
            else if(this.y - this.height < top)
                this.y = top + this.height;
                vy *= bounce;

First, you can drop all those this' - there's no need for them. I never use this in as3 anymore.
Second - get rid of all your local vars. Is stage.stageWidth changing? Probably not... so don't poll the player for it on each frame. Same with the clip extents.
Something more like so:
private var left:int = 0;
private var right:int = stage.stageWidth;
private var top:int = 0;
private var bottom:int = stage.stageHeight;
private var clipWidth:int = width;
private var clipHeight:int = height;
private function onEnterFrameHandler (event:Event) : void
    vy += gravity;
    x += vx;
    y += vy;         
    if(x + clipWidth > right)
        x = right - clipWidth;
        vx *= bounce;
    else if(x - clipWidth < left)
        x = left + clipWidth;
        vx *= bounce;
    if(y + clipHeight > bottom)
        y = bottom - clipHeight;
        vy *= bounce;
    else if(y - clipHeight < top)
        y = top + clipHeight;
        vy *= bounce;

Similar Messages

  • My App takes too much System Ressources (50% CPU load),howto reduce.

    Hi,
    i have an application that reads permanently data from an Oracle Database and syncs them to a Lotus Notes Database.
    The Application takes 50 percent cpu load.
    I tried to reduce the cpu load with
    Thread.sleep(2000); between the read and write actions, but that doesnt help very much.
    Is there another possibility to reduce the cpu load?
    Any suggestion is wellcome...
    carsten

    This is why its taking only 50% of CPU. If it is not
    Hyperthreaded it will probably take 100% CPU.
    In Hyperthreaded CPUs a thread cant take more than
    50% of CPU.full agree with that...
    So throwing more CPU power at it will not help.i even think so...
    >
    You need to some how make your thread block for some
    time in every iteration in your loopI thougt hat Thread.sleep(2000) does that thing, but it doesnt...
    I have tested this with up to 10 seconds sleeptime between the actions, but the 50% stay.
    For example my Schedule Server has a seperate Thread that scans the Filesystem for changes at config files. This runs with nearly 0% cpu load (I have 10ms sleeping Time beteen each file check, and 2sec sleeping time between after all files where checked).
    Or you should
    change your logic to do the transfer only when some
    event occuresThats no Solution (because i must read all Stuff and transport it...)...

  • Kernel_task running above 500% CPU load on my Macbook Pro running OSX 10.9.4

    I recently upgrade my Macbook Pro to OSX 9.0.4 and the system is running sluggishly slow, Activity Monitor showing kernel_task always running above 500% CPU load, system fan always running loud at startup but laptop is not overheating.  Below is the EtreCheck report, hoping if anyone can help me fix this issue, much appreciate it.  Btw, I have done the SMC reset, but nothing has helped.
    EtreCheck version: 1.9.13 (49)
    Report generated 16 August 2014 2:30:27 pm AEST
    Hardware Information: ?
      MacBook Pro (Retina, Mid 2012) (Verified)
      MacBook Pro - model: MacBookPro10,1
      1 2.3 GHz Intel Core i7 CPU: 4 cores
      8 GB RAM
    Video Information: ?
      Intel HD Graphics 4000 - VRAM: (null)
      Color LCD 2880 x 1800
      NVIDIA GeForce GT 650M - VRAM: 1024 MB
    System Software: ?
      OS X 10.9.4 (13E28) - Uptime: 0 days 0:17:38
    Disk Information: ?
      APPLE SSD SM256E disk0 : (251 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted>: 209.7 MB
      Macintosh HD (disk0s2) / [Startup]: 250.14 GB (103.87 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
    USB Information: ?
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
    Thunderbolt Information: ?
      Apple Inc. thunderbolt_bus
    Gatekeeper: ?
      Mac App Store and identified developers
    Kernel Extensions: ?
      [not loaded] com.digidesign.fwfamily.driver (8.0.3f1) Support
      [loaded] com.digidesign.iokit.DigiDal (8.0.3f1) Support
      [not loaded] com.digidesign.mbox2.boot.driver (9.0f4) Support
      [not loaded] com.digidesign.mbox2.driver (9.0f4) Support
      [not loaded] com.digidesign.usb.elevenrack.driver (1.0.1) Support
      [not loaded] com.paceap.kext.pacesupport.leopard (5.8 - SDK 10.4) Support
      [not loaded] com.paceap.kext.pacesupport.master (5.8) Support
      [not loaded] com.paceap.kext.pacesupport.panther (5.8 - SDK 10.3) Support
      [loaded] com.paceap.kext.pacesupport.snowleopard (5.8 - SDK 10.6) Support
      [not loaded] com.paceap.kext.pacesupport.tiger (5.8 - SDK 10.4) Support
    Startup Items: ?
      Digidesign Mbox 2: Path: /Library/StartupItems/Digidesign Mbox 2
      DigidesignLoader: Path: /Library/StartupItems/DigidesignLoader
      PACESupport: Path: /Library/StartupItems/PACESupport
    Problem System Launch Agents: ?
      [loaded] com.paragon.NTFS.trial.plist Support
      [loaded] com.paragon.NTFS.upd.plist Support
    Launch Daemons: ?
      [loaded] com.adobe.fpsaud.plist Support
      [running] com.cleverfiles.cfbackd.plist Support
      [running] com.digidesign.elevenrack.helper.plist Support
      [running] com.digidesign.fwfamily.helper.plist Support
      [loaded] com.google.keystone.daemon.plist Support
      [loaded] com.macpaw.CleanMyMac2.Agent.plist Support
      [loaded] com.oracle.java.JavaUpdateHelper.plist Support
      [running] com.paceap.eden.licensed.plist Support
      [not loaded] com.teamviewer.teamviewer_service.plist Support
      [loaded] PACESupport.plist Support
    Launch Agents: ?
      [loaded] com.google.keystone.agent.plist Support
      [not loaded] com.teamviewer.teamviewer.plist Support
      [not loaded] com.teamviewer.teamviewer_desktop.plist Support
    User Launch Agents: ?
      [failed] com.facebook.videochat.[redacted].plist Support
      [loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist Support
      [loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist Support
      [loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist Support
    User Login Items: ?
      iTunesHelper
      SmartDaemon
      BitTorrent
      uTorrent
      Knock
      Autodesk 360
    Internet Plug-ins: ?
      JavaAppletPlugin: Version: Java 7 Update 55 Check version
      FlashPlayer-10.6: Version: 14.0.0.145 - SDK 10.6 Support
      Default Browser: Version: 537 - SDK 10.9
      Flash Player: Version: 14.0.0.145 - SDK 10.6 Outdated! Update
      QuickTime Plugin: Version: 7.7.3
      o1dbrowserplugin: Version: 5.4.2.18903 Support
      googletalkbrowserplugin: Version: 5.4.2.18903 Support
      iPhotoPhotocast: Version: 7.0
    Safari Extensions: ?
      AllMyTube
      Searchme-2
      iTube Studio
    Audio Plug-ins: ?
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 2.0 - SDK 10.9
      AppleAVBAudio: Version: 203.2 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins: ?
      Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    3rd Party Preference Panes: ?
      Digidesign Eleven Rack  Support
      DigidesignMbox2  Support
      Digidesign Mbox 2 Pro  Support
      Flash Player  Support
      MacFUSE  Support
      Paragon NTFS for Mac ® OS X  Support
    Time Machine: ?
      Time Machine not configured!
    Top Processes by CPU: ?
          4% WindowServer
          4% Google Chrome
          1% cfbackd
          0% AppleSpell
          0% Activity Monitor
    Top Processes by Memory: ?
      213 MB Finder
      156 MB Dock
      156 MB com.apple.IconServicesAgent
      123 MB WindowServer
      115 MB Google Chrome
    Virtual Memory Information: ?
      4.43 GB Free RAM
      2.21 GB Active RAM
      414 MB Inactive RAM
      971 MB Wired RAM
      527 MB Page-ins
      0 B Page-outs

    The kernel is using excessive processor cycles. Below are some possible causes for the condition.
    Throttling
    When it gets high temperature readings from the hardware, or a low-voltage reading from the battery, the kernel may try to compensate by interrupting the processor(s) to slow them down and reduce power consumption. This condition can be due to:
    ☞ a buildup of dust on the logic board
    ☞ high ambient temperature
    ☞ a worn-out or faulty battery in a portable
    ☞ the malfunction of a cooling fan, a temperature sensor, a voltage sensor, or some other internal component
    Note that if the problem is caused by a sensor, there may be no actual overheating or undervoltage.
    If the computer is portable, test with and without the AC adapter connected. If kernel_task hogs the processor only on battery power, the fault is in the battery or the logic board. If it happens only on AC power, charging is causing the machine to heat up. That may be normal on some models. CPU usage should drop when charging is complete.
    Apple Diagnostics or the Apple Hardware Test, though not very reliable, is sometimes able to detect a fault. For more thorough hardware testing, make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
    If nothing is wrong with the hardware, then whatever you can do to improve cooling may help.
    Installed software
    User-installed software that includes a device driver or other kernel code may thrash the kernel. That category includes virtualization software, such as Parallels and VMware, as well as most commercial "anti-virus" products. Some system-monitoring applications, such as "iStat," can also contribute to the problem. You can test for this possibility by completely disabling or removing the software according to the developer's instructions, or starting in safe mode. Note, however, that disabling a system modification without removing it or testing in safe mode may not be as easy as you think.
    Corrupt NVRAM or SMC data
    Sometimes the problem is cleared up by resetting the NVRAM or the SMC.
    External display
    Connecting an external LCD display to some MacBook Pro models while the lid is open may cause this issue. If applicable, test by closing the lid or disconnecting the display. You might get better results with a newer LED display.

  • Problem... High CPU load with HDD. Please Help

    Hello all,
    Im stuck. Ive got a MSI KA790GX which has poor HDD access/transfer, low burst rate and very high CPU load.
    As far as i know the Western Digital 640gb WD6401AALS Black should be a fast hard drive. Which according to reviews/HD Tune,
    should be:-
    Minimum 60mb/sec
    Maximum 120mb/sec
    Average 95mb/sec
    Access 12ms
    Burst 110mb/sec
    CPU 5%
    No matter what I try, i always get poor results...
    My MSI KA790GX
    Minimum 41mb/sec ~ 54mb/sec
    Maximum 104mb/sec ~ 108mb/sec
    Average 86mb/sec ~89mb/sec
    Access 12ms
    Burst 60mb/sec ~ 80mb/sec
    CPU 26% ~ 44%!!!!!!!!
    I could accept not getting the same high speed results as the review/reference, even if the burst rate sucked.
    But one of the cores goes to 50%-60% load during hdd activity. Thats just crazy!!
    I have tried...
    IDE mode, AHCI, RAID Ready, RAID Single Disk
    SATA Port 1, 2, 3, 4 + 5
    Different SATA cables
    Flashed bios, cleared bios, optimised defaults, failsafe defaults
    Windows XP 32bit, Vista 32bit, Vista 64bit. fresh installs
    MSI CD Drivers, MSI Web Drivers, AMD/ATI Web Drivers
        ... and combinations of.
    I have also tested the WD640gb Black on another older PC, with Nvidia (55?) chipset and slower (1.9ghz x2) cpu.
    Transfer rates were slightly better than my KA790GX but, Burst Rate = 115mb/sec and CPU usage = 13%.
    I also tried a Seagate 1.5tb (ST31500341AS) on both PCs,
    Nvidia chipset
    Minimum 65mb/sec
    Maximum 134mb/sec
    Average 107mb/sec
    Access 14ms
    Burst 83mb/sec
    CPU 7%
    On my MSI KA790GX
    Minimum 55mb/sec
    Maximum 120mb/sec
    Average 100mb/sec
    Access 14ms
    Burst 87mb/sec
    CPU 33%!!!!
    Could someone please please help, ive spent hours and hours on this. Its doin my head in.
    I just hope its something stupid ive missed, cos i still not used my HD4850 from christmas :-(
    Thanks.

    Sm3K3R
    Not sure how to check PIO/DMA mode on a SATA device. IDE devices show DMA enabled.
    BIOS version 1.4 - 29 December 2008, and now version 1.51
    Fredrik
    I have Vista 64, but i did try XP32 and Vista32 and got similar poor results.
    I tested HDD speed with, HD Tune 2.55 and HD Tune 3.50 trial.
    No auto-start programs really, Windows clean installs + any drivers.
    Quadrifoglio Verde
    CPU @ default 2800mhz, All mem bios options to auto/defaults
    Windows Experience Index, CPU Score = 5.3
    AMD Overdrive
     Integer Computation = 8220
     Floating Point Computation = 5325
     Memory speed = 1770
     Cache Speed = 10790
     System Performance = 7403
    Bas
    I used HDTune because I could reference to other results. Whats a better program to use?
    Windows Experience Index, HDD Score = 5.9.
    But I have no reference and cant be sure of cpu load.
    Sepher
    Bios defaults to C&C and C1E off so i have tried them. Also windows power settings, balanced/high performance.
    UPDATE
    Reinstalled Vista64 but loaded the AHCI driver from the disk config screen. This seems to have stopped the high cpu usage during disk activity.
    HDTune with Windows Power settings @ High Performance,
    Min = 52mb/sec
    Max = 106mb/sec
    Ave = 88mb/sec
    Access = 12ms
    Burst = 77mb/sec
    CPU = 3.4% 
    HDTune with Windows Power settings @ Balanced
    Min = 54mb/sec
    Max = 104mb/sec
    Ave = 87mb/sec
    Access = 12ms
    Burst = 65mb/sec
    CPU = 12%
    So now transfer speed is about 10% slower than reference. But burst speed is terrible.
    I also used IBM Feature Tool to change the HDD AAM to 'performance mode' 254 as suggested elsewhere.
    Long shot as the hdd performs ok with other hardware. same results.
    Also MSI support asked me to try a newer bios, version 1.51. same results.
    Anyone know what the AMD 7-Series Chipsets Disk Performance Utility does, and should i run it in Vista64?
    Thanks for all the replies, hope i can sort this, not played any PC games since Quake 3 on my ti4600...

  • How much traffic/cpu load must i expect with my 1TB imac disc for 1TB TC

    hi
    i want to buy 1TB TCapsule.
    my concern is:
    i have round 600MB occupied on my internal imac 24" 2,8 disc
    and i work with huge image data day per day (200-800MB changing per day)
    must i expect very high cpu load when backup/timemachine is running in background
    constantly? is it advisable to buy this 1TB TC for my backup-timemachine-purpose?
    i presume that the first initial backup would take very long via air? (550MB backup to TC)
    maybe 1 week or so? or i could simply do this first backup via ethernet cable?
    thanks!!
    Message was edited by: purepeter
    Message was edited by: purepeter

    i have round 600MB occupied on my internal imac 24" 2,8 disc
    and i work with huge image data day per day (200-800MB changing per day)
    Did you mean 600 GB rather than 600 MB ?
    must i expect very high cpu load when backup/timemachine is running in background
    constantly? is it advisable to buy this 1TB TC for my backup-timemachine-purpose?
    CPU load will not be that noticeable IMO. With daily churn rate of 200-800 MB you will be just fine. After 48 hrs TM will reconcile the hourly snapshots when creating its daily snapshot and only keep last revision of file(s). The 1 TB TC should work well for meeting your requirement(s).
    i presume that the first initial backup would take very long via air? (550MB backup to TC)
    maybe 1 week or so? or i could simply do this first backup via ethernet cable?
    First TM backup/snapshot will always take a fair amount of time no matter. Again, you specified 550 MB which is a SMALL amount of data. If you meant 550 TB then that's a LOT of data and will take some time to backup up. Using say 7 MB/sec for WiFi then you can transfer 420 MB per min and thus in a perfect world the 550 GB will take 1310 minutes or some 22 hours. Using ethernet should reduce this transfer time considerable and will ultimately depend on the sustained TC's disk i/o rate.

  • High cpu usage and game lag problem

    i have a hp 15 d103 tx
    windows 8.1 64 bit
    inel i5 4200m 2.5ghz
    anti virus installed avast fee antivirus
    im using nvidia 820m geforce 344.75 version  driver
    ram installed 8gb
    im experiencing  huge amount lag in games  and software (autocad)
    whenever i run a game (for eg batman origins)    it run smooth  till 2 or 3 minutes after it lag horrribly
    for sake first im getting 45 frames per second then suddenly frame drop to 13 or even to 10
    i have to press alt + tab to check task manger it show cpu usage 30%
    after that when again i press alt tab to back to game it runs fine for 20 seconds and again lag
    i dont what the problem high cpu uasge
    system idle process sometime shows around 82%
    with 8gb of ram still expericing lag
    this problem is with  all game that i have played and software like photoshop and auto cad
    my cousin own hp 15 r007tx and having same gpu nvidia 820m  game runs for on his laptop without a lag
    is it window 8 problem or something else??

    wow finally got the solution by updating bios
    just updated the bios  from 2.7 to 2.8
    no lag now
    i guess different cpu load gpu switching on off was problem
    but now everything is running good

  • How to reduce processor load?

    My book is getting big, 200+ pages with lots of drawings, etc.  It is eating up a lot of processor power and running slowly.  What are some things I can do to reduce the load?  Is there some way to freeze a range of pages?

    WestB2012 wrote:
    Hi Peter, I have Windows managing the virtual memory.  I have 7+GB free on my drive and I recently defragged.
    I ended up just resaving under a different name and deleting all but the chapters I was working on, which is working better.
    However, when I import it back, I will have problems with the delay again.
    Saving a file to a new name relieves most applications of the effort and memory needs to track changes to the file; the normal save process usually emulates what you might do on paper - circle content that's moved and draw a line to the new location, mark content to delete, write in the margins and mark with insertion carats, for new material. Save as does all those tasks, cleaning up the file internally, so there's less work to do. New saves starts the process over.
    2GB RAM is marginal - parts of running applications, and current content in those applications is temporarily stored in RAM, if there's enough, or in virtual memory (really written to disk). It's faster to store and retrieve completely or mostly in RAM; the less virtual memory (disk) used, the faster. Also, with virtual memory, the faster the disk drive (7200, or 10,000, or 15,000 RPM, vs. 5200 (the most common in older and low-end systems), the faster virtual memory processing will be.
    Working with large amounts of material in individual files and managing them with the InDesign book feature reduces the processing load, because you only have a few moderate-sized files open, not the whole humongous file.
    7GB once was considered "lots of space." When I bought an expensive box of ten single-sided 5.25' floppies, each able to store 85KB, with my first computer, I thought I'd never need any more back-up storage. When I moved to an affordable (~$400) HUGE 20MB hard drive after a couple of years, I had hundreds of floppies, many of which I had "notched" to make them able to convince the disk drives that they were double-sided disks that could be inserted in the single-sided drive with one or the other side up, to gain double capacity.
    The point here is that in your 7GB of free space, you need to store the virtual memory, and any data that the application normally writes temporarily to disk in order to perform its tasks, and any temporary storage that Windows needs as well. Perhaps 2x, 3x, or more times the total size of all active files in the active application is needed. Unlike Photoshop, Illustrator, and other applications, InDesign doesn't offer the ability to specify a separate "scratch disk," on which to do this background work; in a sense, it's like a multiple processor CPU, in that it divides the work. Without a scratch disk, the single drive has to alternate between storing and retrieving material - store, retrieve, store, retrieve, etc. IOW, SLOW. It would be a great feature enhancement request; you can enter it formally at Adobe - Feature Request/Bug Report Form.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • High MySQL CPU Load

    Hello All,
    I am currently running the following:
    OS X Server 10.5.5
    2x3GHz Multi-Core Xserve
    8GBs RAM
    MySQL Server v5.0.67
    One problem I am having is that when someone does a MySQL database search on a particular webpage the CPU load can get upwards to 400% render the search useless to all other clients. The MySQL CPU load is getting so high that no one can then do a search and the results never come back until the other queries are finished first.
    Why won't MySQL use the 8GBs of memory I have installed instead of sucking up CPU? Is there a way to allocate this in the OS or terminal? If not, should I be optimizing MySQL settings instead to better work with my query statement and 8GBs of memory that I have installed? I'm not exactly sure what to adjust within the MySQL settings if this is the case.
    Any help would be greatly appreciated!
    Thank you very much!

    @Camelot,
    I have not configured anything, everything is default install. I have about 6 devs on this box at all times and we do not have a MySQL admin. I really need to fine tune this setup as the DBs are starting to grow very big. I am looking for any help at this point and want to start fixing this now before it becomes more of a problem. I am going to start researching the MySQL dev zone ASAP.
    @Mabel
    Here is the output of MySQLtuner:
    *Maybe I need Snow Leopard to utilize all 8GBs of RAM??*
    -------- General Statistics --------------------------------------------------
    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 5.0.67-log
    [!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM
    -------- Storage Engine Statistics -------------------------------------------
    [--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
    [--] Data in MyISAM tables: 5M (Tables: 16)
    [--] Data in InnoDB tables: 138M (Tables: 51)
    [OK] Total fragmented tables: 0
    -------- Performance Metrics -------------------------------------------------
    [--] Up for: 99d 16h 39m 42s (53K q [0.006 qps], 1K conn, TX: 17B, RX: 2M)
    [--] Reads / Writes: 99% / 1%
    [--] Total buffers: 442.0M global + 12.4M per thread (100 max threads)
    [OK] Maximum possible memory usage: 1.6G (41% of installed RAM)
    [OK] Slow queries: 0% (0/53K)
    [OK] Highest usage of available connections: 8% (8/100)
    [OK] Key buffer size / total MyISAM indexes: 384.0M/123.9M
    [OK] Key buffer hit rate: 99.8% (10K cached / 18 reads)
    [!!] Query cache efficiency: 0.8% (52 cached / 6K selects)
    [OK] Query cache prunes per day: 0
    [!!] Sorts requiring temporary tables: 11% (5 temp sorts / 44 sorts)
    [!!] Temporary tables created on disk: 38% (11K on disk / 29K total)
    [OK] Thread cache hit rate: 99% (8 created / 1K connections)
    [OK] Table cache hit rate: 91% (76 open / 83 opened)
    [OK] Open file limit used: 7% (86/1K)
    [OK] Table locks acquired immediately: 100% (10K immediate / 10K locks)
    [!!] InnoDB data size / buffer pool: 138.2M/8.0M
    -------- Recommendations -----------------------------------------------------
    General recommendations:
    Enable the slow query log to troubleshoot bad queries
    When making adjustments, make tmptable_size/max_heap_tablesize equal
    Reduce your SELECT DISTINCT queries without LIMIT clauses
    Variables to adjust:
    querycachelimit (> 1M, or use smaller result sets)
    sortbuffersize (> 2M)
    readrnd_buffersize (> 8M)
    tmptablesize (> 32M)
    maxheap_tablesize (> 16M)
    innodbbuffer_poolsize (>= 138M)
    Should I just go with these adjustments for now or do you guys recommend anything else?
    Thank you very very much guys!!!
    Message was edited by: spraguga

  • [SOLVED] External USB mouse causes very high CPU load

    Hello,
    this is far from a scientific test, but if I launch a cpu load monitor and wiggle the mouse cursor over it with the built-in touchpad, the CPU load goes up by 3-4%. When I do the same with a USB mouse, it's 30-40%. Also, in a 3D game, moving the camera around with the touchpad drops the FPS from 35 to 25, while doing the same with the USB mouse drops it to about 5-10 FPS, so something is definetely wrong here.
    If I don't touch the mouse, it doesn't produce any load.
    The CPU load comes from both X and the window over which I am wiggling the cursor, whether it is a terminal, browser or whatever, with the window contributing about 2/3 of it. If I don't do it over a window, the excessive load comes only from X and is much smaller (but still several times bigger than the load the touchpad produces).
    I have no idea how to even tackle the issue.
    I run Arch 64, on an Asus 1201N laptop. The mouse is Logitech G5 (laser mouse).
    Last edited by Porost (2011-09-23 19:36:04)

    Have you tried with a different mouse, to check if it is specific to this mouse /driver? Does lowering the polling rate help? (https://wiki.archlinux.org/index.php/Mouse_Polling_Rate) .I remember vaguely that laptop mode caused this too.. search the forums for mouse and cpu.
    Last edited by rwd (2011-09-23 19:24:30)

  • Slow Report Processing  somtimes timout, but no cpu load

    Hi,
    after searching different forums, the help and here I finally have to post our problem.
    Running a report from our web application  is very slow (5 minutes), even the  the timeout  message
    "Error  The request timed out because there has been no reply from the server for 600,000 milliseconds. " for some reports occur.
    Monitoring the database server shows me a  hit at the cpu load,  while processing the sql, after this i see   some load at the server where BOE is installed, but only for a small amount of time (<1 minute).
    After this  no load on any server can be seen, but the viewing page  in a browser is loading and loading and loading  till the timeout appears.
    Running the same reports in The CR Designer works, it takes some time but it works
    I'm bit unsure now where to look next, a network problem I would exclude, having a 1 Gigabit network here.
    Any one here with hints  where to look next ?
    Thanks in advance for your help
    Regards
    Thomas

    Hi
    You need to adjust the Windows Power Plane settings in order to improve the cooling system.
    <Setting Method>
    Changes in Operating System:
    Control Panel --> Power Options --> Change plan settings --> Change advanced power settings --> TOSHIBA Power Saver Settings --> Cooling Method
    Changes in Bios (Power Management):
    Intel Turbo boost Technology
    Changes in Operating System:
    TOSHIBA HW Setup --> CPU Frequency mode
    Try this settings:
    Power plane (Toshiba power saver) Battery optimized
    Intel Turbo Boost technology (BIOS) - Disable
    CPU frequency Always low
    From my experience this should reduce the noise.

  • Crio cpu load

    Good morning!
    I am using a cRIO 9074 and LabVIEW 2012.  The cRIO is in scan mode at 1kHz.  I have a shared variable engine, an ftp server, and a web server running on the cRIO.  This is not a complete list of "built-in" software running on the cRIO.  I do not have time synchronization turned on.
    With no user application running on the cRIO, the Distributed System Manager reports 58% CPU utilization.  When I add my program, CPU usage shoots to 100% and the cRIO "freezes" for several seconds occasionally.  I am confident that this situation is not acceptable.  I suspect that an "idle" CPU usage of 58% is not to be expected.
    How do I determine what "built-in" software is loading the CPU so tremendously?
    Followed immediately by the question, is there anything that I can do to reduce CPU usage of "built-in" software?
    Thanks,
    Hamilton Woods
    Solved!
    Go to Solution.

    Sorry it took so long to get back to the discussion.  I just got back in town from working on another project.
    NI suggested the 9074 CPU for this project.  We are logging to 97 channels to memory (writing to compact flash
    would work except that compact flash has a limit on how many times it can be writtten to) at 10 Hz.  The data
    are logged continuously and the old values are overwritten after a little more than 30 minutes (20,000 samples).
    I am using a functional global (VI with an uninitialized shift register) to hold an array 97 channels by 20,000 sample
    (a little over 30 minutes, at 10 Hz) and an array of timestamps..  In the functional global, there are three actions
    (Initialize - create arrays; Store - replace array elements; and Get - access the data and timestamp arrays).  
    Initialize happens once.  Store happens every 100 milliseconds.  Get happens so infrequently it could be 
    considered that it never happens.
    Apparently array allocation is happening in the replace array subset function calls.I changed the execution
    property of the functional global VI to inline the VI, which required that the VI be re-entrant.  When I did this, the
    CPU load went from 100% to 50%.  I know that I don't want to use a re-entrant VI; I just wanted to observe the
    effect.  When I unchecked the box for inlining the VI (leaving the VI re-entrant), the CPU load went back to
    100%.
    It has been suggested that I consider using an in place element structure with a reference to the data array and
    to the timestamp array to eliminate allocating buffers in the Store action case.
    Any thoughts?
    Hamilton Woods

  • System reboots with high CPU load: Advice?

    I built this system (in sig) just under a week ago; all works fine.  3 days ago, when running a game (specifically; Dark Age of Camelot, 2x instances == 100% CPU load) the PC rebooted 3 times in a row.
    Shortly thereafter, I reinstalled the OS (Win XP Pro SP1 + all windows updates) and the PC continued working fine for about 30 hours, then again began to reboot.  At this time I disconnected the 2nd hard drive I had installed.
    Just a little bit ago, it again rebooted out of the blue.  The system halts, the hard drive spins down and back up, then the system reboots.
    This smacks, to me, of a power supply issue.  4 hours of memtest86 resulted in no errors.
    CPU is running at 28 degrees idle at the moment, I've seen it go as high as 52 when it's been operating at 100% for several hours without a break.  Case temperature is 34 degrees at idle, and I have seen it peak at 42.  I don't think temperature is the issue here, but I could be wrong.  I have 3 fans in the case, all 80mm- side rear and top mounted; side intake, rear and top exhaust.
    Okay anyway... thoughts?  I am thinking power supply.  I am pretty noobish at this whole business and I get the impression that the PS that came with my case is crapola.

    Heh 50+ has always just set off alarm bells in my head.  No reason and good to hear that the temps I'm getting are reasonable.  I was freaking out that my case's cooling sucked, 'cause I laid the fans out as best I could.    What really freaked me out was the Core Center utility that MSI provides, gave some seriously weird temperatures.  Now using Motherboard Monitor 5 and it seems to give much more reasonable temps.  (Ex: Core Center would report temp at 55c idle, going down to 32c 10 seconds later, then 44 as soon as I moved the mouse.... all over the place.  MbM5 seems to provide much more realistic scaling in the temps.)
    As for Oklahoma, southwest part a bit up from the texas border- little town called Duncan.  It's hot, it's humid, and I've already had to hide in the storm cellar a couple of times from nasty storms.  Just moved here 2 months ago after being on the pacific my whole life.  :D

  • Pop up. reduce system load. how to?

    booting up as soon as firefox loads a pop up will state high cpu use and another pop up states "reduce system load" how do i do this?

    I'm still running Firefox 12, so if this is a new feature of Firefox 13, I am not familiar with it. It also doesn't sound like a standard Windows XP feature.
    It is possible that you accidentally installed some adware that tries to sell you a third party product. You may want to run some supplemental security scans. These two tools are highly regarded:
    Malwarebytes Anti-malware : http://www.malwarebytes.org/products/malwarebytes_free
    SUPERAntiSpyware : http://www.superantispyware.com/

  • Flash player mac - high cpu load

    why does flash player produce such a high cpu load under Mac OS X? I have a MacBook 2,1 w/ an Intel Core 2 Duo cpu. When I watch a tiny youtube movie in any browser, the fan gets really loud, and activity monitor shows 50% cpu load.

    Hi ... I use admin account only to install new software or games ... for all other uses I log in as an ordinary account
    But even when logged in with admin account the same prb persists ... cause of this flash player prb I have even stopped playing  games on FB & Zynga ...
    For this flash player problem I even took it to acer service center and since I have extended service warranty the engineers there ran acomplete check on ram, hdd, graphic card and they also did a complete fresh install of win 7 home premium 64 bit edition. They even completely serviced it, cleaned it and applied new thermal paste ...  but even they were baffled that my system can stand up to high intensity graphic games running from HDD or DVD rom or USB pen drive but if I try to run graphic flash player games for long ie castleville or watch a long movie on you tube then flash player can single handedly cause CPU usage to be constantly high leading to system getting heated up.
    Guess will just have to be content without flash ... but some sites require flash player to be enabled and therein lies the problem
    rgds

  • 90% cpu load on ubuntu 8.04

    Hello all,
    I made a visualization for sorting algorithms. (The code is to long to post it here)
    I developed the app under this system:
    Windows Vista Home x64
    Dualcore ~2.6GHz
    Java Version: 1.6.0 Update 7 32bit
    and i have a cpu load of ~10% when i run the app.
    I asked my friend to test the app under his OS:
    Ubuntu 8.04
    Dualcore ~2.2Ghz
    Java Version: 1.6.0 Update 7 32bit
    and he got a cpu load of over 90%!
    We both had no running tasks in background. It was only the java app.
    Are there any known issues about this problem or could could it be a coding problem?
    Btw the programm uses round about 8 Threads.
    TIA

    mod235711 wrote:
    I'm sry.
    Ok i try to specify a little bit more.
    e.g.: I have this code snippet to check whenever the algorithm has finished.
    while (!algorithm.isIdle())
                                  try
                                       sleep(1);
                                  catch (InterruptedException e)
                                       clockRefresh.interrupt();
                                       setIdle();
                             }Without the sleep I have a cpu load of 50% (of course, because it is an endless loop until the algorithm has finished).
    But with the sleep time it's just 1 or 2%.
    I want to know if there is a known issue in the JVM that causes threads on some systems to use to much cpu load.
    Or could it be a coding problem?
    What do you think about the sleep time in this loop?
    Or could the high cpu load be caused by bad coding?After reading this post I could not read further. There is the problem. You're doing a sleep(1) .....
    Even in C that will most likely kill any cpu. Try to use joins: elegant and faster ;)

Maybe you are looking for