H A D | iommu_gas.c | b831865f Mon Jun 06 21:26:01 GMT 2022 Doug Moore <dougm@FreeBSD.org> iommu_gas: restrict tree search to promising paths
In iommu_gas_lowermatch and iommu_gas_uppermatch, a subtree search is quickly terminated if the largest available free space in the subtree is below a limit, where that limit is related to the size of the allocation request. However, that limit is too small; it does not account for both of the guard pages that will surround the allocated space, but only for one of them. Consequently, it permits the search to proceed through nodes that cannot produce a successful allocation for all the requested space. Fix that limit to improve search performance.
Reviewed by: alc, kib Submitted by: Weixi Zhu (wxzhu@rice.edu) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D35414 b831865f Mon Jun 06 21:26:01 GMT 2022 Doug Moore <dougm@FreeBSD.org> iommu_gas: restrict tree search to promising paths
In iommu_gas_lowermatch and iommu_gas_uppermatch, a subtree search is quickly terminated if the largest available free space in the subtree is below a limit, where that limit is related to the size of the allocation request. However, that limit is too small; it does not account for both of the guard pages that will surround the allocated space, but only for one of them. Consequently, it permits the search to proceed through nodes that cannot produce a successful allocation for all the requested space. Fix that limit to improve search performance.
Reviewed by: alc, kib Submitted by: Weixi Zhu (wxzhu@rice.edu) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D35414 b831865f Mon Jun 06 21:26:01 GMT 2022 Doug Moore <dougm@FreeBSD.org> iommu_gas: restrict tree search to promising paths
In iommu_gas_lowermatch and iommu_gas_uppermatch, a subtree search is quickly terminated if the largest available free space in the subtree is below a limit, where that limit is related to the size of the allocation request. However, that limit is too small; it does not account for both of the guard pages that will surround the allocated space, but only for one of them. Consequently, it permits the search to proceed through nodes that cannot produce a successful allocation for all the requested space. Fix that limit to improve search performance.
Reviewed by: alc, kib Submitted by: Weixi Zhu (wxzhu@rice.edu) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D35414 b831865f Mon Jun 06 21:26:01 GMT 2022 Doug Moore <dougm@FreeBSD.org> iommu_gas: restrict tree search to promising paths
In iommu_gas_lowermatch and iommu_gas_uppermatch, a subtree search is quickly terminated if the largest available free space in the subtree is below a limit, where that limit is related to the size of the allocation request. However, that limit is too small; it does not account for both of the guard pages that will surround the allocated space, but only for one of them. Consequently, it permits the search to proceed through nodes that cannot produce a successful allocation for all the requested space. Fix that limit to improve search performance.
Reviewed by: alc, kib Submitted by: Weixi Zhu (wxzhu@rice.edu) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D35414 b831865f Mon Jun 06 21:26:01 GMT 2022 Doug Moore <dougm@FreeBSD.org> iommu_gas: restrict tree search to promising paths
In iommu_gas_lowermatch and iommu_gas_uppermatch, a subtree search is quickly terminated if the largest available free space in the subtree is below a limit, where that limit is related to the size of the allocation request. However, that limit is too small; it does not account for both of the guard pages that will surround the allocated space, but only for one of them. Consequently, it permits the search to proceed through nodes that cannot produce a successful allocation for all the requested space. Fix that limit to improve search performance.
Reviewed by: alc, kib Submitted by: Weixi Zhu (wxzhu@rice.edu) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D35414 b831865f Mon Jun 06 21:26:01 GMT 2022 Doug Moore <dougm@FreeBSD.org> iommu_gas: restrict tree search to promising paths
In iommu_gas_lowermatch and iommu_gas_uppermatch, a subtree search is quickly terminated if the largest available free space in the subtree is below a limit, where that limit is related to the size of the allocation request. However, that limit is too small; it does not account for both of the guard pages that will surround the allocated space, but only for one of them. Consequently, it permits the search to proceed through nodes that cannot produce a successful allocation for all the requested space. Fix that limit to improve search performance.
Reviewed by: alc, kib Submitted by: Weixi Zhu (wxzhu@rice.edu) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D35414 b831865f Mon Jun 06 21:26:01 GMT 2022 Doug Moore <dougm@FreeBSD.org> iommu_gas: restrict tree search to promising paths
In iommu_gas_lowermatch and iommu_gas_uppermatch, a subtree search is quickly terminated if the largest available free space in the subtree is below a limit, where that limit is related to the size of the allocation request. However, that limit is too small; it does not account for both of the guard pages that will surround the allocated space, but only for one of them. Consequently, it permits the search to proceed through nodes that cannot produce a successful allocation for all the requested space. Fix that limit to improve search performance.
Reviewed by: alc, kib Submitted by: Weixi Zhu (wxzhu@rice.edu) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D35414
|