-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rate_limiter problem (Illegal instruction in CalculateRefillBytesPerPeriod) #692
Comments
Hmmm. This looks like the rocksdb was compiled with PORTABLE flag set turned off (which is the default). When PORTABLE flag is turned off, we compile RocksDB to optimize for native architecture. This makes the binary work only on that specific architecture. |
Thanks a lot for the quick answer. I'll try to recompile myself under the same machine (vagrant instance) to see what happens. Open candid question: Is it worth it to disable the PORTABLE? does it really squeeze more performance in a significant way? |
The biggest gain from using PORTABLE=0 is with CRC32: https://github.com/facebook/rocksdb/blob/master/util/crc32c.cc#L318. When we compile on SSE4.2 architecture we use a crc32 machine instruction, which makes checksumming much much faster. |
Out of curiosity, I've tried running the thing in two different computers and enabled virtualbox support for SSE4.1/4.2 (checked in /proc/cpuinfo) but got the same result. I guess some other option only available on high-end xeon's in Amazon is being used. I will wait for my ongoing mongo-rocks build to finish and try again. |
Yeah -march=native enables all kinds of things. You can try |
It seems the original issue could be solved, as it proceeds further down in the startup, but it still fails:
in log:
|
OK, the issue now is related to compression, so I'm closing this one and keep investigating myself... @igorcanadi thanks a lot for the hint! I guess I should have checked #690 before. |
No worries. Let me know if you see any other issues! |
@flozano what makes you think this is related to compression? Can you copy/paste the error message? It is likely because RocksDB was compiled without support for snappy. Try |
That was the reason, RocksDB was compiled without support for snappy or zlib. I should have been more specific in the comment above 👍 |
The remaining issue now is that mongorocks RPMs don't work very well, but that's already reported in mongodb-partners/mongo-rocks#9 |
I'm trying to use Mongo-rocks CentOS 7 RPMs and I think I'm hitting an issue with the rate limiter in rocksdb:
The text was updated successfully, but these errors were encountered: