arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.05540cs.DBcs.OS
收藏

跃进:在用户空间实现高效可靠的细粒度NUMA迁移

Taking the Leap: Efficient and Reliable Fine-Grained NUMA Migration in User-space

Johannes Gutenberg University(约翰内斯·古腾堡大学)

Felix Schuhknecht, Nick Rassau

AI总结:

提出一种用户空间细粒度NUMA迁移方法page_leap(),实现高效可靠页面迁移,支持并发写入和自适应迁移粒度。

摘要:

现代多插槽架构提供单一虚拟地址空间,但物理上将主内存分成多个区域,每个区域连接到一个CPU及其核心。虽然这简化了使用,但开发者必须意识到非均匀内存访问(NUMA),其中线程在本地NUMA区域的核心上访问显著更便宜,而从远程区域访问则更昂贵。显然,如果在多个区域的核心上并行化查询回答,则查询操作的数据库部分应分布在相同区域以确保本地访问。由于当前的数据放置可能不符合这一要求,因此可以将页面从一个NUMA区域迁移到另一个区域以改善情况。为此,有不同的选项:一种是依赖于Linux中集成的自动NUMA平衡,其通过观察的访问模式和频率进行引导。另一种是通过系统调用move_pages()主动触发迁移。不幸的是,这两种变体在功能集和性能方面都有显著缺点。作为替代方案,我们提出了一种新的用户空间迁移方法,称为page_leap(),它能够通过利用虚拟内存子系统的特性,以高性能异步方式执行页面迁移。该方法是(a)由用户主动触发的,(b)确保所有页面最终被迁移,(c)正确处理并发写入,(d)支持内存池,(e)根据工作负载自适应调整迁移粒度,(f)支持小页面和大页面。

英文摘要:

Modern multi-socket architectures offer a single virtual address space, but physically divide main-memory across multiple regions, where each region is attached to a CPU and its cores. While this simplifies the usage, developers must be aware of non-uniform memory access (NUMA), where an access by a thread running on a core-local NUMA region is significantly cheaper than an access from a core-remote region. Obviously, if query answering is parallelized across the cores of multiple regions, then the portion of the database on which the query is operating should be distributed across the same regions to ensure local accesses. As the present data placement might not fit this, migrating pages from one NUMA region to another can be performed to improve the situation. To do so, different options exist: One option is to rely on automatic NUMA balancing integrated in Linux, which is steered by the observed access patterns and frequency. Another option is to actively trigger migration via the system call move_pages(). Unfortunately, both variants have significant downsides in terms of their feature set and performance. As an alternative, we propose a new user-space migration method called page_leap() that can perform page migration asynchronously at a high performance by exploiting features of the virtual memory subsystem. The method is (a) actively triggered by the user, (b) ensures that all pages are eventually migrated, (c) handles concurrent writes correctly, (d) supports pooled memory, (e) adaptively adjusts its migration granularity based on the workload, and (f) supports both small pages and huge pages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑