Too much memory & Time used during data save.

The attached code is designed to run in a system with:
  1) a 6528 isolated DIO card with a hardware watchdog AND
  2) a 6221 DAQ card.  Among other things.
The real program runs two machines, acquiring data from both and
monitoring the output comands to both.  Periodically both machines save
a data history.  Since it takes some time to format the data, machine 1
will "snapshot" its data and inform machine 2 that it has done so. 
When machine 2 gets to a point in its operation where it can tolerate a
long interruption, it signals the "data manager" that it's safe to save
the snapshot to disk.  At that time, the watchdog is reset to allow a
much longer timeout, the waveform data is appended, the command data
interleaved, and the whole batch saved.  After that, the data monitors
are reinitialized and the watchdog set to a normal interval.  If
necessary, the DAQ resets as well.
Interleaving the data is required because the DAQ runs at 200Hz and the commands are updated at ~50Hz (nominally).
If you don't have the cards in your system, this test has been designed
to run with a simulator.  The data isn't pretty because most of the
control system isn't here, but it works.
The problem is that sucessive data saves tend to take longer and
longer.  Sometimes the OS (W2k) complains it's out of memory and shuts
LabVIEW down.  I think there's a memory leak somewhere, but it's not
consistent.  It also seems to work differently on WxP.  WxP complains
about increasing the page size of virtual memory.  Troubleshooting so
far shows most of the time is being used in state "Format WF".  In the
real system, without simulating, the operation can take from 4-5
seconds to over 2 minutes.  The ERA section seems to have more trouble
than HA, although state "Format WF" is the same for both.
Anyone care to comment?

Test Data Save 1.vi
I saved the ZIP file to preserve the folder structure.
I think you will also need the attached text file in the same folder as BCU Sim Config 8.vi
This post is now mostly of academic interest.  I've solved, or at least worked around the problem by saving 4 data files fo "ER" and 3 for "HA."  I will write another VI to join the files later.  The newer VIs still take 3-5 mS to run (accumulate), which is marginal for the application.  I don't see how they can be made faster though.  The cycle rate could probably be lowered, and the data rate taken to 100Hz, but I'm fighting response time and some noise filtering issues too.  Higher sample / cycle rates help.
I've got a test program that will run all weekend trying to fill up a hard drive.  If it survives then I'll call it good to install in the real program.
Attachments:
HA History (no ARINC) to File 3.vi ‏179 KB
BCU_Sim_Init.txt ‏3 KB
ERA History (no ARINC) to File 7.vi ‏222 KB

Similar Messages

  • My I-phone 4 is using too much memory storage.  Data

    My I-Phone 4 is using too much memory.  It shows Apps at 1.44 and Data & Documents at 1.68, not to mention "other" using up more memory.  I have tried eliminating apps but nothing changes.  How does one get rid of some of this "stuff" that is using up so much memory??

    http://osxdaily.com/2013/07/24/remove-other-data-storage-iphone-ipad/

  • Every time I load my igoogle home page opening firefox, it opens it in two tabs instead of one, and then AVG tells me firefox is using too much memory and I should close and reopen it; Why

    I open firefox using my igoogle home page and immediately it opens two igoogle tabs on top instead of just one how do I stop it from opening the second one? and then after about two minutes AVG tells me firefox is using too much memory slowing my machine and tells me to close and reopen fire fox...how do I fix that?

    Make sure that Firefox closes properly and that that there are no longer Firefox or plugin-container processes left on the Processes tab in the Task Manager. Otherwise session restore will reopen the page(s) from the previous session.
    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • Firefox uses too much memory

    I've been using Firefox as the default browser on my systems (both Windows and Linux and in 32 or 64 editions) and for some reason Firefox consumes too much memory. Now trust me. I have a very fast machine and so I get very frustrated with this issue as it seems to be a Firefox only issue. Its true that I might have up to 40 tabs open at times but Chrome can handle it Safari can handle it and even Explorer can handle it. Sometimes Firefox's memory consumption peaks to an astonish 3GB of memory which is unheard of. My machine is so fast that I can have up to 10 programs open (Maya, Photoshop, Cinema 4d, Autodesk Suites MySql server and PHP5, MS Office) and still be able to work with them all at the same time, but Firefox crashes suddenly and that is very annoying as I've customized it to my needs adding extensions and making sure all my online baking is done using Firefox. This memory issue is far more noticeable when I'm using Windows 7 64 bits. The same amount of tabs and extensions opened on Linux have no effect on memory and I often switch to Linux just to be able to enjoy a smooth Firefox browsing experience. I've invested so much money into building an amazing machine and it takes 10 minutes of having Firefox running to crash it all completely. I've lost track of the amount of times I've lost my profile and had to rebuild all my customizations but I can stand that. What is beyond my comprehension is the fact that when I'm using Windows XP or Linux the memory used by Firefox is far lower than when I'm using Windows 7 or 8.1 .
    Can you help me out? I really love Firefox and would like to keep using it as my default browser but can't afford losing my profile info every time Firefox crashes or having Windows Explorer crashing and losing all the work I'm doing on other software programs.
    Much appreciated;
    Sam

    Are there any tabs reopened from the previous session when this happens?
    Do you keep a large history?
    You can check for problems with the places.sqlite database file in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can try to check and repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/
    Try to create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    You can also try to reset Firefox:
    *https://support.mozilla.org/kb/Basic+Troubleshooting

  • Firefox using too much memory after an update

    Since I updated to firefox 14, it started using WAY too much memory, which is 2GB+. This has never happened to me, and none of the solutions on the website have helped me. It starts off normally at about 80 MBs and then starts growing and growing. I have to restart firefox about twice an hour or more.

    I also recently downgraded my flash player to a recommended version on this website since the latest version crashes too much, that was about the time when I updated firefox, not sure if that might be why this is happening
    EDIT: Updated to latest version of flash again. Memory usage is still high

  • Why does Firefox keep telling me that it is using too much memory, (eg: 235MB) and I should restart Firefox?

    Lately Firefox has been popping up a warning while I am on the internet saying, that "Firefox" is using too much memory. It suggests shutting down Firefox and restarting Firefox. It also told me how much memory that is in use at that time. It is usually about 235MB or more. What is normal memory use for Firefox to use while I am on the internet? Does high usage mean that some other person is trying to get into my computer?

    You appear to have AVG installed:
    *See --> http://forums.avg.com/ww-en/avg-forums?sec=thread&act=show&id=173969#post_173969
    From reading on the internet, it appears that when there is a spike in memory usage, AVG "interprets" that as a memory leak, possibly caused by malware. AVG could be incorrect concerning that assumption. Maybe they are being a bit too conservative about memory usage; just my opinion.
    The decision is yours to turn off the "advisor" or leave it on.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Avg tells me firefox is using too much memory,close and restart

    avg pops up and tells me firefox is using too much memory.close firefox and restart it.page gets slow when this happens

    Now using Firefox 7 I'll give it some time and let you know the results Thanks Jack

  • FPGA code using too much memory? getting error 52000

    Hi all,
       I'm having trouble getting some FPGA code to run. What I am trying to do with the program is acquire data using DAQmx from two fgen's, and then use an FPGA based lock-in amplifier to find the frequency of these signals and their phase difference (It's actually only a slight modification of a lock-in amplifier available on the NI site). I keep getting error 52000 when I start up the program, indicating I'm using up too much memory somewhere. I don't know why this is, as even the lowest sampling rates I give to the DAQ do not keep this problem from happening. Could someone look at my code to see whats going on?
    Thanks,
          Grant
    Attachments:
    LIA_SSTL.lvproj ‏90 KB

    I am using a PXI-7852R card in a PXI-1033 chassis, all connected to my comp through a PCI bridge. I'm also using a PXI-6115 data acquisition card, which is feeding data to the FPGA.
    Sorry for not attaching the VI's, I thought they were contained within the llb. Here they are.
    Thanks,
         Grant
    Attachments:
    LIA_FPGA.vi ‏285 KB
    LIA_Host.vi ‏2346 KB

  • AVG says using too much memory because multiple firefox's are open but I only see one.

    AVG scans regularly in background. Lately it has been showing a popup window that says multiple applications of Firefox are running and using too much memory so I should close some. But, I only can see 1. Tried CTRL ALT DEL to see if I could find answer, but only showed 1 firefox, and it was using over 28,000. So I think AVG is correct, but can't find out how to see what or where they are. They DO NOT show on the lower menu of the main screen, so I assume they are in the background. Don't have viruses, and Firefox regularly updates itself. What should I do to fix?

    Hi cmich80220-
    It's true you should only be able to run one instance of Firefox at a time. I searched but was unable to find anyone else with a similar issue. If the problem gets back to Firefox running slowly, you might check out this article for troubleshooting:
    [Firefox is slow]]
    Hope that helps.

  • Can I Delete The "SNAPSHOT" In My MacBook Air ? Those thing use too much memory on my MacBook.

    I need delete it the SNAPSHOT from my mac Because they use too much memory in my mac.

    Disable Time Machine Local Backup Storage
    Here’s how to turn off local backups:
    Launch Terminal from /Applications/Utilities
    Enter the following command:
    sudo tmutil disablelocal
    Enter the admin password when requested to disable local backups
    you can also use "google translate" to translate this to your native language if you are having any problems understanding any of the words

  • Firefox uses too much memory, gets bloated, and won't respond.

    For the past several versions of FF....I have posted here about it's 'behavior' under OS X.
    The browser uses too much memory. After a short period of time, it becomes 'bloated', slow to respond, and requiring a 'force quit' to get out of it.
    Being as I've posted about this before, for a previous version, and only received feedback from other Mac users experiencing the same thing, and not getting answers or help...I've stopped using it once more. It was a one day trial, and I didn't make it past 6 hours of use.
    Welcome back, Safari!!!

    For the past several versions of FF....I have posted here about it's 'behavior' under OS X.
    The browser uses too much memory. After a short period of time, it becomes 'bloated', slow to respond, and requiring a 'force quit' to get out of it.
    Being as I've posted about this before, for a previous version, and only received feedback from other Mac users experiencing the same thing, and not getting answers or help...I've stopped using it once more. It was a one day trial, and I didn't make it past 6 hours of use.
    Welcome back, Safari!!!

  • Apple mobile device service uses too much cpu time

    Apple mobile device service uses too much cpu time, from 88% to 99% of the CPU time.

    The best way to fix this is to completely remove all aspects of iTunes then reinstall. Step by step directions are on this article. Good luck
    http://support.apple.com/kb/HT1925?viewlocale=en_US

  • OIM 11g using too much memory and not releasing it when shutting down

    Hello,
    we have a problem with OIM 11g using too much memory (about 5gb) and it's not releasing it at shutdown (4gb still used).
    We are using a VM with RedHat Linux 5.6. Originally we had 4gb RAM + 2gb swap file. We installed Admin Server, OAM, OIM and SOA on that machine but quickly realised we couldn't run all 4 programs at once in 6gb. AdminServer could run with 2 other products, but it was a tight fit in memory.
    So we increased the RAM to 8gb (still 2gb swap file). But then our problem occured : I start the Admin Server (2.7gb total memory used), then OAM (4.6gb total memory used) and then OIM. After it started the server is now using 9.6gb of memory (~300mb of free memory) ! The problem gets even better : after I shut down everything (OIM, OAM, admin server) the "top" command show that there is still 4gb of memory used even tho nothing else is running on the server ! There is absolutely no other process (other than root stuff) running and no other users connected to the machine. After a reboot, it shows 400mb of memory used. I tried restarting the programs and it did the same thing.
    Our intuition is that there might be a memory leak or some bug in OIM that might use up almost all the free memory and it's not releasing it upon shutdown. It might have been there before we increased the memory but have not noticed it since memory was already tight.
    Anyone encountered the same problem ? Any idea ? Any suggestion to narrow down the problem ?
    Thank you

    You can adjust the memory settings for WLS by editing the setSOADomainEnv.sh file that can be found in your /middleware/user_projects/domains/<domain>/bin/ folder. There is an argument called PORT_MEM_ARGS which is used to set your Java memory arguments. This way you can decrease/increase the amount of memory used by each managed server.
    I usually type "ps -ef | grep oracle" to see what processes are running by the oracle user. This way the output doesn't get cluttered with root processes.
    Sunny Tsang

  • Installed ghc uses too much memory?

    Hello!  My first time in the forums!  I was installing haskell-platform via yaourt and I was surprised to see just how much memory ghc uses once installed in comparison to the download size... should I be concerned?
    Thanks!
    Here is some of the output.
    ==> Continue building haskell-platform ? [Y/n]
    ==> ------------------------------------------
    ==>
    ==> Building and installing package
    ==> Install or build missing dependencies for haskell-platform:
    resolving dependencies...
    looking for conflicting packages...
    Packages (1) ghc-7.8.3-2
    Total Download Size:    62.17 MiB
    Total Installed Size:  787.85 MiB
    :: Proceed with installation? [Y/n]
    :: Retrieving packages ...

    Trilby wrote:No the installed size is the package size.  It is compressed for download.  Would you prefer that packages were not compressed and took longer to download?
    OK.  I didn't think that it was reasonable that the package could be compressed to a tenth of its original size.  That is what concerned me.  I was wondering how there could be such a large difference between the two.  But after opening the package it is clear that it really is compressed to a tenth of its size.
    I know the packages are compressed.

  • IconServicesAgent uses too much memory lately

    Hello. I am using Mavericks for 2.5 months and I think com.apple.IconServicesAgent uses too much memory lately. I tried to uninstall TotalFinder but did not help.
    My Task Manager : http://i.imgur.com/QPJcDiz.png
    My Login Items are : http://i.imgur.com/XikROsh.png
    And all of my installed apps : http://i.imgur.com/ode6bZ8.png

    So nobody knows?

Maybe you are looking for