Force unload running modules

hi all!
hda-intel causes trouble when hibernating. when i wait und unload this module, then hibernating/suspending works.
i tried adding this module to the pm-utils SUSPEND_MODULES list, but it does not work properly. hibernating still freezes...
from pm-suspend.log
/usr/lib/pm-utils/sleep.d/75modules suspend suspend: FATAL: Module snd_hda_intel is in use.
is there a way to force unload running modules even if they're in use?
vlad

Hello Norbert,
thanks for your reply. I am still having some issues with unloading modules. Following.
I created a step type under the Type Palettes, let's say a global step type. The Post step of the step type is a VI, which belongs to a LVLIBP. The default unload option for the step type is "Unload when sequence file closes."
Well, after running the step, and closing the sequence file, the entire LVLIBP is still in the memory. I got this by calling the "GetAllVIsInMemory" property from LabVIEW. So I see the entire VI list of the LVLIBP, and the VI which requests the "GetAllVIsInMemory". For my understanding, all the modules have to be unloaded upon closing the sequence file, if the  "Unload when sequence file closes" is set. They will be onlyunloaded, if I explicitly call the Engine.UnloadAllModules method.
If I remove the .ini file from the Type Palettes, then it works: execute step -> close the sequence file -> GetAllVIsInMemory -> and the only VI remains in the memory is the VI with the "GetAllVIsInMemory".!
Can you please let me understand, why the unloading is not working, if the step type resides in the type palettes?
Madottati

Similar Messages

  • Profiling the loading and unloading of modules

    Modules appear to be the ideal solution for building complex rich internet applications but first hand experience has also shown me that they can leak memory like nothing else. I've read anything and everything I could find about modules and module loading/unloading including of Alex Harui's blog post "What We Know About Unloading Modules" that reveals a number of potential leak causes that should be considered.
    I've now created a simple soak test that repeatedly loads and unloads a specified module to help identify memory leaks using the profiler. However, even with the most basic of modules, I find that memory usage will steadily grow. What I'd like to know is what memory stuff is unavoidable flex overhead associated with the loading of modules and what memory stuff am I guilty for, for not cleaning up object references? I'd like to be able to establish some baseline values to which I will be able to compare future modules against.
    I've been following the approach suggested in the Adobe Flash Builder 4 Reference page "Identifying problem areas"
    "One approach to identifying a memory leak is to first find a discrete set of steps that you can do over and over again with your application, where memory usage continues to grow. It is important to do that set of steps at least once in your application before taking the initial memory snapshot so that any cached objects or other instances are included in that snapshot."
    Obviously my set of discrete steps is the loading and unloading of a module. I load and unload the module once before taking a memory snapshot. Then I run my test that loads and unloads the module a large number of times and then take another snapshot.
    After running my test on a very basic module for 200 cycles I make the following observations in the profiler:
    Live Objects:
    Class
    Package (Filtered)
    Cumulative Instances
    Instances
    Cumulative Memory
    Memory
    _basicModule_mx_core_FlexModuleFactory
    201 (1.77%)
    201 (85.17%)
    111756 (24.35%)
    111756 (95.35%)
    What ever that _basicModule_mx_core_FlexModuleFactory class is, it's 201 instances end up accounting for over 95% of the memory in "Live Objects".
    Loitering Objects:
    Class
    Package
    Instances
    Memory
    Class
    600 (9.08%)
    2743074 (85.23%)
    _basicModule_mx_core_FlexModuleFactory
    200 (3.03%)
    111200 (3.45%)
    However this data suggests that the _basicModule_mx_core_FlexModuleFactory class is the least of my worries, only accounting for 3.45% of the total memory in "Loitering Objects". Compare that to the Class class with it's 600 instances consuming over 85% of the memory. Exploring the Class class deeper appears to show them all to be the [newclass] internal player actions.
    Allocation Trace:
    Method
    Package (Filtered)
    Cumulative Instances
    Self Instances
    Cumulative Memory
    Self Memory
    [newclass]
    1200 (1.39%)
    1200 (14.82%)
    2762274 (13.64%)
    2762274 (62.76%)
    This appears to confirm the observations from the "Loitering Objects" table, but do I have any influence over the internal player actions?
    So this brings me back to my original question:
    What memory stuff is unavoidable flex overhead associated with the loading of modules and what memory stuff am I guilty for, for not cleaning up object references? If these are the results for such a basic module, what can I really expect for a much more complex module? How can I make better sense of the profile data?
    This is my basic module soak tester (sorry about the code dump but there's not that much code really):
    basicModule.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/halo"
               layout="absolute" width="400" height="300"
               backgroundColor="#0096FF" backgroundAlpha="0.2">
         <s:Label x="165" y="135" text="basicModule" fontSize="20" fontWeight="bold"/>
    </mx:Module>
    moduleSoakTester.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo"
                   width="400" height="300" backgroundColor="#D4D4D4"
                   initialize="application_initializeHandler(event)">
         <fx:Script>
              <![CDATA[
                   import mx.events.FlexEvent;
                   import mx.events.ModuleEvent;
                   [Bindable]
                   public var loadCount:int = -1;
                   [Bindable]
                   public var unloadCount:int = -1;
                   public var maxCycles:int = 200;
                   public var loadTimer:Timer = new Timer(500, 1);
                   public var unloadTimer:Timer = new Timer(500, 1);
                   protected function application_initializeHandler(event:FlexEvent):void
                        loadTimer.addEventListener(TimerEvent.TIMER_COMPLETE, loadTimer_timerCompleteHandler);
                        unloadTimer.addEventListener(TimerEvent.TIMER_COMPLETE, unloadTimer_timerCompleteHandler);
                   protected function loadModule():void
                        if(loadCount < maxCycles)
                             moduleLoader.url = [correctPath] + "/basicModule.swf";
                             moduleLoader.loadModule();
                             loadCount++;
                   protected function unloadModule():void
                        moduleLoader.unloadModule();
                        unloadCount++;
                   protected function load_clickHandler(event:MouseEvent):void
                        load.enabled = false;
                        loadModule();
                        unload.enabled = true;
                   protected function unload_clickHandler(event:MouseEvent):void
                        unload.enabled = false;
                        unloadModule();
                        run.enabled = true;
                   protected function run_clickHandler(event:MouseEvent):void
                        run.enabled = false;
                        moduleLoader.addEventListener(ModuleEvent.READY, moduleLoader_readyHandler);
                        moduleLoader.addEventListener(ModuleEvent.UNLOAD, moduleLoader_unloadHandler);
                        loadTimer.start();
                   protected function moduleLoader_readyHandler(event:ModuleEvent):void
                        unloadTimer.start();
                   protected function moduleLoader_unloadHandler(event:ModuleEvent):void
                        loadTimer.start();
                   protected function loadTimer_timerCompleteHandler(event:TimerEvent):void
                        loadModule();
                   protected function unloadTimer_timerCompleteHandler(event:TimerEvent):void
                        unloadModule();
              ]]>
         </fx:Script>
         <mx:ModuleLoader id="moduleLoader"/>
         <s:VGroup x="20" y="20">
              <s:HGroup>
                   <s:Button id="load" label="Load" click="load_clickHandler(event)" enabled="true"/>
                   <s:Button id="unload" label="Unload" click="unload_clickHandler(event)" enabled="false"/>
                   <s:Button id="run" label="Run" click="run_clickHandler(event)" enabled="false"/>
              </s:HGroup>
              <s:Label text="loaded: {loadCount.toString()}" fontSize="15"/>
              <s:Label text="unloaded: {unloadCount.toString()}" fontSize="15" x="484" y="472"/>
         </s:VGroup>
    </s:Application>
    Cheers,
    -Damon

    Easiest way I've found to get your SDK version from within Builder is to add this: <mx:Label text="{mx_internal::VERSION}" />
    http://blog.flexexamples.com/2008/10/29/determining-your-flex-sdk-version-number/
    Peter

  • Unload All Modules sometimes doesn't work with LabVIEW

    TestStand's File >> Unload All Modules (and its RunState.Engine.UnloadAllModules() function) sometimes works and sometimes doesn't (with LabVIEW). When it doesn't, I have to quit LabVIEW to make TestStand unload LabVIEW VIs, otherwise I can't edit them.
    Is there an "Unload All Modules" command that works all the time?

    Hm, i assume that you have callbacks defined which do call those modules. Possible callbacks to look first are: SequenceFileLoad/Unload, FrontEndCallback.
    Another possible reason is that there are components running in the LV RTE (runtime engine) calling into the VIs you try to debug/modify in the development environment.
    Can you pinpoint the "lock" to specific sequences/modules? Do they lock only after specific sequences/modules have been executed?
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Sun Solaris SCTP Denial Patch 127127-11 (Unloading SCTP module Solaris 10

    THe patch 127127-11 is suppose to address the SCTP Denial of service vulnerability for solaris 10.
    i am planning not to install this patch but instead to unload this SCTP driver module from the system kernel
    i tried using modunload or update_drv , but (see below). My question , i believe these 2 commands only unload for this session but is not permanent across next reboot. i am thinking to make permanent change will require modiification to /etc/system file. But what is the entry to do this, is it something like....
    /etc/system
    forceunload SCTP driver
    # modinfo | grep sctp
    93 7bf118d8 588 235 1 sctp (SCTP device)
    94 7bf11b90 588 236 1 sctp6 (SCTP6 device)
    myausuv00100443:/usr/kernel
    # modunload -i 93
    can't unload the module: Device busy

    I think the root of the problem is in your "userdir". It is possible that some files are in invalid state there,
    and that's why you cannot start Sun Studio IDE using your account. When you start it using root account,
    you use another "userdir", and that's how you avoid the problem.
    So, where is your "userdir"? By default it is under $HOME/.sunstudio directory.
    On Solaris x86 its name is "12.0-SunOS-i386":
    bash-3.00$ ls -la $HOME/.sunstudio
    total 10
    drwxr-xr-x   4 nikm     staff        512 Feb 13 21:42 .
    drwxr-xr-x  38 nikm     staff       1536 Mar  1 15:30 ..
    drwxr-xr-x   5 nikm     staff        512 Feb 28 21:31 12.0-SunOS-i386
    drwxr-xr-x   2 nikm     staff        512 Mar  1 11:07 user_infoI think on sparc its name is "12.0-SunOS-sparc".
    First of all, you can try to run the IDE using your account, but with a new "userdir":
    % sunstudio --userdir /tmp/ud1
    (note: there are 2 '-' characters!)
    If it works for you, there are two ways:
    1. To remove your old "userdir", restart Sun Studio IDE, and reopen all your projects.
    2. Try to repair your old "userdir".
    This second way is very risky, so I suggest you to use the first one.
    In future try to use Sun Studio IDE to delete your old projects - I hope it will work better for you.
    Thanks,
    Nik

  • Unloading a Module via an exit button on Window component

    This is a Flex 4 project.
    I have a module create with MXML.
    The module uses the window component.
    How do I use the "x" (exit button) on the window component to unload the module?
    This is part of my code on the main application:
        private function displayModule( moduleURL:String ):void
                    if( moduleLoader.url != moduleURL )
                        moduleLoader.url = moduleURL;
    <s:Button x="23.35" y="50.85" label="1a" width="50" height="50" id="A1" click="displayModule('windowA1.swf');"/>
    <mx:ModuleLoader id="moduleLoader" width="100%" height="100%"  x="150" y="25"/>
    Thanks for any help

    Grab some event when the X button is clicked and set the moduleLoader.url =
    null

  • CSM - show run module # - diagnostic not supported

    Hi, I´d like to know why show run module # (where is CSM) doesn´t show anything that I´ve configured before. I have CSM 3.1(5) and IOS 12.1(19)E1 with SUP2 MSFC2. Is this supported or a Bug ?
    I also would like to know if it´s normal to appear not supported CSM module (6) when I use the command show module. This is because I can use CSM without problems. Is this supported or a Bug ?
    Router#show module
    Mod Online Diag Status
    1 Pass
    3 Pass
    4 Pass
    6 Not Supported
    Thank you !!

    Hi Joerg,
    There´s no problem with show run if you want to see CSM configuration, but if you use IOS 12.2(14)SX1 with SUP720 you can use the command show run module # (where is CSM) and appears what you want.
    I ´d like to know if this command is not supported with SUP2 and IOS 12.1(19)E1 or if it is a cosmetic Bug. I was searching in the Bug Toolkit and Release Notes and I didn´t find anything about it.
    Could you give me a link where I can see "online diagnostics are not supported for CSM" ?.
    Thank you.

  • Python "Run module" plugin in kwrite?

    Hi,
    Is there plugin for kwrite which could have option run module just like "idle" has? I would love to switch to kwrite from "idle" editor, but thats the only thing which stops me from switching.

    {quote:title=RobinTibbs wrote:}Traceback (most recent call last):
    File "xml.py", line 1, in <module>
    import xml.dom.minidom
    File "/Users/robintibbs/xml.py", line 1, in <module>
    import xml.dom.minidom
    ImportError: No module named dom.minidom
    {quote}
    Hi Robin,
    Notice that the error message says "No module named dom.minidom" not "no module named xml.dom.minidom" - the module you are trying to import. This gives you a hint about what is going on: you are creating a "module" called xml that replaces the builtin xml module by naming your test script xml.py. Try renaming your test script (and be sure to delete the original script and anything called xml.pyc in your working directory).
    Hope this helps,
    Noah

  • When I open firefox, it won't load any sites, and it won't let use the drop downs, I have to force quit --running os 10.6.7

    Was using firefox this am, working fine, I tried to open a new tab while I was uploading a file, it froze. I restarted the computer---same problem. reinstalled firefox--same problem. am having to write this in safari because I can start firefox up, but it just hangs, and I have to force quit

    i'm using firefox 3.6.13 and windows XP home SP3. when i visit zynga poker at facebook.com it turn slowly to open the application. when i try to navigate away, firefox does not respond. when i close the firefox and try to reopen it, i get nothing. i have to physically go into the task manager and end the firefox.exe process manually before i can go back. i have tried to uninstall and then reinstall firefox, but it didn't work, i tried also to sending the crash report from crashreporter.exe, the warning box said: "This application is run after a crash to report the problem to the application vendor. It should not be run directly", what should i do?

  • GPO Policy 'Applied' but not taking effect unless gpupdate /force is run

    I do not yet have a 2012 DC or a Win 8 machine to manage IE 10 / 11 settings via GPMC. So I have created a policy with a registry setting so that users in a specific OU get specific .PAC settings in IE 11.
    This is a user policy - that is linked and enforced at the specific OU level. It is the last processed User Policy. It appears in the top GPRESULT command
    on the workstations, however the policy is not listed below the policy list when you run with a /v for
    verbose - is this because it is a registry change? Or part of the issue?
    I can see the policy being found, downloaded AND applied in the GP logs on multiple workstations. There no errors from any system for me to track down.
    If I open IE after logging on (with an account in the specific OU), I do not see the settings for the PAC file. If I close IE and run GPUPDATE
    /Force, I can open IE and see the settings and note that they do work.
    The policy is only for users in this OU, it is set for Authenticated Users as it applies to all users in the OU - though I have added a few test accounts for my use.

    Hi,
    I agree with others. By default, on clients, it will take 90 minutes interval for group policy settings to get refreshed at background. If we need to immediately update group policy settings, as you know, we can run command gpupdate/force to do this.
    Best regards,
    Frank Shen 
    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]

  • Force to run an Expiration workflow

    Hello!
    I have working Group objects deletion rule which deletes group objects which has some string in the Display name.  I had to delete the manually created group. I have placed it in to the appropriate set which is dedicated for Expiration groups. The Expiration
    workflow was executed immediately but with code Access denied in Search requests view (The group did not have required string in the Display name).
    After that:
    I have corrected required string in Display name.
    I have disabled / enabled MPR which allows execution of the Expiration workflow run for group objects.
    It seems that FIM ignores changes I have made - there is no Expiration workflow execution seen in Search requests view after that. How can I force the Expiration Workflow run again?
    Thanks!

    There is a "run on policy update" checkbox on your workflow which you need to turn on, then disable an re-enable your MPR.
    Bob Bradley (FIMBob @
    TheFIMTeam.com) ... now using FIM Event Broker for just-in-time delivery of FIM 2010 policy via the sync engine, and continuous compliance for FIM

  • Gnome power management -- easy way to unload usb modules?

    I (thanks to the Thinkwiki and some experimentation) have discovered that suspend only works correctly if I first do modprobe -r uhci-hcd ehci-hcd to unload the USB modules. Then I can do suspend through the command line or through Gnome (via Fn-F4, etc.), but I have to reload the modules upon resume. Seeing as this *seems* to be a fairly common issue, is there any quirk I can implement to get Gnome to do this for me? I googled around but couldn't find anything. If I don't unload the USB modules first the computer wakes up from sleep immediately.

    What is it possible to use for suspend? I genuinely have no idea, it just works. From the commandline, echo mem > /sys/power/state seems to work, and in Gnome, Fn-F4 works well. I DO have pm-utils installed, so that may indeed be what it is using, so I can give it a shot, but I never configured anything in particular.
    I have hibernate-script installed and pm-utils installed, if that helps. Might be others installed if I better knew what to look for.
    Edit: Adding that /etc/pm/config.d/config seemed to do the trick, thanks! Now I just have to work out all the kinks, like how *sometimes* the screen doesn't come back and I just have a white screen instead (but sometimes it DOES *shakes head*) and that when it reactivates the USB it finds my webcam and loads it and thus automatically loads the program Cheese every time I resume suspend. Little things like that. If anyone has any suggestions, I'll take them. I'm googling it right now. But at least suspend works right now. Thanks a bunch!
    Last edited by violagirl23 (2008-06-10 01:25:49)

  • Problem with run module.fmx

    I have windows xp sp2, database 10g and developer suite 10g. I have instaled Iinitiator. In forms/preferences/runtime application server url i wrote http://marcin:8889/forms90/f90servlet. I start Forms and oc4j. In forms I connect to base scott/tiger. I make simple form and make running!! I have only in IE
    <html> <head> ORACLE FORMS.</head>
    <body onload="document.pform.submit();" >
    <form name="pform" action="http://marcin:8889/forms90/f90servlet" method="POST">
    <input type="hidden" name="form" value="C:\Documents and Settings\marcin_n\MODULE1.fmx">
    <input type="hidden" name="userid" value="SCOTT/TIGER@blumm">
    <input type="hidden" name="obr" value="yes">
    <input type="hidden" name="array" value="YES">
    </form> </body></html>
    bad work between jinitiator and IE?

    i make the simple form and take run form. next, in the IE shows these below
    <html> <head> ORACLE FORMS.</head>
    <body onload="document.pform.submit();" >
    <form name="pform" action="http://marcin:8889/forms90/f90servlet" method="POST">
    <input type="hidden" name="form" value="C:\Documents and Settings\marcin_n\MODULE1.fmx">
    <input type="hidden" name="userid" value="SCOTT/TIGER@blumm">
    <input type="hidden" name="obr" value="yes">
    <input type="hidden" name="array" value="YES">
    </form> </body></html>
    I saved my forms (and compile it) in a directory without spaces in C:\forms\MODULE1.fmx. and I show only in the IE the same.
    Problem is with what my form doesn't switch on

  • Standard users forced default "run as administrator" for acrobat.exe X pro

    The software has been reinstalled and patched CS6 all componets of CS6 run fine under a standard user account with the exception of Acrobat Pro.  Acrobat Pro runs fine when an administrator is logged in BUT when a standard user logs into the computer all application shortcuts and even direct execution of the exe insists on "running as administrator", seeing as though they are not an administrator they can not run Acrobat Pro X.  Any assistance would be grealtly appreciate.

    I'm not saying Norton is your problem, but I haven't heard good things about Norton software in a long time, unfortunately.
    I always recommend Avast! antivirus to people.  The free version is very good in itself, and they offer a more comprehensive Internet Security version as well.
    I don't know how technically-oriented you are, but if you do understand how things work fairly well and have taken measures and adopted good practices to avoid running malware, there is the possibility of just shutting off UAC (MIcrosoft User Account Control) if its operation continually gets in the way of your completing your work.  Typically, most people just get in the habit of confirming whatever prompts come up anyway, which defeats most of the protection UAC can afford.
    -Noel

  • Forced to run SpryMenuBar within a menu

    I have no idea about the make up of the application that I'm being asked to put within an iframe, I didn't create the SpryMenuBar or even know anything about this until I was forced to load classic asp pages within a .Net application that opens up iframes, I have no choice in the technology or anything so Please PLease don't ask me why I'm doing the, I can't ask my boss why if I do I die... LOL... anyway back to my problem,
    I've been given access to the classic asp code but theres over 200 menu items and most don't have this spry crap inside them so they work just fine, so I can't tell my boss to fly a kite, I need to make this work one way or my job is over.
    when I load the pages that use the SpryTabbed whatever stuff all I see is a spinning "Loading" gif. and I get this error:
      'parent.frames.I_2' is null or not an object or   'parent.frames.I_1' is null or not an object or whatever, I also wouldn't like a lecture on using iframes because I see these elements need them to function.
    what else do you need to know to help me? code? I can show you code.. Please help.
    Thanks

    Create one more stage for the same concurrent program.
    Thanks
    Nagamohan

  • Syncing forced fsck runs at system boot for all partitions

    I know how to change the interval (number of mounts) that fsck uses to force a check.  What I'd like to know is how I can get all my partitions to be in sync with each other?  In other words, my (/) partition is queued to get checked at the next boot.  /home is in queue for 2 boots, /var isn't on the list.  I'd like all three of these to be in sync'ed such that all three will get checked together.  Ideas?

    You could use the -C option in tune2fs to set the mount-count:
    tune2fs -C 0  /dev/sda1 
    Check the result with:
    dumpe2fs /dev/sda1 | more
    If you set the same mount-count and the same max-mount-counts on all volumes I guess they should be checked at the same time.

Maybe you are looking for