Re: Setting CPU affinity for current process on kernel module?

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

 



On Wed, Sep 11, 2019 at 04:19:41PM -0300, Martin Galvan wrote:
> El mié., 11 sept. 2019 a las 16:17, Bharath Vedartham
> (<linux.bhar@xxxxxxxxx>) escribió:
> > So one thing that pops to my head is using cgroups. Create a cgroup,
> > modify the cpu file in cpusets cgroup and add the required task to it.
> > But I am not sure whether you can do all of this from a kernel module...
> 
> Thanks, but that's not feasible. This should all be done
> programmatically from the module, and be as minimally invasive as
> possible.
Just to be clear, What do you mean by current process. Is it the process
which is executing the kernel module? That would be a kernel thread I
believe or do you want to be able to set the cpu affinity for any
process given its PID? 
And are you looking at setting CPU affinity of kernel threads or user
threads. 

Thank you
Bharath

_______________________________________________
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