文件系统性能测试
我正在编写一个 python 脚本,它将在 Linux 文件系统中执行性能测试。那么除了死锁、竞争条件和执行操作(删除、读取、写入和创建)所需的时间之外,测试还应该包含哪些其他变量/参数?
I am writing a python script that will perform performance test in linux file system. so besides deadlocks, race conditions and time takes to perform an action (delete, read, write and create) what other variables/parameters should the test contain?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
文件系统性能测试是一个非常复杂的话题。你很容易犯很多错误,基本上使你的整个测试毫无价值。
石溪大学和 IBM Watson 实验室在“Transaction of Storage”上发表了一篇关于文件系统基准测试的强烈推荐期刊论文,其中介绍了不同的基准测试及其优缺点: acm.org/itation.cfm?id=1367829.1367831" rel="nofollow noreferrer">文件系统和存储基准测试的九年研究。
他们为如何设计和实现良好的文件系统基准提供了很多建议。正如我所说:这不是一件容易的事。
File system performance testing is a very complex topic. You can easily make a lots of mistakes that basically make your whole tests worthless.
Stony Brook University and IBM Watson Labs have published an highly recommended journal paper in the "Transaction of Storage" about file system benchmarking, in which they present different benchmarks and their strong and weak points: A nine year study of file system and storage benchmarking.
They give lots of advise how to design and implement a good filesystem benchmark. As I said: It is not an easy task.
你能说得更清楚一点吗?
在使用 Python 本身之前,我尝试过这样做一次。我需要时间亲自尝试一下。我尝试使用 time.time() 来获取自纪元以来的时间。我认为时间差对于文件操作来说已经足够了。
更新:
查看这个 GSOC 创意,PSF 已承诺赞助它
http://allmydata.org/trac/tahoe/wiki/GSoCIdeas
我正在尝试阅读该页面以获取更多信息。
Can you be a little more clear?
I tried doing such once before using Python itself. I need time to try it out myself. I tried using time.time() to get the time since epoch. I think the time difference can suffice for file operations.
Update:
Check this GSOC Idea, PSF had pledged to sponsor it
http://allmydata.org/trac/tahoe/wiki/GSoCIdeas
I am trying to read up that page to get more information.
您可能对 caollectd 和 iotop 等工具感兴趣。话又说回来,yopu 可能也只是对使用它们而不是重新发明轮子感兴趣——据我所知,这样的性能分析不是一天就能学会的,而且这些人投入了大量的时间和知识来构建这些工具。
You might be inetersting in looking at tools like caollectd and iotop. Then again, yopu mightalso by interested in just using them instead of reinventing the wheel - as far as I see, such performance analysis is not learned in a day, and these guys invested significant amounts of time and knowledge in building these tools.
您应该尝试使用现有的软件。您可以使用 iozone 进行同样的操作。
有关教程,您应该参考这篇关于 nixcraft 的博客文章
You should try to use the softwares already present. You can use iozone for the same.
For tutorial, you should refer to this blog post on nixcraft