The maximum overflow of BDB locking problem

Hello

I have a single threaded application that updates my Berkeley DB in a single transaction. My operations stand as below:

DB_OPEN()

START_TXN()

DO_DB_OPERATIONS()

COMMIT_TXN()

CLOSE_DB()

Inside this single thread of control, it can be very large number of updates to db (there may be 5 million or even several updates).

I had the set_lk_max_lockers value in high enough DB_CONFIG. But some times, the application has been affected by error "no more locks available".

To remedy this, I put these values in high enough DB_CONFIG. Now my DB_CONFIG values are as follows:

set_lk_max_locks 15000000

set_lk_max_lockers 15000000

set_lk_max_objects 15000000

But with this new problem is size of my of the __db * files is huge (on the order of 8 to 10 GB).

Now in this version I have no intention to do my multi threaded application. The application will have only one thread of control of BDB.

Then I have an option to set default set_lk_max_locks values and to open the db in exclusive locking mode using the function set_lk_exclusive()?

Kindly help me to understand meanings will be setting my problems of maximum value of locks and the size of the file resulting __db? *

Kind regards
~ K ashish.


Hi Ashish,

The DB-> set_lk_exclusive function is a new function introduced in db - 5.3, and you can see the guide to upgrade to http://docs.oracle.com/cd/E17076_03/html/installation/upgrade_11gr2_53_excl.html

Thus, it is not available in db - 5.1.

If your program has only a single thread of control (multi-threads and not multiprocess) access to BDB, you can even disable the lock by not providing DB_INIT_LOCK when creating the environment, since the DB_INIT_LOCK is not bound to occur with DB_INIT_TXN.

Deactivation of the lock and light txn can give you the assurance of atomicity and durability. And you must not make sure than no simultaneous access to ensure consistency and isolation.

Another way is to restructure your program avoid doing many updates in a transaction and distributes updates of multiple operations and starts next after the previous commits. But it depends on your program logic, so we can give more detailed suggestions on how to divide the operations without more detailed information.

Kind regards

-Winter

Tags: Database

Similar Questions

  • Is there a problem with the maximum size of the RAM for Satellite 320CDT?

    I have a 320CDT Satellite with the latest BIOS (v8.00) and Windows 98 Second edition installed. There are 32MB memory base and a 32 MB module in the single expansion slot. If I change it to a plug-in 64 MB I see that 64 MB of total memory reported, not 96 as expected; the specification for the machine indicates that the admissible maximum memory is 160 MB (32 MB base + 128MB expansion). Does anyone know if there is a problem with the maximum memory size for this model and if there is a solution or workaround? I need to know quickly, in order to decide if I should return the memory module to the vendor! Thanks a lot for any help, Peter

    Satellite 320CDT supports an internal memory of 32 MB and a single slot can be used!
    You can improve it to max 96 MB (32 + 64 MB)
    I found a few old memory modules. You can use the modules SODIMM 144 pin EDO PA2043U 32 MB or 64 MB PA2044U

    Greetings

  • Win7 log in problems: "the referenced account is currently locked and cannot be saved in.

    I've seen a few posts related to this error, but nothing of quite like what I feel... My service company COMPUTER is perplexed and they have tried a bunch of stuff at the end server without result, so want to recreate the image on my computer, I don't want to just cause it's a pain.

    I have 2 computers in my workplace. A desktop and a laptop both running Win7 that connect on the server in domain of companies. I use the same username and password for both, of course.
    The problem is with the laptop. Occasionally when I try to log in, I get a notification "the referenced account is currently locked and cannot be saved in" and I can not connect. However, if I unplug the network cable and try it, it works. If I plug the power cable back in and lock the computer, restart the whatever, I can connect properly. However, after a few hours or days, it does the same thing.
    So I'm not completely locked out of the system. It's really annoying to have to disconnect the network like that.
    It has not always done this... It allows to work very well, but it seems to have just started for no apparent reason. The main difference between laptops and desktop, is that the laptop has Symantec PGP Whole Disk Encryption, while the office is not.
    Any thoughts on what may happen and what can I do about it?

    Hello

    I suggest that you post the application on Microsoft TechNet forum because we have experts working on these issues. You can check the link to post the same query on TechNet:

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itpronetworking

    Please do not hesitate to contact us if you have other questions related to Windows.

  • What is the maximum number of characters that a 2D barcode can have with the symbology PDF417 Matrix? How to solve the problem of code bar having too much data?

    What is the maximum number of characters that a 2D barcode can have with the symbology PDF417 Matrix? How to solve the problem of code bar having too much data? I'm incorporating data of the bar code under a button field. But when the data is large, the problem occurs.

    Apparently the theoretical capacity of the PDF417 barcode is 1850 characters or numbers in 2710. Of course, the actual capacity depends on the size - more square inches, more data. But before the theoretical limit, that you can reach practical limits in scanning technology so test carefully with all models of planned barcode scanner.

  • Problem with "resolution and size of the work exceeds the maximum that can be rasterized.

    Hi all

    OK, I've created a document 162,7 "x 90.6" (work plan) for a design I design. The document was created using all the flaws - I think that's where I was wrong. Illustrator is now telling me that "the combination of the size of the work and the resolution exceeds the maximum that can be rasterized" after I opened the document and when I try to add a shadow to what whatever.

    Other than vector graphics, I created in illustrator, I only have 3 180ppi and 4 300 PPI pictures tranfered just behind the camera photograpers.

    I chose:

    1 "print document" in the initial startup window.

    2. I got the size of the artboard, purge and left control the 'pixelation effects' "high (300ppi).

    I think that to let the adjustment effects of pixelization at 300ppi, where is the problem.

    What I need to create a new document or I can fix it already exists?

    Illustrator is 32-bit only and is limited to 3 GB or RAM usage, it is more a limitation to a bug.

    t has a limit to the size of a tiff file that I can export for example and you can have reached this limit.

    Try opening it in Photoshop before you start all over, and then save it in psd or tiff.

  • HELP - bezel drop X61t (separation of the bezel) & broken lock problem

    Hello guys,.

    Ask yourself if you can help me with the following questions... This is regarding x61t unit (7764CTO).

    (1) scope

    I bought my x61t around end of July 2008. After receiving the camera I immediately noticed that the bezel has been separate (but wasn't sure if I was part of the many ppl affected until I did a little research & compared my unit to a few other identical x61ts...). Basically, the lower part of the hinge plastic, in portrait mode, separates and when I press it, it remains in contact with the LCD for a few seconds and pops up. This is covered by the warranty, am I correct? What is the usual turnaround time?

    Im a bit surprised that this issue was raised during the beginning of this year... units delivered to later use (including my own?) the caches of the newest?

    (2) lock

    my lock has double-sided detach completely yesterday when I changed the fashion portrait to normal mode. What I see on this forum that day Im under the impression that the lock of the break is considered improper use regardless of the cause. How cool of lenovo for such in this case? Or is it covered?

    Many thanks in advance,

    -Brian-

    Brian,

    Welcome to the forum!

    Your Tablet's screen SXGA + or multi-touch?  Updates on the bezel are exclusive to these models with SXGA + units and have been found to significantly reduce the appearance of separation.   A few rare occurrences are possible on both models and in my opinion are probably caused by a combination of Assembly process and the possibility of a certain tolerance in the parts of the seat - especially when the adhesive is applied. (if the lower adhesive strip is set too low, less than 1/2 of its area makes contact, greatly reducing the power of possession)

    This should be an element of guarantee.

    The latch should be treated based on the inspection of the whole, and if there are signs of impact, etc. in the case that would indicate the unit had undergone a form any impact.

    Service should make the call on whether the warranty or non - warranty in nature.  I might suggest consulting with a business partner authorized warranty, because while the ring is removed, it would be a good time to replace the latch.  Replacing the latch requires the bezel to remove, and a service provider should replace rather than re - use the once-removed bezel.

    Hope that helps!

    Mark

  • More 1740bytes cannot retrieve cache Firefox12 in Windows7.The files files files can store the maximum size of a single file only 1740bytes?

    I can't get flv (YouTube video) larger files that 1740bytes of Firefox12 in Windows7 cache files, cause whenever I have search in the files, I can only find files with unique maximum file size 1740bytes and video files flv from YouTube are significantly larger than that. So, how can I get it back only the cache YouTube video file?
    But Firefox12 does not have this problem occurs in Windows XP.
    Furthermore, what is the maximum single file size in Firefox12 cache files?

    It has just begun to surface on the Web more. This seems not to be a browser problem, as happens in my opera and IE too. Apparently, YouTube has decided to not let us perceive his videos more and their place is cutting in 1 740 ko somehow files be reconstructed with its own codes when needed to play. Others are also noticed that if you make a pause a video is not going to preload as it used to- but a short distance. No doubt it is pre-configured as a segment of 1 740 both and support even not all except if you look at all this.

  • What is the maximum size of HARD drive, I use in my dc7600 CMT

    I use a HP dc7600 CMT, which works well after the upgrade to a Samsung 128 GB SSD Intel Pentium D 3.4 GHz, 4 GB of RAM and an AMD Radeon HD 6450. I'm under Win 8.1 Pro x 64, with the most recent upgrade and have absolutely no problem. Now, I want to add a second internal HDD and I wonder what is the maximum size that I can go to. I can't go up to 2 TB, or am I limited to a lower number? 1 TB? 500 GB? 250 GB?

    Will be happy to help here, especially if he actually tried to apply in practice.

    Thanks in advance.

    Best regards

    Hello:

    In theory, you'd be limited to 2 TB.

    The biggest HARD drive I have ever installed in my dc7600 CMT was a 1 TB of HDD, so I can't confirm that a 2 TB drive will absolutely work.

  • The address bar / AutoComplete is locking up.

    Everytime I type something my history or bookmarks in the location bar, it displays the first character or two, and then refuses to view the rest of the address of the site that I type and fails to show the results of my history/bookmarks. It shows only what I am typing after I press ESC or click anywhere on the Web page. A similar problem also occurs when I try to pull something together as a Web site, including the forms on this page 'edit a question", except that the AutoComplete results appear and I can use my mouse to select what I wanted to type manually.

    I'm guessing that autocomplete is locked for some reason any. However, I have tried to clean the sql databases and even removed the profile folder and reinstalled firefox, nothing helps.

    A solution that bothers that I know is to run firefox in safe mode and disable all addons or reset all the preferences of the user by default, which makes the AutoComplete behave exactly as it should until I close firefox. I can reactivate my addons and restart firefox and the address bar will continue to behave properly, but closing and re-opening firefox without using safe mode, even if nothing is changed (addons reactivated, set preferences, etc.), translates the AutoComplete not cooperating again.

    This problem started about a month after I had installed Xubuntu to 11.10.

    It's been four months now. I am running Firefox 11.0, and the problem is still there. At least, he received no worse or anything like that.
    Firefox is the only program on my computer with an AutoComplete feature that locks like that. It's really weird.

    Edit: From Xubuntu 12.04, this problem seems to be fixed.
    I'll upgrade to Firefox 12 and see if it stays that way.

    Edit 2: Running Xubuntu 12.04 & Firefox 12. Problem is solved.

  • Satellite L500-1KK - how to the maximum battery time?

    Hello

    1. it is indicated on the product specifications L500-1kk expected autonomy is about 03:20 Hrs use mobile brand! However, I was using my laptop for almost a year now, the maximum battery time I get is 02:15 Hrs, whenever I load my mobile suit, the battery still bar program shows me this maximum time remaining! I use the default power settings!

    2. most intriguing, is that my sister used another laptop, its battery is approximately the same capacity that mine, around 43200 mWh, us both using Windows 7 Ultimate (she 32bits, I, 64-bit version), but its battery time is at least 4.5 Hrs. Why is this, and how I would maximize my battery time!

    3. Finally, her laptop is new (4 months, yet battery pro program shows that the battery wear rate is 7%, my laptop is almost a year and it shows a wear rate of 1.3%, I use mostly my laptop while the power is plugged in, unplugged rarely!) Is their an explanation to the different rates of wear?

    Thank you

    Hello

    To be honest, I think a battery about 02:15 hours is good and I think that everything is ok with your laptop. My new Satellite A500 I also only 2.5 hours if I running on battery, sometimes less than 2 hours or less. That s always according to the applications you run.

    > 2. More intriguing, is that my sister used another laptop, its battery is approximately the same capacity as mine, around 43200 mWh, we're both using Windows 7 Ultimate (she 32bits, I, 64-bit version), but its battery time is at least 4.5 Hrs. Why is this, and how I would maximize my battery time!
    Well, it s the same you compare two cars with the same ch from different manufactures a car's fuel consumption higher than the other car, even it have the same hp. Why? Well, the different manufacturers using different parts: other tires, gears, weight, dray of air, etc.

    You can compare two identical notebooks or cars from the manufacturing even to find a problem, but * not * from different manufacturers. ;)

    Last but not least, this could be an interesting document:
    http://APS2.toshiba-tro.de/KB0/HTD9401AZ0001R01.htm

  • Why the network location is always locked?

    I use locations 'House' and 'work '. I never put on automatic because the well, that simply never works.

    Why should I enter my password every time I want to change the location? I never lock back, let always unlocked. I have no restart or logout to make that happen, close preferences and open it again. It is locked again.

    Does not have this problem in Yosemite on this MBA; not I have it on Yosemite on my mini... What is the problem with El Capitan?

    In the security & privacy preferences window, please open settings, then click on the Advanced button and uncheck the box marked

    Need administrator password to access the lock settings

  • Satellite A500 - 19 X - which is the maximum supported RAM?

    Hello

    I have a Toshiba Satellite A500 - 19 X with Windows 7 64 bit Home Premium edition. It came with 4 GB DDR3 1066 MHZ RAM. Can anyone let me know the maximum supported RAM for this hardware configuration and OS.

    Kind regards
    Vivek

    Hey Buddy,

    You can answer this question yourself!

    I checked the specifications of this laptop on the Toshiba site and you can upgrade the RAM 8 GB. Therefore, you (1 066 MHz) DDR3 RAM and two 4 GB modules. They should be the same manufacturing to avoid problems of incompatibility.

  • Satellite 2610 CDT: what is the maximum capacity of hard drive?

    Hello

    I want to add a new hard drive to an old laptop Satellite 2610 CDT. However, before buying a new drive, I want to be sure that it will be properly recognized by the BIOS. The operating systems (Win 2000 and Debian) I will use can handle large capacity disks, so that they are not a problem here.

    How can I determine the maximum capacity of the hard drive that will be recognized by the BIOS? The BIOS supports LBA-48 address?

    Thank you very much!

    According to the specifications of the laptop computer supports a 6 GB HARD drive.
    You can try with 10 or 12 GB of HARD drive.

    These hard drives are cheap and I don't see any risk with the upgrade. Test it!

  • Satellite M70 258: HDD upgrade question - what is the maximum size supported

    I need to upgrade the hard drive from my Toshiba Satellite M70-258.
    I would like to know what is the maximum size of the disk that I can install it.
    I would like to know if it is suportts Sata drives.

    Thank you in advance.

    Best regards

    Fernando Silva

    The problem is that there is no official information on the maximum size of HARD drive on laptop series different. If we can only speculate on the supported formats.

    But I found it here in the forum:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?MessageID=93195𖰋

    The user has updated the own M70 with the 160 GB drive HARD Toshiba MK1637GSX and it works.
    So maybe this info helps a bit.

    Good bye

  • HP Omni 10, it starts, but not able to drag the screen initial screen is locked

    With the power button, it starts after the screen sleep don't lock couldn't slide to get the password screen.

    Don't know if the touchscreen went.

    No keyboard... so not couldn't find another way to try.

    Hey @pkp0512,

    Welcome to the forums of HP.

    You made recent changes to your Tablet? Have you tried to install Windows 10 or run and updates of Windows at the time it started?

    You should be able to access the Recovery Manager by turning on the Tablet by pressing the Volume down and the Power button at the same time. If the touch screen does not work to select the Recovery Manager we can confirm it's a hardware problem. If he leaves you, then you are looking to a software problem in Windows that a restoration of the system (accessible in the Recovery Manager) should take you around when he was work and restoration.

    Thank you.

Maybe you are looking for