12.1 12.2 making my programs slow

Hi,
I've been using sunstudio 12.1 to compile a prgram witch C/C++ and Fortran 95 parts. Recently, after I've upgraded to Oracle Solaris Studio 12.2, the same program compiled with same compiler options are at least 5 times slow! Even the 'Release' build of the new setup is slower than the "Debug" build of the older one. Just to verify things, I've again used the 12.1 version to compile the same code and compare side by side -- no mistake, the latest and the greatest is slow. Here are some additional points:
1. Both compilations were done on Intel Core I5 processor. 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 x86_64 GNU/Linux
2. Compiler options (for Debug in both cases): cc -ftrap=common -c -g -o and f95 -moddir=./build/modules -ftrap=common -c -g -w1 -o
What do you think is up. Any suggestions are welcome.

Thanks for the suggestion. My collect command (<..>//solstudio12.2/bin/collect) gives the following output:
WARNING: Linux-64-bit, 4 CPUs, LinuxMint_9 system "mymachine" is not supported by the Performance tools.
NOTE: The J2SE[tm] version 1.6.0_22 found at /usr/lib/jvm/java-6-sun/bin/java (picked by JDK_HOME) is supported by the Performance tools.
WARNING: Data collection may fail: system is not properly configured or is unsupported.
Does this indicate that I can not use performance analyzer on my x86_64 Linux platform.
Edited by: user13686071 on Jan 24, 2011 12:00 PM

Similar Messages

  • PROGRAM SLOWS DOWN WHEN IT ENTERS A CASE STRUCTURE

    OK so here is the problem i am making this pid controller the output range is 0-100  in this program i am just trying to get it to work so i  did a compair function whereby when the controller output is 0 and the constant is 0 i start a case loop which will turn the output on for one second and off for one second .   when i enter the case structure the rest of my program slows down
    i have no idea why , i have tried to make a while loop and a case structure outside my main loop but i cannot get my signal from my compair statement to enter the second loop where i get my output to cycle in 1second intervals 
    below is the VI please help
    i am still learning how to use labview by the way
    thank you
    gary
    GR
    Solved!
    Go to Solution.
    Attachments:
    TMP36working!vi.vi ‏225 KB

    gary,
    The next thing you need to learn about LabVIEW is dataflow. This is the fundamental paradigm of LV and will explain your slow down issues.
    The basic dataflow concept is that any node (node = function, subVI, structure) can begin to execute when data is present on all its inputs and that no data will be present at its outputs until the node comopletes execution.
    How does this affect your VI? The true case has a 1000 ms Wait (actually two, one in each case of the inner case structure = redundant code). The case structure will not complete execution until the wait completes. And, the while loop does not complete its iteration until the case structure completes. The result: When the PID.vi output = 0, the loop will run at 1 second per iteration.
    What is the fix? Continue running the loop at 100 ms intervals. Keep a count in the case structure (true case) and another shift register of how many 100 ms intervals have passed. When the count reaches ten, toggle the output line.  Do not use the 1000 ms Wait.
    All the code in your inner case structure is unnecessary. Wire the Remainder output directly to the Arduino Digital Write VI.
    Be careful with the comparison to zero with floating point data. If the calculation which produces the data has round off errors you might get a value like 0.573E-15, but that is not equal to zero. It is better to compare to a small range of values above and below zero.
    Right to left wiring is much easier to follow when trying to understand what a program does. Using the Clean Up tool occasionally will help (although it will eventually frustrate you also).
    Lynn
    Attachments:
    TMP36working.2.vi ‏214 KB

  • My iphone took all of my pics off of my computer. this is making it very slow. How do I remove them if the only options are places or albums?

    Hello,
    I accidently hit restore on my phone and erased everything. When I called Apple they helped me retrieve everything from my computer and more. I now have over 4,000
    pics on my phone  that were on my computer, which is making it very slow. How do I get these off when the only options the phone is giving me are places and albums

    To Remove Photos from your Phone you need to Sync your phone with the Computer you Usually Sync with...
    See Here for Syncing...
    http://support.apple.com/kb/HT1386
    From Here
    http://www.apple.com/support/iphone/syncing/
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • I made eight radio buttons exclusive by each other.But It made the orignal program slow down.

    I made eight radio buttons exclusive by each other. But It made the
    original program slow down. I insert them parallel to the original
    program, ie, they are excuted at the same time, I think. But I found
    that the speed before I insert it is faster than after. I think If I
    use the exclusive radio buttons made by ni , the program will execute
    faster. but there aren't eight radio buttons I can choose. How can I
    do ? Or How can I make some changes to the slide that I will get the
    result like NI does?

    You'll have to give the processor some time. In the parallel loop, put a
    'Wait (ms)' from the Time & Diaglog pallete. Wire e.g. 10 to it, and the
    computer has some time to do other processes (like the other loop, and
    updating the user interface).
    When you have something like this, you can open the task manager (win nt,
    win 2000). If it it this problem, the processor uses 100% processor time.
    Regards,
    Wiebe.
    "Rosa" wrote in message
    news:[email protected]..
    > I made eight radio buttons exclusive by each other. But It made the
    > original program slow down. I insert them parallel to the original
    > program, ie, they are excuted at the same time, I think. But I found
    > that the speed before I insert it is fa
    ster than after. I think If I
    > use the exclusive radio buttons made by ni , the program will execute
    > faster. but there aren't eight radio buttons I can choose. How can I
    > do ? Or How can I make some changes to the slide that I will get the
    > result like NI does?

  • In Mac OS X, I installed a third party toolbar to Safari which is making the program unusable. How can I uninstall it? It did not have an uninstall option.

    In Mac OS X, I installed a third party toolbar to Safari which is making the program unusable by constantly giving a dropdown box requesting a sign-in to a mail feed. It came from http://WWW.BBshare.com/Products/gtoolbar-for safari
    How can I uninstall the toolbar? It did not come with an uninstall option.

    Instructions for manually uninstaling third party add ons >  Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues

  • Kernel task appears to be making my computer slow

    Lately Kernel_task has been appearing a lot in the group of first 5 applications using memory, and immediately making my computer slower, and even getting the internal ventilator make a lot of noise because of the extra work. I am working on the Startup disk space, getting rid of things to make space (what would be the ideal minimum space I should keep unused?), but I don't know if this is related with the kernel_task
    Hope I can get any hint on how can I fix this, hopefuly by myself.
    Hardware Information:
        MacBook Air (13-inch, Mid 2011)
        MacBook Air - model: MacBookAir4,2
        1 1.7 GHz Intel Core i5 CPU: 2 cores
        4 GB RAM
    Video Information:
        Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
        OS X 10.9.2 (13C1021) - Uptime: 0 days 7:53:2
    Disk Information:
        APPLE SSD TS128C disk0 : (121.33 GB)
            EFI (disk0s1) <not mounted>: 209.7 MB
            Macintosh HD (disk0s2) / [Startup]: 120.47 GB (3.81 GB free) (Low!)
            Recovery HD (disk0s3) <not mounted>: 650 MB
    USB Information:
        Apple Inc. FaceTime Camera (Built-in)
        Apple Inc. iPhone
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Internal Memory Card Reader
    Thunderbolt Information:
        Apple Inc. thunderbolt_bus
    Gatekeeper:
        Mac App Store and identified developers
    Kernel Extensions:
        [kext loaded]    org.virtualbox.kext.VBoxDrv (4.1.2) Support
        [not loaded]    org.virtualbox.kext.VBoxNetAdp (4.1.2) Support
        [not loaded]    org.virtualbox.kext.VBoxNetFlt (4.1.2) Support
        [kext loaded]    org.virtualbox.kext.VBoxUSB (4.1.2) Support
    Startup Items:
        HWPortDetect_Cus: Path: /Library/StartupItems/HWPortDetect_Cus
        VirtualBox: Path: /Library/StartupItems/VirtualBox
    Problem System Launch Daemons:
        [failed]    com.apple.wdhelper.plist
    Launch Daemons:
        [loaded]    com.adobe.fpsaud.plist Support
        [running]    com.aladdin.eTSrv.plist Support
        [loaded]    com.oracle.java.Helper-Tool.plist Support
        [loaded]    com.oracle.java.JavaUpdateHelper.plist Support
        [loaded]    com.safenet.SfntMonD.plist Support
    Launch Agents:
        [running]    com.aladdin.PKIMonitor.plist Support
        [loaded]    com.oracle.java.Java-Updater.plist Support
    User Launch Agents:
        [loaded]    com.facebook.videochat.[redacted].plist Support
        [not loaded]    org.virtualbox.vboxwebsrv.plist Support
    User Login Items:
        iTunesHelper
        Dropbox
    Internet Plug-ins:
        Silverlight: Version: 4.1.10329.0 Support
        FlashPlayer-10.6: Version: 13.0.0.214 - SDK 10.6 Support
        Flash Player: Version: 13.0.0.214 - SDK 10.6 Support
        QuickTime Plugin: Version: 7.7.3
        JavaAppletPlugin: Version: Java 7 Update 55 Check version
        Default Browser: Version: 537 - SDK 10.9
    Safari Extensions:
        Cuevana Stream: Version: 4.4
        Open in Internet Explorer: Version: 1.0
    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:
        Flash Player  Support
        Java  Support
    Time Machine:
        Time Machine not configured!
    Top Processes by CPU:
            37%    firefox
             6%    WindowServer
             2%    sysmond
             1%    plugin-container
             1%    eTSrv
    Top Processes by Memory:
        1.21 GB    firefox
        66 MB    Finder
        45 MB    Skype
        41 MB    WindowServer
        25 MB    mds_stores
    Virtual Memory Information:
        41 MB    Free RAM
        927 MB    Active RAM
        886 MB    Inactive RAM
        1.06 GB    Wired RAM
        2.04 GB    Page-ins
        151 MB    Page-outs

    I did, it, here the print screen of what it's my usual work with Firefox (two windows, several tags). Did disable the extensions to make the test and these are the results.

  • Program slow down / problem of memory optimization

    hi all,
    Here is my problem. I am using Labview 2011 and a NI acquisition board. In attachment are simplified VI codes I implemented to acquire analog signal and process the data. The main_VI.vi starts the RUN VI that performs data acquisition and data processing. In the RUN VI, I implemented a state machine because there are many sequential steps. The acquisition is done many times (see max iteration value) and for each acquisition, there is a processing. I used a queue structure to send data for processing in parallel. I also use a in-place element structure to manage the array.
    For real data acquisition (from NI board), the program slows down after hundreds of iteration and when I exit the program, it seems the VI has to free memory because it takes few minutes to close the VI.
    My questions are:
    -       Is the state machine structure properly implemented?
    -       Is the queue strategy optimal to do parallel processing?
    -       Is the use of in-place element structure properly implemented in my case, and is it needed for 1D array with a size of 4000 to 20000 points?
    Thank you for your help/suggestions.
    Cedric
    Attachments:
    Main_VI.vi ‏25 KB
    RUN.vi ‏88 KB
    acquisitions_data.vi ‏28 KB

    Hello Cedric,
    I noticed that in your "RUN.vi" you are calling the "acquisitions_data.vi" iteratively in a For Loop.  Everytime that For Loop iterates, you are creating the Task, running the acquisition, then closing the Task.  You don't need to create and clear the Task over and over again like that.  Instead, create and configure the Task outside of the for loop.  This way when you get inside the for loop, use the "DAQmx Start Task.vi" to start the task, perform the read using the "DAQmx Read.vi", then use the "DAQmx Stop Task.vi" to stop it.  Outside the for loop you can place the "DAQmx Clear task.vi" to clear the references.
    Perhaps this will help with your performance.
    Mason M
    Applications Engineer
    National Instruments

  • Javax.swing.SwingUtilities.invokeLater make my program slow

    i am writing a program in which i am implementing documentlistener
    to communicating between two frames
    if i write my code with javax.swing.SwingUtilities.invokeLater it makes my program slow
    and if i write without this thread safe quality then this is fast but giving me runtime exception
    what i do to make my program better
    kindly suggest
    public void insertUpdate(DocumentEvent e) {
                updateLog(e, "inserted into");
            public void removeUpdate(DocumentEvent e) {
                updateLog(e, "removed from");
            public void changedUpdate(DocumentEvent e) {
                //Plain text components don't fire these events.
            public void updateLog(DocumentEvent e, String action) {
                Document doc = (Document)e.getDocument();
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
    tf4.setText(lbl.getText());
    }

    If your program is becoming too slow or unresponsive, it means that the operation "tf4.setText(lbl.getText());" is taking too long to execute and is therefore blocking the Swing-thread.
    There is little you can do to make that operation faster, but perhaps you can change how or how often you update the frames.
    Setting the whole text via setText() everytime a change happens seems very wasteful. Imagine you have a text with a million characters, and every time the user adds or changes just one character, you are getting and seting over one million characters. That is not the right approach.
    I'm not familiar with text-operations or class DocumentEvent, but I guess that there should be some kind of delta in DocumentEvent containing only the changes that were made. You could apply only these changes on tf4 instead of setting the whole text. Finding out how to do this would be the best solution. This will also make your program more scalable, as with setText() the performance of your application will continuously decrease as the text length increases.
    Usually when working with documents you have a "viewer" and a "model". If your viewer was a JTextBox and your model was, say a StringBuilder, you could make quick changes to the contents of JTextBox using the StringBuilder.append() or delete() methods without having to modify the whole text. You need to find out how this is done with whatever UI system you're using.
    If you can't find out how to do the above, a workaround would be to reduce how often you call "updateLog()". For example, is it truly necessary to call "updateLog" every time a new update happens? Perhaps it would be better to use a timer and only call "updateLog()" every few seconds.
    But as I said, this should only be a temporary workaround. You really should find out how to perform more efficient updates without using setText(). I recommend you search for tutorials and guides on how to work with text and documents on the internet.

  • What is the  best money making java program?

    what is the best money making java program?
    any of them are in fact very "simple"? - say in fact can be develop by a middle- level programmer.

    public class MoneyMaker {
       public static void main(String[] args) {
          while (true) {
             System.out.println("+-----------------------------------------------+");
             System.out.println("| 10        RESERVE BANK OF INDIA \"93T 872468\"  |");
             System.out.println("|                                               |");
             System.out.println("|   ______                                   10 |");
             System.out.println("|  /      \\             __          ____        |");
             System.out.println("|  |      |        /|  /  \\        /  __\\       |");
             System.out.println("|  |      |         | |    |       0_o  \\\\      |");
             System.out.println("|  |      |         | |    |      /      ||     |");
             System.out.println("|  |      |         |  \\  /       `==    ||     |");
             System.out.println("|  |      |        ===  **         \\    /       |");
             System.out.println("|  |      |                        /\\--/        |");
             System.out.println("|  \\______/                       /______   /\\  |");
             System.out.println("|                                           \\/  |");
             System.out.println("| \"93T 872468\"                                  |");
             System.out.println("+-----------------------------------------------+");
             System.out.println("");
    }

  • Slideshow page appears to load all images at once making it very slow. Is it possible to force it to load just the required items for the immediate page / slide

    Hi Everyone
    First post and a Muse / Web Noob.
    Im building my personal website with muse ( CC and now CC 2014 ) , its quite simple with slideshows embedded inside each other and is just 4 pages in total.
    My two slideshow pages appears to load all images at once making it very slow ( plus 20 secs on my system ). Is it possible to force it to load just the required items for the immediate page / slide. It would be so much faster and would work much better in this particular situation.
    Ive built all the images and icons at the correct size so optimisation shouldn't be an issue. The whole site is only about 42mb.
    www.paradoks.co.uk
    Many thanks
    Deck

    Oh well the problem seems to have fixed itself. It seems it was either a Java or Tumblr problem because the same thing happened when I installed Chrome. It is a lot more stable now and no more crashes yay.

  • After editing for a while the program slows to a crawl how do I fix this?

    After editing in iMovie for a while the programs slows down - especially when I have heavy graphics and audio in the time line.  Can anyone help me with this problem?

    How much free space do you have on your disk drive?

  • [SOLVED] Making a program appearing on all workspaces

    Hi!
    Is it possible to making a program appearing on all available workspaces with Fluxbox?
    Last edited by svanberg (2009-08-06 10:46:17)

    I found the solution here.
    Last edited by svanberg (2009-08-06 10:46:03)

  • Indesign CC when I open it the screen is not full sized and the boarders on the pages aren't showing up correctly. It is also extremely slow and lagging a lot. I have tried un installing and re installing but it hasn't helped. Its making the program extre

    Some screen shots of some of the issues I have been having

    Try two things: (1) Click on the Workspace menu (you screen shot shows it is set on Essentials) and choose Reset Essentials. If that doesn't work, try (2) restoring your InDesign preferences. Here's how:
    Trash, Replace, Reset, or Restore the application Preferences

  • I'm a Graphic Designer and Animator with a Mid 2012 15" MBP...Programs slowing need up grade

    Hey everyoe,
    I'm a Graphic Designer and Animator with a Mid 2012 15" MBP. My programs get REALLY SLOW, ToonBoom Harmony and Sometimes Illustrator, HELP! I upgraded my Ram to 16GB LONG time ago and it's made a big difference but still the stuff I make is semi complicated/detailed I can't imagine this is the strength of my MBP I refuse to accept that. WIth that said HELP ME PLZ!!! I have deadlines and I dont know what else to do! Steve Jobs my life is your hands right now man...

    Maz0327,
    if you boot into Safe mode, log in, and run your graphic design and animation apps, do they run just as slowly then?

  • High CPU usage and program slowing down

    Hi. I have helped write a program in AS3 that uses classes. We have 2 frames in our movieclip that consists of an ant moving. We have a class of ants and can create 15 instances of them and the program runs fine with the ants walking around looking for food and going back to a corner that is their nest and going back out again. The ants also respond to mouse movement if the mouse pointer is near an ant.
    If we create more than 15 ants, then the program starts to slow down. If we have 30 ants on the screen, then there is noticable stuttering of the ant movement. The CPU usage on a P4 2.5Ghz Pentium is around 50%.
    Is this normal? or is something wrong?
    I would have thought we would be able to scale up the number of ants easily.
    Thanks
    Trev.

    Hi kglad.
    Thanks for the reply.
    I assume enabling cacheAsBitmap is set in the ant class Constructor, as we have tried that and it has helped, see below. We can now create 30 ants with very slight stuttering.
    We have an  ant class as below.
    public class TAnt extends MovieClip { // lots of code here }
    ant Constructor as below.
    public function TAnt(newX: Number, newY: Number, sW: Number, sH: Number, rCyc: Number) {
                this.cacheAsBitmap = true;
               // more code here }
    // We have implemented a Finite State Machine for the ant behaviour.
    regarding the ants using a loop and using a controller class, I am not sure what you mean.
    We are creating instances of the ants in the Ants.fla file which is in the Action file and add each new ant to an array. See below.
    for (var a = 0; a < nAnts; a++) {
        var newAntX = Math.random() * screenWidth;        // randomly generate ant location
        var newAntY = Math.random() * screenHeight;
        var rCyc = Math.random() * 800;
        var ant = new TAnt(newAntX, newAntY, screenWidth, screenHeight, rCyc);            // create ant
        addChild(ant);                                                   // add ant so visible on screen
        ants.push(ant);                                                 // add ant to array
    So we use an array for looping through the ants in the Ants.fla Action file.
    Is this the way you mean?
    Thanks
    Trev.

Maybe you are looking for