--On Wednesday, May 11, 2016 1:47 AM +0000 lukaswhl(a)gmail.com wrote:
> Full_Name: Lukas W
> Version: mdb.master
> OS:
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (2407:7000:9a07:8600::2)
Isn't this a dupe of ITS#8420?
--Quanah
--
Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
A division of Synacor, Inc
Full_Name: Clayton Stangeland
Version: lmdb master a04aad31c2
OS: Windows 7 64 bit
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (170.54.58.5)
This is an lmdb bug.
mdb_page_flush fails as database size nears 2 GB on Windows. The reason is off_t
== int32_t on Windows. So the off_t pos variable becomes negative and this
section of code in mdb_page_flush enters the error condition as ov.OffsetHigh is
also negative:
ov.Offset = pos & 0xffffffff;
ov.OffsetHigh = pos >> 16 >> 16;
if (!WriteFile(env->me_fd, dp, size, NULL, &ov)) {
rc = ErrCode();
DPRINTF(("WriteFile: %d", rc));
return rc;
}
Adding23dedefine off_t int64_t in an #ifdef _WIN32 region solves this.
On Sat, May 07, 2016 at 10:39:29PM +0000, aschorr(a)telemetry-investments.com wrote:
> Hi, FYI, mdb_env_info has the same issue.
Dup of ITS#8401, closing this ITS.
>
> Thanks,
> Andy
>
>
>
Full_Name: Andrew Schorr
Version: lmdb 0.9.18
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (38.76.0.51)
I am implementing a gawk lmdb API. As a silly test, I ran the following code:
gawk -l lmdb '
BEGIN {
env = mdb_env_create()
rc = mdb_env_stat(env, f)
}'
It catches a SIGSEGV. It is apparently illegal to call mdb_env_stat before
calling mdb_open. Please consider updating the documentation or updating the
function to
protect against this situation.
Thanks,
Andy
Hi, sorry, please close this issue. I am unable to duplicate my initial
results. The use of a cursor seems to be marginally helpful, and I no
longer see any slowdown from batching the commits. I guess my server
must have had some other loads on it that impacted my previous test
results.
I do see one odd result of batching -- the process ru_maxrss value reported by
getrusage is much higher (10 GB vs 3 GB for my test data). I'm not sure why
that's the case. Perhaps that resulted in some swapping during my initial
test.
Sorry for wasting your time.
Regards,
Andy
On Thu, May 05, 2016 at 09:56:10PM +0000, openldap-its(a)OpenLDAP.org wrote:
>
> *** THIS IS AN AUTOMATICALLY GENERATED REPLY ***
>
> Thanks for your report to the OpenLDAP Issue Tracking System. Your
> report has been assigned the tracking number ITS#8418.
>
> One of our support engineers will look at your report in due course.
> Note that this may take some time because our support engineers
> are volunteers. They only work on OpenLDAP when they have spare
> time.
>
> If you need to provide additional information in regards to your
> issue report, you may do so by replying to this message. Note that
> any mail sent to openldap-its(a)openldap.org with (ITS#8418)
> in the subject will automatically be attached to the issue report.
>
> mailto:openldap-its@openldap.org?subject=(ITS#8418)
>
> You may follow the progress of this report by loading the following
> URL in a web browser:
> http://www.OpenLDAP.org/its/index.cgi?findid=8418
>
> Please remember to retain your issue tracking number (ITS#8418)
> on any further messages you send to us regarding this report. If
> you don't then you'll just waste our time and yours because we
> won't be able to properly track the report.
>
> Please note that the Issue Tracking System is not intended to
> be used to seek help in the proper use of OpenLDAP Software.
> Such requests will be closed.
>
> OpenLDAP Software is user supported.
> http://www.OpenLDAP.org/support/
>
> --------------
> Copyright 1998-2007 The OpenLDAP Foundation, All Rights Reserved.
>
--
Andrew Schorr e-mail: aschorr(a)telemetry-investments.com
Telemetry Investments, L.L.C. phone: 917-305-1748
545 Fifth Ave, Suite 1108 fax: 212-425-5550
New York, NY 10017-3630
Full_Name: Andrew Schorr
Version: lmdb 0.9.18
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (38.76.0.51)
I patched mdb_load to add an option to set the mapsize with -T, as per
open issue #8417. I then used it to load a 7 GB text file, and I found that
the calls to mdb_txn_commit after every 100 mdb_cursor_put calls really slows
down performance. If one comments out the batching, it goes much faster.
And even faster is to avoid the cursor and just call mdb_put in a loop.
Is there a reason mdb_load commits after every 100 puts?
This is a patch that removes some unused attributes from
olcAsyncMetaConfig. These attributes were removed when some
configuration options were removed for asyncmeta, being no longer
applicable, but removing them from the class definition was missed.
ftp://ftp.openldap.org/incoming/nadezhda-ivanova-160503.patch