The sync version DOES show 2 interesting deltas from the no-sync version: (i) 2 calls to nanosleep() per write, (ii) an 80% increase in the time spent in mmap(). but the sync version of the program shows the same 4, 2, and 0. ![]() The no-sync program shows 4 invocations of fsync(), 2 of fdatasync() and 0 of msync(). HOWEVER, I then ran strace on both versions of the program to verify that fsync() or fdatasync() or msync() is getting called. I modified the test program to turn on write syncing via this rocksdb_writeoptions_set_sync(wri_u, 1) Īnd ran it again. I have a test program that opens a database, does 1,000 writes (gathering timing data between initiation of write and callback), does 1,000 reads, and shuts down.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |