linux top cpus wa IOwait

來源:互聯網
上載者:User

> I was wondering if someone could point me in the right direction
for 
> some doco? 

I don't know of any, but ... 

> I'm finding it hard to get a definition of what constitutes IOWait. 
> I know that IOwait is CPU time waiting for
IO to happen to physical local 
> disks, but I'm unsure about the following scenarios and if they contribute to 
> IOWait: 

Not quite.  IOWait is a *software* state, indicating that a process or 
thread is blocked waiting for I/O to complete. 

This is different from "CPU time waiting for ..." in that it implies the 
software is making no progress, but *NOT* that your CPU is spending 
cycles working on it.[1] 

> - CPU time waiting for an NFS read/write to occur 

Yes, along with more or less any other "disk" I/O that happens to be run 
over the network -- as long as it is synchronous, and something is 
waiting on it. 

> - CPU time waiting for a network buffer to be read/written to. eg waiting for 
>   a full buffer to clear. 

Generally not.  I am not certain about blocking on a full buffer 
condition for sending data, but not for blocking while reading. 

> - Anything else?? 

Any other synchronous disk I/O, certainly.  Probably certain other, 
related, conditions where the kernel developers feel that the process is 
blocked on I/O. 

> PS. How do you set/query the network buffers in Linux? 

Via the socket fcntl / ioctl interface, or via the sysctls in 
/proc/sys/net, which are documented in the standard Linux kernel sysctl 
documentation. 

All that said, you might want to tell us why you are asking, not just 
what, since I suspect there is a question about why you have so much 
IOWait time on your system, or poor performance? 

Regards, 
        Daniel 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.