MVCC, freezer files and cache overflow

Hi,
I had an idea. The docs say: "If the cache becomes full of page copies before the old copies can be discarded, additional I/O will occur as pages are written to temporary "freezer" files. This can substantially reduce throughput, and should be avoided if possible by configuring a large cache and keeping snapshot isolation transactions short."
How about allocating a new cache file (of the same size as the original) in the env instead of creating hundreds (or more) freezer files when the cache is overflowing ? One can have multiple cache files already by specifying the cache in multiple segments. What's particularly irksome about these freezer files is that they stick around, even past checkpoints and restarts.
Could this work ?
Andi..

Hi Michael,
What you just said makes a lot of sense. DB_READ_UNCOMMITTED and snapshot isolation don't make much sense used together. Using DB_READ_UNCOMMITTED everywhere, I should not be having many deadlocks or blockages. But, until now, I was getting lots of them unless I was using MVCC. The reason is that I found several places where I wasn't using the DB_READ_UNCOMMITTED bit with getting cursors or getting data. As a matter of fact, because of an egregious bug of mine not propagating the DB_READ_UNCOMMITTED bit properly, many data accesses were still wrongly using the default - maximum - isolation level.
To find these places, I set an artificially low txn timeout and traced back to the bogus calls from the DB_LOCK_DEADLOCK exceptions I'd receive. I believe I found them all now. :)
Reading data that is not yet committed is not a problem for us except in one specific case. DB_READ_UNCOMMITTED should be completely safe as the Chandler repository is, in a way, duplicating in a persistent way what MVCC also does, that is, keeping multiple versions of data around and presenting multiple versions of data to different transactions.
The only place where a higher isolation level is needed - DB_READ_COMMITTED - is in the small database containing the latest version number for the Chandler repository. Using DB_READ_UNCOMMITTED everywhere except in this version db and opening this and this database only with DB_MULTIVERSION solves all the problems I was trying to solve with using MVCC everywhere earlier. Because most transactions I create span multiple databases, I am still opening all read-only transactions with DB_TXN_SNAPSHOT but it should only have an effect when accessing this one lone db opened with DB_MULTIVERSION, correct ?
This is a major breakthrough for me. Commit throughput in a large mail import operation (done in chunks) is now three times what it was before.
It is also much harder, but however still possible, to get freezer files, with the usual dramatic worsening of performance. Maybe 64mb cache is too small. I'm going to double that and watch it over time. Even though the 'version' db is tiny, it is a btree with one record per version plus two records that are being updated every time a new version is written, I still managed to get, over time, up to two thousand freezer files.
This has been a productive exercise as I had very wrongly assumed that I was using DB_READ_UNCOMMITTED consistently already.
Regards,
Andi..

Similar Messages

  • How to Delete Temp files and Cache on MBP 15" Late 2011

    Hi,
    Off late i am experiencing a lag in my mac and it runs bit slowly. Wanted to get a clear picture on how to clear the unwanted temp files and cache to make my mac run smoothly. Any other suggestions to make it run fast are welcome and would be of great help.
    Regards,

    The assumption that unwanted temp files and cache are causing poor performance is unjustified. OS X does not maintain unwanted cache files. They exist to increase performance and are updated or deleted as necessary. So are temporary files. Certain font cache files are moved to the Trash during Safe Boot: OS X: What is Safe Boot, Safe Mode? - Apple Support. Do not use any other utility.
    If your Mac is running slowly, determine if the same symptoms occur in Safe Mode.
    Back up your Mac if you have not done so already. To learn how to use Time Machine read Mac Basics: Time Machine backs up your Mac - Apple Support.

  • Essbase temp files and cache files

    Hi All,
    where essbase creates its temp files and cache files so that i can delete them.What is the path.
    Regards,
    Mink

    The DBAG lists the files (and types) used for various reasons. Some can be deleted, others should be left there for recovery attempts when the database is started up. If your database won't start, the temporary files that can be safely deleted are also covered, although this part might be somewhere else in the technical reference.
    There are also some backup files that could play a role, for instance, if the db file is the reason a database won't start, the backup file (dbb) can be used to replace it. For this reason, I don't recommend you just blindly delete all "unneeded" files if you are having a problem.
    If you are referring to temp files like what the OS uses, I don't believe essbase uses any of the "%temp%\randomname.tmp" variety. I could be wrong on this, but it keeps file usage fairly straightforward, with server files in the database folder and client files in the %arborpath%\essbase\client folder. Client files can indeed be deleted if you don't have anything open, but they are rarely orphaned so you shouldn't see enough to cause performance degradation.
    Hope this helps, between the perceived contexts and other potential intentions, there are other answers that may be more appropriate.

  • Is it possible to configure the size of MVCC freezer files?

    Sometimes we run a large update transaction and 1000's of freezer files are created. I realize increasing the cache size will reduce the need for the freezer files, but I'm just wondering if it is possible configure the freezer files to be larger than the apparent 8KB (is that what the .8K suffix stands for?) file size... to reduce the number of freezer files that are created?

    Matt (right?),
    The freezer files represent pages. The default page size in BDB XML is 8k for node storage containers, and 16k for wholedoc containers. Being able to put multiple pages in a single file when this happens seems (to me) to be a good idea for file systems that don't handle lots of files in a single directory very well. I don't know if that will ever be implemented, but it's a good thought. I think the assumption for the implementation is that this is a rare event rather than the norm.
    Regards,
    George

  • Reading a file and caching in web service before a web method is called

    Hi All,
    I developed a webservice with some web methods. I need to validate the licencing for those web methods. And my licensing details will be available in a file. Instead of reading the licencing file for every web method invocation I want the licensing file should be read only once and those details should be cached. So that for every method invocation I will use the cached licensing details. I am using Axis 1.0. How can I achieve this functionality. Please help me in solving this problem.
    Thanks in Advance,
    Naresh

    The program needs to read a text file.
    I made sure that the text does not have space between the lines.
    I wanted to have a String object with all the data (lines).
    So I used a StringBuffer (append) to collect all the data lines.
    I wanted to read each line of the file and assign them to my StringBuffer, using the built-in nextLine() method of the Scanner class and using the for loop.
    I already tried printing out each line as I read it (using the code below). Even though the program showed each line like it should, it still said "java.util.NoSuchElementException: No line found" at the end.
    //read a line of characters of the file
    line = file.nextLine();
    while (line != null) { //file is terminated by a null
         System.out.println(line);
         sb.append(line);
         line = file.nextLine();
    }

  • Freeze Files and Memory

    Is there a way to auto delete freeze files when you save a project. I mean sure you'll have to refreeze them when you load again but, I've got all these projects with freeze files just eating up my disk space.

    i had the same problem for a long time until i slapped myself on the forhead and figured out that i should be bouncing tracks instead of freezing all of them. i arrange all my instruments into one folder. drums/percussion get a folder, etc....i have a powerbook with 2g RAM and i am working with 25 tracks per song. i kept clipping on my memory capacity, even with freezing all the tracks. so, i started bouncing maybe 2 or 3 tracks instead of 10+ tracks. then i would have the room to work on the drums/percussion while i solo the instruments bounced track.
    when you look at your file sizes, you'll get them down below 500mb vs several gig with too many frozen files.
    have fun

  • Including Files and Caching

    I currently have a small web site (running on Apache Tomcat 4.0) that implements jsp:include a lot on every page. This was done so that I could change a single JSP file and that "component" would be changed all throughout the site. (Which is basically the point of having jsp:include !!)
    My problem is that if I change the included file and refresh a JSP page that uses it, the browser shows that the change was made. But if I then move to any other page, the same old version of the included file is still being shown. (Am I making any sense here?)
    The only way I can get all of the JSP files that use the include file to get the NEW version of the include file is to either:
    (1) make a change to each individual JSP file so that it forces the webserver to recompile the JSP page using the new JSP include file or
    (2) shutdown the webserver and restart it
    I'm sure there has got to be a better way of doing this. Any suggestions?

    I've had the same problem and unfortunately there is no way around it :(
    what i'm doing now is calling one single index.jsp page where i keep all my includes and so instead of having to go to a brand new page I just have a switch statement that calls the page depending on the parameter you pass on the query string
    index.html?page=editTools
    I also have a hash table that maps the strings to an integer..
         case 1:{
              %>
         <%@ include file="includes/admin_editTools.jsp" %>
         <%
         break;
    this way whenever you make a change to one of your includes you only have to reload one
    page index.jsp. It works great!
    Chris

  • JavaScript-File and Caching

    Hi all,
    i use version 3.1.0.00.32 an have a problem/question.
    I save a javascript-file in SharedComponents and put a reference to this file in a Page (Header-Text of page attributes, <script src="#WORKSPACE_IMAGES#tooltip.js"></script>. This works fine. I can use the javascript-function in this file from "HTML Form Element Attributes".
    Now, i delete this javascript-file from SharedComponents. I think, the javascript-function-call in "HTML Form Elements Attributes" are doesnt working. But it works, without javascript-file. The cache on my apache-server is disabled, the browsercache is cleared. I dont know, why does working...
    best regards
    Carsten

    Did you try changing the filename and the reference in the page template? Then u can be sure nothing is cached. This applies for both the javascript and the css.
    A general recommendation in this case is <b>not</b> to save files in your shared components, but on the file system instead. This makes its lots easier during development to make fast changes. So just save your files in the /i/ folder (and sub folder) and reference it by #IMAGE_PREFIX# (and sub folder).
    Cheers,
    Jacob
    Message was edited by:
    Jacob_B

  • I used Computer Associates ver.7.0.0.117 to clear temp files and cache. Firefox won't open a window since though it shows in processes.

    System: Toshiba Portege M750, Vista 32-bit SP2,4GB RAM
    I've been using Firefox up until last night when I shut down. This morning I did a cache cleaning using CA Internet Security Suite, ver 7.0.0.117. Firefox will not open a window, though it does show in the Processes list of Task Manager.
    I've uninstalled and reinstalled ver 6 from the web twice with the same results.
    Firefox has had a tendency to hang (never finding a new website, i.e. busy icon revolves endlessly) when left open over several hybernation cycles.

    <u>'''Kill Application'''</u>
    In Task Manager, does '''firefox.exe''' show in the <u>'''Processes'''</u> tab?
    See: '''[http://kb.mozillazine.org/Kill_application Kill Application]'''
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    '''[[Firefox hangs]]'''
    '''[http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit (Mozillazine article)]'''
    '''[[Firefox is already running but is not responding]]'''
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox SafeMode is a diagnostic mode that disables extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes before starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your extensions and then try to find which is causing it by enabling one at a time until the problem reappears. You have to close and restart Firefox after each change via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • Jnlp fies and caching

    I am a newbie to jnlp files and the related infrastructure. I have a question about jnlp files and caching. My scenario is the following, i have 2 machines with the same jnlp file names, the data inside of them is different. So when I connect to machine1, the data corresponds to the correct machine. When I connect to machine2, I still get the version for machine1. Where is this data cached? and how do i force a "refresh" or a new download of the jnlp file?
    TIA,
    Reza

    The identity of a jnlp app is the complete href (including codebase) of the jnlp file (if there is one, or the complete href of the main jar if there is no href to the jnlp file.)
    Because of this, regardless of the "title" of the application, two instances of the same application hosted on differant hosts (or in differant locations of the same host) are treated as two differant applications.
    (RFE's exist to be able to provide a unique id to all resources, including jnlp file references, so the application or it's resources can be mirrored or moved from location to location)
    On the other hand, shortcuts are created based on their "title" element, so switching to the same named application on a differant location should replace the shortcut with thte one based on that jnlp file.
    From your question, it's a litle unclear what you are doing. When you "connect to machine2", exactly what are you doing ? , and waht version of javaws are you using ?
    /Andy

  • Deleting temporary and cache directories in weblogic

    I have installed weblogic 10.3.6 server on my Linux nox, I have deployed some applications on my Managed Server. I want to delete logs, temporary files and cache files that weblogic creates before I re-start my server.
    I see below directories in my Admin Server:
    path: user_projects/domains/my_domain/servers/AdminServer
    cache
    sysman
    adr
    data
    logs
    tmp
    and below for my Managed Server:
    path: user_projects/domains/my_domain/servers/MyManagedServer
    cache
    data
    logs
    stage
    tmp
    In above list what all directories I can delete?

    On AdminServer I recomend you to delete only tmp, logs and cache.
    On any managed server you can delete any sub directory. No restrictions. It will be recreated as soon as you start it again.
    Recomend you also to delete diretories only with the respective jvm shutdown.
    Kinds,
    Gabriel Abelha

  • I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continues to blink on and off. I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated

    I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continue to blink on and off.
    I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated.

    are you backing up files, or doing a Time machine backup, either way, the Time machine will STOP when finished and show "last backup at XXXXXX"  meaning its done...... OR if when transferring files, it will show a progress bar on your desktop and vanish when files are copied.
    Open up the Hitachi drive (your G drive is made by Hitachi, and the best made by the way).....and see if the files are there.
    a MORE VISUAL way is to open the hard drive file, and drag and drop files INTO the Gdrive and you can see them visually be copied there as you do it.
    To see your HD on your desktop GOTO  FINDER......PREFERENCES....then GENERAL TAB.........check the box marked HARD DRIVES.........then your Gdrive will appear on your desktop........open it from there,  and DRAG and drop files from anywhere INTO the Gdrive....... easy visual way to see the files being copied into the Gdrive.

  • Applet Plug-in and Caching GIF files

    In the Plug-in 1.4 release notes, it says that the Plug-in will cache GIF files and other non-JAR files. Are there instructions or documentation how to get the Plug-in to cache files other than JAR files? I couldn't find anything when perusing the 1.4 documentation.
    Thanks for any insight you can provide!

    The document you point to explains caching JAR files in 1.3. Can I also cahce GIF files the same way? Does the plug-in caching mechanism work with any file type? If I cache a GIF file, how to I reference that in my code so the Applet uses the cached version instead of the one on the server, or does it implicitly know this?
    Thanks for any insight.

  • Why does reader freeze while opening some pdf files and others open instantaneously?

    I use pdf files created from CamScanner and shared from DropBox.  In DropBox, many times (over 50%) while opening the PDF the process freezes and the error message is Adobe Reader is not responding.  If you close the program, and re-open the file, it opens fine.  I have saved these files to my computer and the same issue occurs.  The files are 100-500kb, so I do not think size is the issue.  I have reinstalled Reader (11.1.10) and there is no improvement.

    This appears to have reduced the time to load a document.  Thanks Jimb      From: Anubha Goel <[email protected]>
    To: jimb70395944 <[email protected]>
    Sent: Friday, March 20, 2015 4:37 AM
    Subject: You have been mentioned by Anubha Goel in Re: why does reader freeze while opening some pdf files and others open instantaneously? in Adobe Community
    |
    You have been mentioned
    by Anubha Goel in Re: why does reader freeze while opening some pdf files and others open instantaneously? in Adobe Community - View Anubha Goel's reference to you  Hey jimb70395944, Please try disabling protected mode under 'Edit> Preferences> Security (Enhanced)' and uncheck 'Enable Enhanced Security' option.Then, try again and let me know.  Regards,Anubha
    Participate in the conversation by replying to this email
    To stop receiving these messages whenever you are mentioned, go to your preferences and disable notifications for direct social actions. |

  • .desktop files and mimeinfo.cache... Why?

    It just struck me as I read about mailcap that .desktop files and the mime info cache are redundant. And mailcap is much simpler too, and seems to require less mucking around to e.g. open a file in a console app running in an xterm. For instance
    audio/mpeg; mplayer %s; needsterminal
    Bang, done.
    So can someone tell me why the FD.O system with .desktop files is now the standard? Is it just that it makes it easier to create menus, or something like that? Is it a more friendly backend for GUIs? Other than letting you easily launch applications from your file manager, it doesn't seem to offer a whole lot of benefits...
    Edit: Other than the fact that the default /etc/mailcap file for some distros kind of sucks. Using VLC's ASCII output by default? Seriously?
    Last edited by Gullible Jones (2010-12-13 05:12:25)

    It's more automated, you have to make the mailcap file yourself to get specific preferences - people don't like editing config files.
    Distros could ship a standard one, but then it's not based on what apps you have installed or what you want to use to open things.
    GUIs would have to all implement some way to edit the mailcap file so you could change default apps easily and you would have to have the package manager edit it when you install stuff - I don't think that would be pretty
    I guess you could use a bunch of tests and include every application that could open the file, but that's not so pretty either.
    Last edited by thestinger (2010-12-13 05:18:09)

Maybe you are looking for

  • Take text from a cell and add it to a new cell

    Here's what I'm trying to do.  I have a report that's automatically created in 2 columns.  Item and Price.  I have no way of changing how this report is made, which is why i need Numbers to help me out.  In the item column, part of the text includes

  • How to stop the Company Code popup window in MIRO!

    Hi, When User logs in the system and enters into the MIRO transaction, he is asked to enter the Company Code first in order to proceed further. I know that once you enter the company code then the system does not ask it to enter again during that log

  • Java and oracle variable type

    I write a oracle procedure like this: Type retstring is Record a varchar2(6), b varchar(10) type retstr is table of retstring index by BINARY_INTEGER; procedure getStr( ret out retstr )is begin loop ret(i).a := a1; ret(i).b := b1; end loop; end; I wa

  • Import XSD from BAPI structure

    Hi all, I have a problem when export XSD scchema from BAPI structure and use this schema to create a data type using import XSD schema. The error is following displayed: Schema to be handled does not contain a definition of type BAPI_SALESORDER_CREAT

  • Cancelling my podcast subscriptions

    This past week all the podcasts I subscribe to disappeared from my library (oddly, the podcasts I don't subscribe to were unaffected). I did my best to rebuild and redownloaded the missing shows (the ones that were still available anyway) and today t