badger icon indicating copy to clipboard operation
badger copied to clipboard

[FEATURE]: Storing values larger than 2 GB

Open mitar opened this issue 1 year ago • 6 comments

Have you tried Badger before this proposal? and did not find anything similar?

None

What you wanted to do.

I wanted to set ValueLogFileSize to 6 GB.

What you actually did.

Called opts.WithValueLogFileSize(6 * 1024 * 1024 * 1024).

Why wasn't it great, with examples.

I got error Invalid ValueLogFileSize, must be in range [1MB, 2GB).

Additional information.

Could this limit be lifted on 64bit systems? It seems to me that this is just to support mmap on 32 bit systems and there is really no design limitation why not to support larger values? On my system, I have:

$ grep -m1 "address sizes" /proc/cpuinfo 
address sizes	: 39 bits physical, 48 bits virtual

So a bit less than 2^47 (128 TiB) could be the max limit for mmap on my system.

mitar avatar Dec 31 '23 15:12 mitar

I have the same problem, 2G is too little for me, we need more than 8G

simon28082 avatar Jan 06 '24 11:01 simon28082

Same here

nathanhack avatar Jan 15 '24 15:01 nathanhack

This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

github-actions[bot] avatar Jul 13 '24 01:07 github-actions[bot]

Still relevant.

mitar avatar Jul 13 '24 05:07 mitar