Re: How to acquire the occupancy time of CPUs within a certain duration, i.e. 10ms, 1ms, and etc?

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

 





On Fri, Aug 28, 2020 at 4:14 PM 孙世龙 sunshilong <sunshilong369@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx
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

Virus-free. www.avast.com
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://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