Some Tips for VMware

  1. Network driver
  2. The default lnc driver is GIANT-locked, and is dropped in FreeBSD 7. The replacement for lnc is le and it’s present in FreeBSD 6.2 and newer, but it’s not included in GENERIC.
    So, put device le in the kernel configuration and re-compile kernel.

    Actually, VMWare can emulate Intel e1000 Gigabit Ethernet (em) hardware instead of the AMD Lance (pcn/lnc/le). To make it works, edit the .vmx file and put ethernet0.virtualDev="e1000" near the ethernet0 settings (indeed, anywhere is ok).

  3. Reduce kern.hz
  4. Users may experience faster of slower time gap between guest OS and the host. Try to add a line like kern.hz=100 in /boot/loader.conf.

    The kernel’s timer frequency (“HZ”) in FreeBSD 6.x is set to 1000 Hz. High HZ setting has a backdraw on simulated machine’s performance because it cost much time to handling timer interrupts instead of doing real work.

  5. Sufficient Memory makes VM Runs Smoothly
  6. Given sufficient memory, several options can be tuned:
    * Set enough memory for guest OS. The default value assigned by VMware satisfied the minimum requirement only.

    * Edit>Preferences and click the Memory tab. Choose “Fit all virtual machine memory into reserved host RAM”

    * Disable Memory Trimming. VMWare internal memory swapping and make the virtual machine fit in in the physical memory of the host for best performance.

    * Disabling Page Sharing. Page sharing decreases host memory usage, but it does consume system resources. Especially, I/O bandwidth. So, add the following line to the virtual machine configuration (.vmx) file:
    sched.mem.pshare.enable = "FALSE"

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *