Roman Zeyde

Results 503 comments of Roman Zeyde

Maybe we can use https://docs.rs/electrs-rocksdb/0.19.0-e3/electrs_rocksdb/struct.Options.html#method.set_db_log_dir to move the logs into another directory? (as suggested in https://github.com/romanz/electrs/issues/680#issuecomment-1030848627)

Actually, the log is caused by an unneeded `flush()` call on every sync iteration (even if no blocks were found): https://github.com/romanz/electrs/blob/a01d58c35d2f6aaea7a479eb508404e7ff3affdf/src/index.rs#L182 @rkfg Good catch, and sorry for missing it!

Could you please try https://github.com/romanz/electrs/commit/deb40bc280c07ca8d8ce303b09b44f56939976a3 to see if it resolves this issue?

@Kixunil it seems that using `db_log_dir` creates a LOG file with a "custom" prefix (using the DB path, with some characters being replaced by underscores - https://github.com/facebook/rocksdb/blob/f6fd4b9dbd15dba36f7e5ad23de407b5c26b1460/file/filename.cc#L37 or https://github.com/facebook/rocksdb/blob/f6fd4b9dbd15dba36f7e5ad23de407b5c26b1460/tools/advisor/advisor/bench_runner.py#L22 for...

Thinking on it, we can probably reproduce this issue by running RocksDB unittests on ARM64 VM on some public cloud.

It does work on https://gcloud-compute.com/t2a-standard-2.html: ```bash sudo apt update && sudo apt install rustc clang cmake build-essential cargo librocksdb-dev=6.11.4-3 git clone https://github.com/romanz/electrs && cd electrs ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib cargo build --locked...

Also works on https://instances.vantage.sh/aws/ec2/c7g.large (using the same commands as above...) ``` $ lscpu Architecture: aarch64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 1 On-line CPU(s) list: 0 Vendor...

@opacey could you please attach the output of `lscpu` on your machine?

Tested also using `qemu-system-aarch64 -M virt -cpu cortex-a72` on Debian aarch64 stable (using http://phwl.org/2022/qemu-aarch64-debian/) -> also seems to work on regtest: ``` user@debian:~/electrs$ lscpu Architecture: aarch64 CPU op-mode(s): 32-bit, 64-bit...

@opacey BTW, does electrs work on your device when compiled without dynamic linking to `librocksdb-dev`? (i.e. without defining `ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib`)