智能计算机与应用2025,Vol.15Issue(1) :75-80.DOI:10.20169/j.issn.2095-2163.250112

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

Freezing method for database based on cgroup when out of memory

杨铸 高琳
智能计算机与应用2025,Vol.15Issue(1) :75-80.DOI:10.20169/j.issn.2095-2163.250112

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

Freezing method for database based on cgroup when out of memory

杨铸 1高琳2
扫码查看

作者信息

  • 1. 北京东方金信科技股份有限公司天津河西区分公司,天津 300210
  • 2. 天津市北海通信技术有限公司,天津 300384
  • 折叠

摘要

分布式数据库作为一种大数据应用软件,需要使用有限的系统资源完成复杂并发计算和存储任务.海量的数据计算对内存需求也很大,为了多任务资源隔离,需要对不同任务组进行内存限制.当内存超限(OOM)时,操作系统默认强制杀死进程是高风险行为.为此,本文从一个简化应用开始,探求一种基于Linux内核控制群组(cgroup)功能的内存超限进程冻结与解冻技术,并应用于开源的Greenplum Database分布式数据库.

Abstract

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.

关键词

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

Key words

big data/distributed database/cgroup/memory

引用本文复制引用

出版年

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

智能计算机与应用

影响因子:0.357
ISSN:2095-2163
段落导航相关论文