32-bit support in RocksDB

126 views
Skip to first unread message

David McCormack

unread,
Jun 1, 2021, 5:13:02 AM6/1/21
to rocksdb
I had assumed this would be an FAQ. But a search of conversations in this group didn't find anything so I'm posting a new question. Apologies if I've just missed something.

One of the readmes in the RocksDB repo says, "All building and testing was done for 64-bit. We have not conducted any testing for 32-bit and early reports indicate that it will not run on 32-bit."

Nevertheless, I tried building it for 32-bit Windows using VS2019. Sure enough, it doesn't even build not to mind actually run. There are lots of high severity warnings and errors, mostly due to attempts to store an explicitly 64-bit value in a size_t. The latter is 32-bit in a 32-bit build.

My question is this: Was 32-bit ever supported for RocksDB and, if so, what was the last 32-bit version? Given that RockDB has been around since 2012 when 32-bit was still very much a thing, it would surprise me if it was always 64-bit.

Adam Retter

unread,
Jun 1, 2021, 5:25:15 AM6/1/21
to David McCormack, rocksdb
We do produce 32-bit binaries of RocksDB for Linux, so compilation on
32-bit works (at least on Linux), there are a couple of test oddities
that need to be addressed when the time allows.

The Windows port was done more recently than the other platforms.
Could it be that the 64-bit issues you see are in just the Windows
specific layer?
> --
> You received this message because you are subscribed to the Google Groups "rocksdb" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rocksdb+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rocksdb/469f1485-87b8-466a-a125-9305e2014458n%40googlegroups.com.



--
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk

David McCormack

unread,
Jun 1, 2021, 6:26:01 AM6/1/21
to rocksdb
Thanks for your reply.

Yes, the first Windows-compatible release was 3.13 from August 2015 which was well into the project's existence. And there is some Windows-specific code in there. So I guess that is where the limitation lies.

But it would be great if somebody using RocksDB in a Windows context could reply with their 32-bit war stories.
Reply all
Reply to author
Forward
0 new messages