Does cleaning sort records and impact on max log size

I'm looking for confirmation that the act of cleaning logs produces sorted records, equivalent to having inserted them in sorted order to begin with. If that is the case is the memory overhead of cleaning proportional to the maximum log file size, or will it spill to disk to sort? I ask since the max log file size is 1G, and if there is a memory component then it may be relevant to take into consideration.
On a similar note, is increasing the log file size from 10MB recommended if the database is large (say a TB)? Are there some linear operations (most likely in the admin/maintenance category) that have to iterate over each log file?
Thanks.

Hi,
I'm looking for confirmation that the act of cleaning logs produces sorted records, equivalent to having inserted them in sorted order to begin with.No, that's not exactly true. When records are written (migrated to the end of the log) during the log cleaning process, any clustering (writing of adjacent records in key order) occurs on a per BIN (bottom internal node) basis. So at most 128 records (or DatabaseConfig.setNodeMaxEntries) with adjacent key values are sorted and written out together in this manner. But normally not all records in a BIN will be migrated and I'll describe more about this below.
If that is the case is the memory overhead of cleaning proportional to the maximum log file size, or will it spill to disk to sort? I ask since the max log file size is 1G, and if there is a memory component then it may be relevant to take into consideration.No, the memory used for sorting in this case is the JE cache itself -- the memory that holds the Btree. The log cleaner thread moves records to be migrated into the Btree (in the cache), and flags them for migration. These records are written lazily the next time their parent Btree node (the BIN I mentioned) needs to be flushed. This can occur for two reasons: 1) when the BIN is evicted from the cache because the cache is full, or 2) during the next checkpoint, since a checkpoint will flush all dirty BINs. The most desirable situation is that the BIN is flushed during the checkpoint, not during eviction, to reduce the number of times that a single BIN is flushed to disk. If a BIN is evicted, it may have to be fetched again later in order to migrate more records as part of the log cleaning process, and this is counterproductive.
So during this process, the number of records that are written to disk in key order in a cluster, such that they are physically adjacent on disk, is variable. It depends on how many records are processed by cleaner threads, and inserted in their parent BIN for migration, between checkpoint intervals, and whether the BINs are evicted during this period.
A physical cluster of records includes the BIN itself as well as its child records that are migrated for log cleaning. The fact that the BIN is part of the cluster is beneficial to apps where not all BINs fit in the cache. If a record and its parent BIN are not in cache, and the app reads that record, the BIN and the record must both be fetched from disk. Since they will be in physical proximity to each other on disk, disk head movement is avoided or reduced.
However, not all of the child records in a BIN will necessarily be part of a physical cluster. If only some of the records in a BIN were processed by the log cleaner before the BIN is flushed by the checkpointer or evictor, then only a subset of the child records will be written as part of the cluster. In other words, even for a single BIN, all the child records in that BIN are not normally written out together in a cluster.
Clustering is a useful feature and something we would like to enhance in the future. What I've described above is as far as we've gotten with this feature in the currently released and supported product. However, there are two experimental configuration settings that cause additional clustering to occur. These cause additional records to be written to disk when their parent BIN is flushed. If you're interested in trying these, I will be happy to explain them and work with you. But you should be aware that they're not currently in the standard, supported set of features, and are not well tested.
I'm not sure whether I've given you less information than you need or more than you wanted. :-) If you describe in detail what you're trying to do, and more about your app and performance requirements, I may be able to offer more concrete advice.
On a similar note, is increasing the log file size from 10MB recommended if the database is large (say a TB)? Are there some linear operations (most likely in the admin/maintenance category) that have to iterate over each log file?Yes, there are such operations and per-log file overhead, and we recommend using using a 20M to 50M log file size for large data sets. Log files larger than 50MB could decrease log cleaner performance.
--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Update after max heap size change in jnlp file

    Hi,
    we added max-heap-size="256M" to an already via Web Start deployed application (meaning all required clients are using the application already). This attribute was the only change to the jnlp file, the application (the jar file) didn't change as well. Do clients notice this change and resize their max heap size? If not, would an application update (a new jar file) change that and the clients would update their heap size settings? Or is their any other way without uninstalling and installing the application again to notify the clients about this change?
    Thanks a lot! dos

    yes - a modified jnlp file (assuming the jnlp element has an href) will be downloaded the next time each of the clients use the application.
    /Andy
    If there is no href to the jnlp element in the jnlp file, the change will only be picked up by people who launch the app from a link on the web (as opposed to a shortcut)
    /Andy

  • I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Does this sort of software exist?

    I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Imagine a spreadsheet - each time a write something in a cell and press enter to go into the next cell, I need the app/software to automatically insert the corresponding dat and time. Does this sort of software exist?

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • Replication - Max Changelog Records and Age

    hi,
    could anyone explain when setting the Max Changelog Records and Changelog Age paramters for the chnagelogs, what exactly happens when these thresholds are reached?
    does the log get trimmed/deleted when it's max entries or age is reached and a new one established?
    are there any guidelines on how to set these given the number of changes happening to the directory?
    does a large number of allowed changelog entries have an impact on performance? depending on how it scans the changelog file to determine updates to replicate?
    Thanks

    At first there is no performance impact directly related to the changelog age and size limitation parameters.
    The problem seems to appear when one of these limits are reached. The changelog DB starts to be trimmed (you can see it by enabling "replication" log level) and slapd proccess can consume up to 25% CPU (on a 440 with 4 CPUs) and intensive disk usage.

  • In Primavera Risk Analysis, the MIN. ML, MAX columns is for imput the minimum impact, most likely impact , maximum impact duration of a risk or the remaining duration for MIN, ML and adding remaining duration with maximum impact for MAX?

    In Primavera Risk Analysis, the MIN. ML, MAX columns is for imput the minimum impact, most likely impact , maximum impact duration of a risk or the remaining duration for MIN, ML and adding remaining duration with maximum impact for MAX?

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • When recording a slideshow, why does audio stop recording after about 30 seconds even though slides and presentation continues?

    I'm doing everything the same and have made many successful slideshow recordings using Keynote, but since updating the Yosemite and then updating Keynote the audio just stops recording after about 30 seconds.
    The slides keep on changing and recording the video, but after 30 seconds the audio stops recording even though it seems to be registering the sound and the mic is not muted in Keynote.
    Is there some change or new setting I am not aware of that needs to be altered?
    Any advice would be helpful as I need to record a lot of presentations.
    OS X Yosemite version 10.10
    Keynote version 6.5
    MacBook Pro (Retina, 15-inch, Late 2013)
    2.6 GHz Intel Core i7
    16 GB 1600 MHz DDR3
    Intel Iris Pro 1536 MB

    I can't imagine this will work as the the application is tied into a specific computer and user ID to prevent unauthorised use of single use applications. Copying over has not worked with previous versions of Keynote.
    It worked for me. I guess it could be because we bought our Macs together and have home sharing or something. Either way, I'm running Yosemite but with Keynote 6.2.2. and not updating again until Apple do something about this bug.

  • I was just taking a picture on my iPhone 5 when I noticed a purple dot in every picture I took I cleaned the lens and turned my phone off but it's still there . It's annoying ! Does anyone else have this problem ?

    I was just taking a picture on my iPhone 5 when I noticed a purple dot in every picture I took I cleaned the lens and turned my phone off but it's still there . It's annoying ! Does anyone else have this problem ?

    Dayanafromca wrote:
    ! Does anyone else have this problem ?
    http://www.google.com/search?client=safari&rls=en&q=iphone+5+purple+flare&ie=UTF -8&oe=UTF-8

  • Help! I only hear clean electric guitar while recording, and amp/effects after recording!

    I have my electric guitar plugged into an Apogee Duet (driver is up to date with Yosemite).  After track is setup with effects, in an audio track or in a guitar preset track (I tried both), I can play and hear the guitar clean tones only without the effects I have put on the track, even though I have chosen guitar effects, like amp, pedals, etc...  Only after recording during playback, not pre, can i hear the effects I have chosen.  Why is this?  So pre recording and during recording, a clean tone.  Play back the track, it's all there with the amp and sounds I have chosen.  Frustrated.

    Excuse this short reply, rehearsal in 30 minutes.
    It sounds like you need to first turn off the Direct monitoring of the Interface. Most audio interfaces have a "direct no-latency" monitoring that actually takes place before the audio even goes to Logic, it's done within the interface. Different companies have different names for it, low-latency monitoring, direct monitoring....etc.
    Next, open Logic's Preferences and I think with Logic-X  it's under the General tab (everything I'm describing will be under the general or devices tabs).
    Select Software monitoring, make sure you I/O buffer setting is at 128. Lower buffer settings mean less latency but use more CPU.

  • HELP I am doing a Data Merge and It is only giving me one record per page!

    I really need help here.  I am doing a data merge and have selected the options for doing multiple records per page but instead it is merging everything to it's own page.  Can someone tell me what I am missing?

    Why do you say you can't do a multiple record merge to a table?
    I've never had any trouble putting placeholders into a table. It's the way I do most of the datamerge that I work with.
    My mistake… I was confused with the script, and I must confess I had never tried (until now) to use tables as placeholders, but it works.
    My apologies for this uncorrect answer

  • How can i disable the 'top sites' cleaning history does not remove this and it is confusing and a risk to privacy

    How can i disable the 'top sites' cleaning history does not remove this and it is confusing and a risk to privacy.
    It also serves no purpose as sites i want to keep are bookmarked
    Is there an alternatively an addon for this

    Hi there - nope, this doesnt work either. the options available when I tap and hol are only OPEN IN NEW TAB, SHARE, ADD TO HOME SCREEN
    wayne

  • ITunes and iMessage is saying my password is incorrect what is up with that is apple doing some sort of upgrade ?

    I am trying to use my iMessege and it is saying that my password is incorrect is apply doing some sort of upgrade that muself and all my apple contacts don't know about ?

    iMessage servers are down. Check this website for more information and updates http://www.apple.com/support/icloud/systemstatus/

  • Delete the duplicate and keep the max records.....

    I would like to remove the duplicate records based on columns ID and VAL but keep the max SAL records. ID + VAL is the key in the table and just delete same records by keeping the max sal.
    Note: Eventhough there are two records for the same max SAL, just keep one
    eg
    SQL>  select * from temp_fa;
            ID        VAL        SAL
             1        100         10
             1        100         20
             1        100         20
             2        200         10
             3        300         10
             3        300         30
             4        400         10
             4        400         10
             5        500         10
             5        500         20
             5        500         20
    After deleting the table should looks like
    SQL>  select * from temp_fa;
            ID        VAL        SAL
             1        100         20
             2        200         10
             3        300         30
             4        400         10
             5        500         20

    user520824 wrote:
    I would like to remove the duplicate records based on columns ID and VAL but keep the max SAL records. ID + VAL is the key in the table and just delete same records by keeping the max sal.
    Note: Eventhough there are two records for the same max SAL, just keep one
    eg
    SQL>  select * from temp_fa;
    ID        VAL        SAL
    1        100         10
    1        100         20
    1        100         20
    2        200         10
    3        300         10
    3        300         30
    4        400         10
    4        400         10
    5        500         10
    5        500         20
    5        500         20
    After deleting the table should looks like
    SQL>  select * from temp_fa;
    ID        VAL        SAL
    1        100         20
    2        200         10
    3        300         30
    4        400         10
    5        500         20
    Hi,
    In this script I included sal in the key because it's more safe for you.
            ID        VAL        SAL
             1        100         10
             1        100         20
             1        100         20
             2        200         10
             3        300         10
             3        300         30
             4        400         10
             4        400         10
             5        500         10
             5        500         20
             5        500         20
    --1.Preserve first row from all duplicates
    create table first_duplicate as
    (select distinct val, id, sal
    from temp_fa
    where to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal) in
    (select to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal) p_key
          from temp_fa
          group by to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal)
             having count(to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal))>1)
    --2.Delete all duplicates
    DELETE  FROM temp_fa
    where to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal) in 
         (select to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal) p_key
         from temp_fa
         where to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal) in
              (select to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal) p_key
              from temp_fa
               group by to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal)
                  having count(to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal))>1)
    --3.Add first row from all duplicates
    insert into  temp_fa (val, id, sal)
    select * from first_duplicate;
    --4.Delete rows that don't have the max salary
    DELETE  FROM temp_fa
    where to_char(temp_fa.id)||to_char(temp_fa.val)||to_char(temp_fa.sal) in 
         (select to_char(id)||to_char(val)||to_char(sal) p_key
         from temp_fa
              MINUS
         (select to_char(x.id)||to_char(x.val)||to_char(x.sal) p_key
         from temp_fa x,
         (select val, id, max(sal) max_val from temp_fa
           group by  val, id ) y
           WHERE x.val = y.val and
            x.id  = y.id and
            x.sal =max_val
    HR: XE > select * from temp_fa order by id;
            ID        VAL        SAL
             1        100         20
             2        200         10
             3        300         30
             4        400         10
             5        500         20
    HR: XE > Regards,
    Ion
    Edited by: user111444777 on Sep 25, 2009 10:42 PM

  • Does OATS support recording for Globalization and Localization?

    We are looking to automate an EBS application that support 30 different languages and also has localization for some countries. Can we use OATS for regression automation? Does OATS support Globalization and Localization?

    If you are testing web application, It requires to have webdom.api imported and reference scriptservice in the class.
    import oracle.oats.scripting.modules.webdom.api.*;
    public class script extends IteratingVUserScript {
         @ScriptService oracle.oats.scripting.modules.webdom.api.WebDomService web;
    Then you can reference in your script depending on the component that you are trying to drag.  Below command will give you some idea on how to do it.
    web.element("{{obj.Reservation.LTB Rate Code Select}}").dragTo("{{obj.Reservation.LTB Trip Composer Est Grand Total}}");
    Thanks,
    Sri

  • Why does Record and Review not work in newer versions

    I created a new version of a process and deactivated the original one. When I try to record and review the older processes for the new version, I get a Null Pointer Exception.
    Can someone explain why ?
    Also, will the pending processes from the original version complete automatically in the new version ?
    Aditya

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • Recording and pasting sounds in OSX, a better way?

    I have not tried doing this before but another poster wants to add audio notes in Pages.
    When I researched this, in itself a painful task, it seems the only way to record is via QuickTime Pro and to export it and massage it into shape before going a round about route to bring it into Pages.
    I can't believe it is this bad!
    I also noted a few GUI gaffes along the way.
    Please tell me the whole process of simply recording and pasting a sound has not completely gone backwards since Mac OS9?

    orangekay.
    None of what you are saying advances the issue at all. All you are doing is denying that it is useful or saying that you personally wouldn't use it.
    The original O.P. is a Professor who uses audio comments because it is fast and personal. Which is his choice.
    It should not be a Pages function to record and place the audio, that should be a system one. The first part was already better managed and obvious over a decade and a half ago.
    I sourced him a range of 3rd party software that could do the recording for him, only one of which would add it into the location (I'm not sure how cleanly). Only one of these was free, the rest were pricey.
    I was personally astonished, even though I have encountered other such kludges in OSX, that Apple has made the simple act of recording audio so awkward and concealed. It is yet another example of how unfamiliar the OSX programmers are with elementary good user design. Also that despite many features are thrown into the system, they are unfinished and essentially useless.
    In the process of testing a method of achieving the end result in Pages, I tested a recording by playing it in the media browser. The play button doesn't even toggle to a stop button. Doesn't anyone at Apple look at how it is done anywhere else in the System?

Maybe you are looking for