FoundationDB / fdb-joshua

FoundationDB Correctness service
Apache License 2.0
28 stars 25 forks source link

Try: Use tmpfs folder as joshua agent work directory #17

Closed xumengpanda closed 5 months ago

xumengpanda commented 3 years ago

I noticed that Joshua test has failure due to "Disk i/o error". This happens when Joshua agent process cannot write to its disk. This causes false-positive test failures (my guess).

To confirm this, we can use a tmpfs folder as Joshua agent's work_dir. It can

  1. Avoid the disk I/o error (hopefully);
  2. Reduce each test's execution time due to faster disk access.

I used /dev/shm/ in this PR, which may or may not be the best choice. One caveat: we want to make sure the work folder is large enough to host the test temporary results. My gut feeling is that 1GB folder should be large enough.