-
Notifications
You must be signed in to change notification settings - Fork 136
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
性能测试疑问 #47
Comments
从测试结果来看,感觉不太正常。 |
和在docker里面跑测试程序有关系吗?因为不止我自己的笔记本有这个问题,其他笔记本测试出来也是最多2ms耗时,平时笔记本没有任何操作,只用来测试 |
你把 type = mmap 改为 type = shm,采用纯内存缓存方式测试一下看看效果 |
改为shm跑了十几分钟到是没出现,谢谢 |
那应该就是采用 mmap方式,操作系统会把写入的数据不定期刷到文件 (磁盘 )导致的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
说明
abacb8362f67c07eb1a2b5b7406bab0dbdb5abfe
准备工作
/etc/libshmcache.conf
内容:编译完成后运行:
./shmcache_set test value 1
期望输出
正常情况下不会输出
Set data with time
实际输出
问题
请问这种写入单值是否正常情况下会存在耗时7ms+现象,如果正常的话,此repo的读写性能大概是什么样子?或有什么要求
期待回复,感谢
The text was updated successfully, but these errors were encountered: