Dynamic network adapter queue pair allocation
First Claim
1. A method for dynamically allocating network adapter queue pairs, the method comprising:
- receiving a notification at an operating system image, running in a virtualized environment, of a change in allocation of queue pair resources to said operating system image, wherein said change in allocation of queue pairs includes adding at least one new queue pair;
in response to said notification, querying a network adapter through a hypervisor in said virtualized environment to obtain a new queue pair resource count after said change in allocation;
performing a hashing operation in said operating system image using said new queue pair resource count to distribute transmit traffic among said queue pair resources; and
before performing said hashing operation in said operating system image;
allocating said at least one new queue pair;
starting said at least one new queue pair; and
waiting for said network adapter to perform a hashing operation to distribute receive traffic among said queue pair resources operating after said change in allocation.
0 Assignments
0 Petitions
Accused Products
Abstract
A method of dynamically changing an allocation of queue pair resources to an operating system image running in virtualized environment receives a notification at the operating system image of a change in allocation of queue pair resources to the operating system image. The method queries a physical network adapter through a hypervisor to obtain a new queue pair resource count that will exist in the virtualized system after the change in allocation. The method performs a hashing operation in the operating system image using the new queue pair resource count to distribute transmit traffic among the queue pair resources that will exist in the virtualized system after the change in allocation.
13 Citations
9 Claims
-
1. A method for dynamically allocating network adapter queue pairs, the method comprising:
-
receiving a notification at an operating system image, running in a virtualized environment, of a change in allocation of queue pair resources to said operating system image, wherein said change in allocation of queue pairs includes adding at least one new queue pair; in response to said notification, querying a network adapter through a hypervisor in said virtualized environment to obtain a new queue pair resource count after said change in allocation; performing a hashing operation in said operating system image using said new queue pair resource count to distribute transmit traffic among said queue pair resources; and before performing said hashing operation in said operating system image; allocating said at least one new queue pair; starting said at least one new queue pair; and waiting for said network adapter to perform a hashing operation to distribute receive traffic among said queue pair resources operating after said change in allocation. - View Dependent Claims (2, 3, 4)
-
-
5. A method for dynamically allocating network adapter queue pairs, the method comprising:
-
receiving a notification at an operating system image, running in a virtualized environment, of a change in allocation of queue pair resources to said operating system image, wherein said change in allocation of queue pairs includes removing at least one old queue pair; in response to said notification, querying a network adapter through a hypervisor in said virtualized environment to obtain a new queue pair resource count after said change in allocation, wherein said querying of said network adapter through said hypervisor includes obtaining an identifier of said at least one queue pair to be removed; performing a hashing operation in said operating system image using said new queue pair resource count to distribute transmit traffic among said queue pair resources; and after performing said hashing operation in said operating system image; stopping said at least one old queue pair identified by said identifier; waiting for said network adapter to perform a hashing operation to distribute receive traffic among said queue pair resources operating after said change in allocation; and deallocating said at least one old queue pair.
-
-
6. A computer system for dynamically allocating network adapter queue pairs, the computer system comprising:
-
one or more processors, one or more computer-readable memories and one or more computer-readable storage devices, and program instructions, stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, the program instructions comprising; program instructions to receive a notification at an operating system image, running in a virtualized environment, of a change in allocation of queue pair resources to said operating system image, wherein said change in allocation of queue pairs includes adding at least one new queue pair; program instructions, responsive to said notification, to query a network adapter through a hypervisor in said virtualized environment to obtain a new queue pair resource count after said change in allocation; program instructions to perform a hashing operation in said operating system image using said new queue pair resource count to distribute transmit traffic among said queue pair resources; and program instructions, before performing said hashing operation in said operating system image, to; allocate said at least one new queue pair; start said at least one new queue pair; and wait for said network adapter to perform a hashing operation to distribute receive traffic among said queue pair resources operating after said change in allocation. - View Dependent Claims (7, 8, 9)
-
Specification