首页|基于cgroup的数据库内存超限冻结方法

基于cgroup的数据库内存超限冻结方法

扫码查看
分布式数据库作为一种大数据应用软件,需要使用有限的系统资源完成复杂并发计算和存储任务。海量的数据计算对内存需求也很大,为了多任务资源隔离,需要对不同任务组进行内存限制。当内存超限(OOM)时,操作系统默认强制杀死进程是高风险行为。为此,本文从一个简化应用开始,探求一种基于Linux内核控制群组(cgroup)功能的内存超限进程冻结与解冻技术,并应用于开源的Greenplum Database分布式数据库。
Freezing method for database based on cgroup when out of memory
As a big data application software,distributed database needs limited system resources to complete complex concurrent computing and storage tasks.Massive data computing also requires a lot of memory,and in order to isolate multi-task resources,it is necessary to limit memory for different task groups.When out of memory(OOM),the operating system defaults to forcing to kill processes as a high-risk behavior.Therefore,this research starts with a simplified application,explores a method of process freezing and unfreezing based on the Linux kernel control group(cgroup)feature when OOM,and then applies it to the open-source distributed database Greenplum Database.

big datadistributed databasecgroupmemory

杨铸、高琳

展开 >

北京东方金信科技股份有限公司天津河西区分公司,天津 300210

天津市北海通信技术有限公司,天津 300384

大数据 分布式数据库 控制群组 内存

2025

智能计算机与应用
哈尔滨工业大学

智能计算机与应用

影响因子:0.357
ISSN:2095-2163
年,卷(期):2025.15(1)