search

Home  >  Q&A  >  body text

什么原因会导致Ubuntu磁盘IO很慢?

我用的是Ubuntu13.10, 刚开始没有这个问题, 但现在问题很严重。

比如下面这个操作:

sudo vi /etc/php5/cli/php.ini

大概需要2~3秒的时间才能进入到VI进行编辑配置文件。

php -r "echo 'OK';"

也需要大概2~3秒的时间才能输出“OK”。

我不确定是不是IO的问题, 我只是觉得可能是IO的问题。有什么办法解决没有?

迷茫迷茫2847 days ago534

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-21 11:19:16

    First check whether the reading and writing speed is normal. Use hdparm to check (not sure if this command is available in ubuntu, but it is available in RHEL)
    Method hdparm -t /dev/sda
    If a normal hard disk has no bad sectors, it is certain that it can generate tens of MB per second

    reply
    0
  • Cancelreply