一句话:提出 NetContainer,通过缓存访问开销引导的页着色实现容器化 NFV 的细粒度硬件资源管理,成功呼叫率提升 48%。
容器化 NFV 可提升 VNF 供给速度与运行时性能,但典型 NFV 工作负载在容器上表现不佳。论文将共享宿主 OS 网络栈识别为主要瓶颈:流量处理涉及大量中间内存缓冲,造成严重的最后一级缓存污染,而现有内存分配策略未利用缓冲区局部性与共享信息。为此提出 NetContainer,一种面向容器化 NFV 的细粒度硬件资源管理框架。它采用缓存访问开销引导的页着色,协同优化流间与流内缓存访问开销,将低开销缓冲页映射至同一 LLC 分区;并用 footprint 理论估计开销、以最小费用最大流模型指导映射。该框架在 Linux 内核实现,真实 NFV 工作负载下成功呼叫率较传统页着色分配器提升 48%。
With exploding traffic stuffing existing network infra-structure, today's telecommunication and cloud service providers resort to Network Function Virtualization (NFV) for greater agility and economics. Pioneer service provider such as AT&T proposes to adopt container in NFV to achieve shorter Virtualized Network Function (VNF) provisioning time and better runtime performance. However, we characterize typical NFV work-loads on the containers and find that the performance is unsatisfactory. We observe that the shared host OS net-work stack is the main bottleneck, where the traffic flow processing involves a large amount of intermediate memory buffers and results in significant last level cache pollution. Existing OS memory allocation policies fail to exploit the locality and data sharing information among buffers. In this paper, we propose NetContainer, a software framework that achieves fine-grained hardware resource management for containerized NFV platform. NetContainer employs a cache access overheads guided page coloring scheme to coordinately address the inter-flow cache access overheads and intra-flow cache access overheads. It maps the memory buffer pages that manifest low cache access overheads (across a flow or among the flows) to the same last level cache partition. NetContainer exploits a footprint theory based method to estimate the cache access overheads and a Min-Cost Max-Flow model to guide the memory buffer mappings. We implement the NetContainer in Linux kernel and extensively evaluate it with real NFV workloads. Exper-imental results show that NetContainer outperforms conventional page coloring-based memory allocator by 48% in terms of successful call rate.