简体   繁体   English

进程在不同计算机上的虚拟内存大小

[英]process's virtual memory size on different machines

Does virtual memory of process can have different size on different machines (CPU, memory)? 进程的虚拟内存在不同的机器(CPU,内存)上可以具有不同的大小吗? The process does the same job on both machines. 该过程在两台计算机上执行相同的工作。

The platform is RHEL 5.3 (kernel 2.6.18) and the process is C++ compiled by gcc (4.1.2). 该平台是RHEL 5.3(内核2.6.18),进程是由gcc(4.1.2)编译的C ++。

If the OS/kernel, or any loaded modules (or even the installed .so version of the g++ standard library) were different between the hosts, I don't see that you could necessarily rely on the virtual memory footprint being identical. 如果主机之间的OS /内核或任何加载的模块(甚至是g ++标准库的已安装.so版本)都不相同,那么我看不到您一定可以依靠相同的虚拟内存占用空间。

Even if all of those things were identical, but the total memory in the machine was different, it still seems possible that the kernel memory manager could behave in a different way such that the memory size would still differ. 即使所有这些都是相同的,但是机器中的总内存是不同的,内核内存管理器似乎仍然可能以不同的方式运行,从而内存大小仍然可能不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM