Re: CPU usage accounting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mulyadi :)

On 14 September 2011 12:44, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
>> >From what I understand: In case (1), the kernel code executes in the
>> context of the application, so the CPU cycles are accounted directly
>> to process that called write() (or send/sendto).
>
> excellent thinking, however AFAIK sometimes (or most of the times
> now?) data sending is done in asynchronous style..... so the counting
> might be not so accurate since we don't really know how much the data
> that are transmitted...

Ah I completely forgot asynchronous case.  Thanks for pointing it out!

>
>>But in case (2),
>
> excellent thinking.....  I place my bet on ksoftirqd
>

Thanks.  I think it makes sense.   Let me think of a way to actually
confirm this.  If you know of a way, do chip in :-)

thanks,
-- 
Vimal

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux