https://slatedb.io logo
Have you rebased? The object store error should be...
# general
c
Have you rebased? The object store error should be more clear on main
a
will rebase now! I rebased yesterday I think?
c
Hmm
It might have been this too: https://github.com/slatedb/slatedb/pull/297
The SlateDB.toml file was being ignorefd
Also, I think I had to disable the object store cache
The issue you are seeing is likely the object store. I just disabled it so we could figure out one thing at a time. Forgot to mention that πŸ˜…
a
ah perfect, will try that out
also πŸ€¦β€β™‚οΈ I think I rebased with
origin/main
not
upstream/main
. Wil ltry again hopefully will get better error messages
c
Haha, πŸ‘
a
to disable the cache do you just set
--block-cache-size 0
?
actually, can I just get the command you ran?
c
I just commented out the two last lines of SlateDB.toml
a
got it, the moka/foyer?
c
[object_store_cache_options] root_folder = "/tmp/slatedb-cache"
Those two
a
got it, was looking at the wrong toml file
c
Copy code
SlateDb.toml b/src/bencher/SlateDb.toml
index 0db7598..7391c94 100644
--- a/src/bencher/SlateDb.toml
+++ b/src/bencher/SlateDb.toml
@@ -1,5 +1,5 @@
 wal_enabled = false
 flush_interval = "100ms"
 
-[object_store_cache_options]
-root_folder = "/tmp/slatedb-cache"
+#[object_store_cache_options]
+#root_folder = "/tmp/slatedb-cache"
diff --git a/src/bencher/benchmark-db.sh b/src/bencher/benchmark-db.sh
index e371387..b7d8b4f 100755
--- a/src/bencher/benchmark-db.sh
+++ b/src/bencher/benchmark-db.sh
@@ -60,8 +60,8 @@ generate_plot() {
     '$input_file' skip $warmup using 1:3 with linespoints linewidth 2 title 'Gets/s';"
 }
 
-for put_percentage in 20 40 60 80 100; do
-  for concurrency in 1 4; do
+for put_percentage in 80 100; do
+  for concurrency in 4; do
     log_file="$OUT/logs/${put_percentage}_${concurrency}.log"
     dat_file="$OUT/dats/${put_percentage}_${concurrency}.dat"
     svg_file="$OUT/plots/${put_percentage}_${concurrency}.svg"
a
πŸ™ thanks
c
Np! πŸ™‚
.... and now i can't reproduce it.. perhaps my laptop is throttled right now 'cuz i'm on battery lol
a
heh, do you know about what put/s throughput you were getting? I can't seem to repro it now either. I'm running it with
Copy code
cargo run --bin bencher --features="bencher" -- --env-file .env db --block-cache-size 0 --duration 120 --put-percentage 80
c
ah wait sorry
the diff i sent you was wrong
a
ah wait, with your diff
wal_enabled=false
πŸ˜†
haha just noticed same thing
c
yup hahaha
That triggers it immediately for me
a
why does it create files in
/wal
with the wal disabled?
(unrelated question)
c
It should not
a
πŸ€”
c
Might need to make sure that your SlateDB.toml is being honored
I had to patch that bug yesterday to fix it
(referenced earlier)
a
I checked git log, it's there πŸ€”
c
Copy code
chrisriccomini@macbook-pro slatedb % find /tmp/slatedb-lfs/slatedb-bencher_80_4                                                                                         
/tmp/slatedb-lfs/slatedb-bencher_80_4
/tmp/slatedb-lfs/slatedb-bencher_80_4/compacted
/tmp/slatedb-lfs/slatedb-bencher_80_4/compacted/01JBSTDE0WR6RTD186H8C8WEEE.sst
/tmp/slatedb-lfs/slatedb-bencher_80_4/compacted/01JBSTDE39VRFDZWRC4NFKM4HR.sst
/tmp/slatedb-lfs/slatedb-bencher_80_4/compacted/01JBSTDE22WS1S9355C2TWXWTM.sst
/tmp/slatedb-lfs/slatedb-bencher_80_4/compacted/01JBSTDDZQPT0ZQMKR0QJ7A5S5.sst
/tmp/slatedb-lfs/slatedb-bencher_80_4/compacted/01JBSTDDS90Y647V3BEDGV7J5R.sst
/tmp/slatedb-lfs/slatedb-bencher_80_4/compacted/01JBSTDDX8AQXQD2DTCKQE4AK9.sst
/tmp/slatedb-lfs/slatedb-bencher_80_4/compacted/01JBSTDDYGNK59P36H8A9M5H8F.sst
/tmp/slatedb-lfs/slatedb-bencher_80_4/compacted/01JBSTDDVY63HCJ9WH04R5BDS8.sst
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000008.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000009.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000002.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000003.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000005.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000004.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000001.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000006.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000007.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000011.manifest
/tmp/slatedb-lfs/slatedb-bencher_80_4/manifest/00000000000000000010.manifest
That's with wal disabled
a
would be good to INFO log the config on startup, I'll add a ticket for that
c
Perhaps you didn't rm/rf between runs?
This is the command I run:
Copy code
rm -rf target/bencher /tmp/slatedb-lfs && mkdir -p /tmp/slatedb-lfs && mkdir -p /tmp/slatedb-cache && ./src/bencher/benchmark-db.sh
(even though I have the object store cache disabled)
a
ah, I was running it with a totally different command - may have been doing something else entirely
c
(Note that I've applied the patch I showed above in bencher-db.sh to remove the smaller put percentages and single-writer concurrency)
a
OK repro'd easily with your command
it shoots up realy fast
thanks for getting me bootstrapped, hopefully can take it from here
c
πŸ˜€
I feel like the right solution is probably to enforce that the WAL SSTs can’t exceed the max L0 SST bytes and then block if there is already a imm WAL
a
will hopefully get there one day.. I've been wasting a few hours trying to get a memory profiler hooked up πŸ˜“ this is where the JVM really shines
(I trust your assessment of the issue, I just thought it was a good op to learn to profile)
c
No worries. I might play with it tomorrow 😊
Ya I miss the JVM…
2 Views