View Single Post
  #2   (View Single Post)  
Old 11th April 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

If you run FreeBSD in a VPS you will never get the performance of running in on the bare iron, even with an VPS optimized kernel.


The FreeBSD handbook mentions the following in 23.2 FreeBSD as a Guest OS

Quote:
After FreeBSD has been successfully installed on Mac OS X with Parallels, there are a number of configuration steps that can be taken to optimize the system for virtualized operation.
  • Set Boot Loader Variables

    The most important step is to reduce the kern.hz tunable to reduce the CPU utilization of FreeBSD under the Parallels environment. This is accomplished by adding the following line to /boot/loader.conf:

    kern.hz=100

    Without this setting, an idle FreeBSD Parallels guest will use roughly 15% of the CPU of a single processor iMacĀ®. After this change the usage will be closer to 5%.
  • Create a New Kernel Configuration File

    All of the SCSI, FireWire, and USB device drivers can be removed from a custom kernel configuration file. Parallels provides a virtual network adapter used by the ed(4) driver, so all network devices except for ed(4) and miibus(4) can be removed from the kernel.
At http://www.freebsd.org/doc/en_US.ISO...nelconfig.html you find the authoritative source on kernel configuration. I would rather trust that resoource than some outdated, dusty, howto found on a deserted attic on the Internet

BTW If you ever are going to use OpenBSD you have to kick the habit of kernel tuning.
From http://www.openbsd.org/faq/faq5.html#Why :
Quote:
More people have broken their system by trying to tweak their kernel than have improved system operation. There are some people that believe that you must customize your kernel and system for optimum performance, but this is not true for OpenBSD. Only the most advanced and knowledgeable users with the most demanding applications need to worry about a customized kernel or system.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote