LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1075|回复: 3

vmware内存分配的时机在何时?

[复制链接]
发表于 2010-1-6 14:48:42 | 显示全部楼层 |阅读模式
求教一个问题:
debian下linux版本的vmware中,
vmware分配内存,是在启动服务时就分配呢?
还是在启动程序之后才分配呢?
------
我注意到,开机启动debian时,伴随启动了5个vmware的服务:
虚拟网卡
虚拟机监视器
虚拟通信接口
块文件系统
共享内存启用
发表于 2010-1-6 15:18:47 | 显示全部楼层
启动guest系统时才分配内存。

vmware还没那么蠢....
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-8 03:49:16 | 显示全部楼层
Post by Celinda;2062388
启动guest系统时才分配内存。

vmware还没那么蠢....

那么,我开机引导时; 加载的vmware服务列表中最后一项:
共享内存启用
---这个服务做了什么事呢?
回复 支持 反对

使用道具 举报

发表于 2010-1-8 07:12:33 | 显示全部楼层
应该只是检查下共享内存设置,要上班了,没仔细看。
  1. # Make sure the system has enough shared memory available to cover shmmaxMinValue.
  2. # To handle overflow/wrapping, check that shmmax is greater than 1 since any overflow
  3. # will make shmmax look negative.  At least until shmmax or shmmaxMinValue wrap around
  4. # again.
  5. vmwareCheckSharedMemory() {
  6.    if [ -f "$shmmaxPath" ]; then
  7.       shmmax=`cat $shmmaxPath`
  8.       # Account for numbers that are too large that they wrap around and alias
  9.       # to a smaller number or they are outright set to -1.  If "1 < XXXX" fails
  10.       # then the XXX value is # out of bounds.  The only acceptable combo is that
  11.       # both values satisfy that condition, else report that the max value the
  12.       # system supports may not satisfy this programs requirements.
  13.       if  ((  $shmmax < 1 )) || (( $shmmaxMinValue < 1 )) \
  14.        || (( $shmmax < $shmmaxMinValue )) ; then
  15.          echo "$shmmaxMinValue" > "$shmmaxPath"
  16.          echo ""
  17.          echo "Setting the max shared memory the system will allow to $shmmaxMinValue."
  18.          echo ""
  19.       fi
  20.    fi
  21.    return 0
  22. }
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表