How to acquire the occupancy time of CPUs within a certain duration, i.e. 10ms, 1ms, and etc?
孙世龙 sunshilong
sunshilong369 at gmail.com
Sat Sep 5 09:30:51 EDT 2020
HI,
Thank you for your reply.
>do you mean make a process exclusively run on a cpu core without being
interrupted/preempted for certain time?
No.
I want to know how long the CPUs are being busy in a specific duration,
e.g: 1ms?
Thank you for your attention to this matter.
On Fri, Sep 4, 2020 at 11:59 AM Mulyadi Santosa <mulyadi.santosa at gmail.com>
wrote:
>
>
> On Fri, Aug 28, 2020 at 4:14 PM 孙世龙 sunshilong <sunshilong369 at gmail.com>
> wrote:
>
>> Hi, list
>>
>> How to acquire the occupancy time of CPUs within a certain duration,
>> i.e. 10ms, 1ms, and etc?
>>
>> Could somebody please shed some light on this matter?
>> I would be grateful to have some help with this question.
>>
>> Best Regards.
>> Sunshilong
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
> Hi
>
> do you mean make a process exclusively run on a cpu core without being
> interrupted/preempted for certain time?
>
> if yes, i think schedule a process as real time (sched fifo?), create
> timer, sched yield after timer runs out. cmiiw
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_8954658734846331465_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200905/27f3540f/attachment.html>
More information about the Kernelnewbies
mailing list