Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring and pinning of iothreads #28

Open
praveen-pk opened this issue Dec 23, 2020 · 0 comments
Open

Allow configuring and pinning of iothreads #28

praveen-pk opened this issue Dec 23, 2020 · 0 comments

Comments

@praveen-pk
Copy link

praveen-pk commented Dec 23, 2020

Cloud-hypervisor creates IO threads based on an input device id after cloud-hypervisor/cloud-hypervisor#2163.

cloud-hypervisor  --kernel hypervisor-fw --disk path=bionic-server-cloudimg-amd64.raw path=cloud-config.raw --cpus boot=2 --memory size=1024M  --console off  --seccomp false   --serial tty  --net "tap=ich0,mac=00:11:22:33:44:55,ip=,mask=,num_queues=4" --rng

$ pstree -p -c -l -t $(pidof cloud-hypervisor)
cloud-hyperviso(33146)─┬─{_disk0_q0}(33185)
                       ├─{_disk1_q0}(33188)
                       ├─{_net2_ctrl}(33189)
                       ├─{_net2_qp0}(33190)
                       ├─{_net2_qp1}(33191)
                       ├─{_rng}(33197)
                       ├─{http-server}(33148)
                       ├─{signal_handler}(33158)
                       ├─{vcpu0}(33156)
                       ├─{vcpu1}(33157)
                       └─{vmm}(33147)

## By passing id to network configuration, network thread will now be renamed based on input id.

$ pstree -p -c -l -t $(pidof cloud-hypervisor)
cloud-hyperviso(33334)─┬─{_disk0_q0}(33375)
                       ├─{_disk1_q0}(33381)
                       ├─{_rng}(33389)
                       ├─{http-server}(33336)
                       ├─{signal_handler}(33346)
                       ├─{vcpu0}(33344)
                       ├─{vcpu1}(33345)
                       ├─{vmm}(33335)
                       ├─{vnet_ctrl}(33376)
                       ├─{vnet_qp0}(33377)
                       └─{vnet_qp1}(33378)

This issue will track mapping IO threads from input domain XML like

<domain>
  ...
  <iothreads>4</iothreads>
  <iothreadids>
    <iothread id="2"/>
    <iothread id="4"/>
    <iothread id="6"/>
    <iothread id="8"/>
  </iothreadids>
  <iothreadpin iothread="1" cpuset="5,6"/>
  <iothreadpin iothread="2" cpuset="7,8"/>
  <iothread_period>1000000</iothread_period>
  <iothread_quota>-1</iothread_quota>
  ...
</domain>

to the IO threads created by Cloud-hypervisor based on input arguments.

@bryteise bryteise added the P0 P0 priority label Feb 3, 2021
@bryteise bryteise removed the P0 P0 priority label Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants