V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
1989922yan
V2EX  ›  Python

[webpy+nginx+spawn-fcgi+ mysql]程序启动后,iotop显示([jbd2/xvda1-8] 和 [flush-202:1])占用了大部分IO。

  •  
  •   1989922yan · Jan 5, 2014 · 6421 views
    This topic created in 4507 days ago, the information mentioned may be changed or developed.
    目前使用 spawn-fcgi启动20个进程,处理nginx转发请求。
    在之前一直都运行正常。

    在前3天的时候,只要一启动程序,负载就会飙升到20左右。

    [有谁知道,这iotop进程出现异常,是怎么解决呢?? 可能是什么问题呢??]
    []

    ———————————iotop显示:———————————————————

    IO> COMMAND
    99.99% [jbd2/xvda1-8]
    96.36% [flush-202:1]

    p.s: 这两个进程占用,不是偶然这样升高,而是一直保持了这样的占用率,直到 我的程序死掉。



    ———————————free -m显示:—————————————————

    total used free
    Mem: 8185 6005 2179
    -/+ buffers/cache: 2583 5602
    Swap: 2047 118 1929
    2 replies    1970-01-01 08:00:00 +08:00
    efi
        1
    efi  
       Jan 5, 2014   ❤️ 1
    这两个是ext4内核进程,说明文件系统跟存储设备有问题。更新内核,换文件系统(ext3,xfs),换存储设备。
    1989922yan
        2
    1989922yan  
    OP
       Jan 7, 2014
    @efi

    问题现在还在,没什么能谢谢的了,跟你说两个命令吧,我也是刚刚知道。

    1. dmesg
    2. iotop

    3. 还能开启io日志,我还不会,各自百谷啦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2504 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:30 · PVG 08:30 · LAX 17:30 · JFK 20:30
    ♥ Do have faith in what you're doing.