Re: [RFC PATCH v1] blk-mq: isolate CPUs from hctx

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

 



On Fri, Nov 08, 2024 at 07:48:30AM +0200, Costa Shulyupin wrote:
> The housekeeping CPU masks, set up by the "isolcpus" and "nohz_full"
> boot command line options, are used at boot time to exclude selected
> CPUs from running some kernel housekeeping subsystems to minimize
> disturbance to latency sensitive userspace applications such as DPDK.
> This options can only be changed with a reboot. This is a problem for
> containerized workloads running on OpenShift/Kubernetes where a
> mix of low latency and "normal" workloads can be created/destroyed
> dynamically and the number of CPUs allocated to each workload is often
> not known at boot time.
>
> Cgroups allow configuring isolated_cpus at runtime.
> However, blk-mq may still use managed interrupts on the
> newly isolated CPUs.
>
> Rebuild hctx->cpumask considering isolated CPUs to avoid
> managed interrupts on those CPUs and reclaim non-isolated ones.

As far I understand this doesn't address the issue that the drivers
need also to be aware of isolcpu mask changes. That means even though
the cpumask is updated in the block layer, the driver doesn't know about
it and still runs on the isolated CPUs.




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux