what does nr_iowait_cpu() do?

Mohammad Merajul Islam Molla meraj.enigma at gmail.com
Mon Jul 14 22:28:57 EDT 2014


Number of processes waiting for I/O to complete on a cpu?

On Tue, Jul 15, 2014 at 8:22 AM, Andev <debiandev at gmail.com> wrote:
> On Mon, Jul 14, 2014 at 10:21 PM, Mohammad Merajul Islam Molla
> <meraj.enigma at gmail.com> wrote:
>> Hi Andev,
>>
>> Thanks for reply. I got the definition too. What I really want to know
>> is what this variable nr_iowait stands for?
>> Is it counting pending input/output on a cpu?
>>
>>
>> --
>> - Meraj
>>
>>
>>
>> On Tue, Jul 15, 2014 at 8:07 AM, Andev <debiandev at gmail.com> wrote:
>>> On Mon, Jul 14, 2014 at 10:10 AM, Mohammad Merajul Islam Molla
>>> <meraj.enigma at gmail.com> wrote:
>>>> Hello,
>>>>
>>>> I was looking into the code of cpuidle menu governor and it uses a
>>>> function nr_iowait_cpu(int cpu).
>>>> I could not find out what this function does.
>>>>
>>>> Can someone please explain what nr_iowait_cpu(int cpu) and variant
>>>> nr_iowait() do?
>>>>
>>>> --
>
> Now that is a better question. Try looking up what nr_iowait is.
>
>>>
>>> In all its glory:
>>>
>>> unsigned long nr_iowait_cpu(int cpu)
>>> {
>>>     struct rq *this = cpu_rq(cpu);
>>>     return atomic_read(&this->nr_iowait);
>>> }
>>>
>>>
>>>> Thanks,
>>>> -Meraj
>>>>
>>>> _______________________________________________
>>>> Kernelnewbies mailing list
>>>> Kernelnewbies at kernelnewbies.org
>>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>>
>>> --
>>> Andev
>
>
>
> --
> Andev



More information about the Kernelnewbies mailing list