The invention discloses a fat node on the process control method and device; the method comprises: obtaining periodic fat node memory and exchange current partitions in memory; determining whether the storage space currently used in memory size to exceed the preset threshold or memory, threshold partition and the exchange of storage space currently used in the partition size reaches or exceeds the preset, get the judgment result; if the judgment result is, according to the predetermined strategy in the current operation in the process of selecting the target process; close the selected target extraction process. The present invention for for multiple users, multi task operation can effectively prevent the fat node, because the running program memory demands more than the actual physical memory, then cause the whole system downtime situation.
【技术实现步骤摘要】
本专利技术涉及计算机领域,具体涉及一种胖节点上的进程控制方法及装置。
技术介绍
目前工业和科研领域对于大规模计算的需求越来越多,而这样的计算需求往往需 要在有大量CPU计算核心数、内存资源、存储空间,高速网络通讯的计算节点上进行,这也 就使得胖节点越来越多的被用户们所使用,成为计算领域的主力军。作为一个大规模的计算节点,通常使用的是多用户、多任务的Linux操作系统。由 于对运算效率的要求,用户都不希望程序使用到SWAP(交换)分区,因此SWAP分区往往相 对系统的实际物理内存较小。这也就使得在胖节点上很难进行大规模的物理内存与SWAP 之间的内存交换,因此要求系统中运行的进程所需要的内存容量要尽量保证在物理内存大 小以内,一旦超过物理内存实际大小,就很有可能导致整个系统的宕机,使得该胖节点上正 在进行的所有运算都功亏一篑。而对于一个在胖节点上进行运算的用户,一般很难对自己运行的程序在计算的各 个不同阶段所需要的实际内存数量有非常准确的估计,同时也不方便时刻监控自己的运算 程序对内存的使用情况。
技术实现思路
本专利技术要解决的技术问题是对于可供多个用户使用、多个 ...
【技术保护点】
1.一种胖节点上的进程控制方法,包括:周期性获取胖节点上内存和交换分区中当前使用的存储空间的大小;判断是否所述内存中当前使用的存储空间的大小达到或超过预设的内存阈值,并且所述交换分区中当前使用的存储空间的大小达到或超过预设的分区阈值,得到判断结果;如果所述判断结果为是,则根据预定的策略在当前运行的进程中选取出目标进程;关闭所选取出的目标进程。
【技术特征摘要】
【专利技术属性】
技术研发人员:徐斌,
申请(专利权)人:浪潮北京电子信息产业有限公司,
类型:发明
国别省市:11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。