-
-
Notifications
You must be signed in to change notification settings - Fork 112
LifoReclaim causing MDBX_TXN_FULL #123
Comments
I think I understood the reason and will fix this flaw immediately after the bug #121. |
Эта доработка функционально аналогична вашему патчу для ускорения выделения больших пачек мульти-страниц. На днях я добавлю поддержку установки опций и тогда это можно будет задавать через API. |
i started. test will take 2-3 days. |
I assume that your test will be successful.
|
Yes, it must be bigger than most of values in db. In our case i expecting threshold 1-10Mb |
Did test to drop 40Gb DBI on current devel branch (e0d4eaf) |
ah, no, probably it's because I still didn't switch to mdbx_drop(delete=false). |
No, that can't be the reason. The I can't reproduce the problem, it is very likely that the manifestation depends on the internal state of the GC / Freelist (i.e., on the history of operations which can't be restored by So I want to ask you again to help me:
|
Ok. Will do tomorrow. But move to dbi_drop(del=false) helped. |
У меня получилось воспроизвести проблему и я примерно понял в чем дело. |
Отличненько, потому что у меня почему-то не получается |
Подробности ниже, а если кратко, то был регресс после #123 (comment). В lifo-режиме при фиксации транзакции, записи в GC могли быть перезаписаны (с утечкой страниц БД), либо могла возникать ошибка
|
Having db with large GC 91072045 pages - GC DBI has 105 entities (I did it intentionally for testing):
Did try to make update of 2000 keys (small values).
Got "MDBX_TXN_FULL Transaction has too many dirty pages, i.e transaction is too big" with next txn_info:
{Id:9604 ReadLag:0 SpaceUsed:687662821376 SpaceLimitSoft:687721144320 SpaceLimitHard:2199023255552 SpaceRetired:4337664 SpaceLeftover:17175486464 SpaceDirty:4374528}
After retry and reboot of app - got same error and info as above.
Disabling of mdbx.LifoReclaim - it solved problem - commit passed. Also large commit for 16Millions keys also passing.
I did enable/disable
Coalesce
- doesn't change anything.Can try to gather more info next week.
The text was updated successfully, but these errors were encountered: