Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    VMWare Pentest lab: Extremely high CPU on host

    Scheduled Pinned Locked Moved Virtualization
    85 Posts 29 Posters 70.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      timotl
      last edited by

      I have been seeing this under ESXi 5 also.
      I installed the vendor supplied tools and am using a single trunked E1000.

      After trying all of the nic settings, I happened to disable powerd and the CPU usage went down by more than half.
      Can anyone else confirm this?

      -timotl

      1 Reply Last reply Reply Quote 0
      • L
        loftyDan
        last edited by

        I too have this issue, using ESXi 5 (and previously on 4.1).  Changing the powerd settings did not resolve the issue for me.  I've tried 2.0 i386, my primary config, 2.1 i386 and 2.1 AMD64.  For both dev builds I tried with my config backup, and a clean install, and the results were always the same.  pfSense reports 16-20% CPU load, while ESXi reports a 62% load (on a Xeon X3440 @ 2.53GHz).  This is with a download speed of about 3.6 MB/sec (29 Mb/sec).  In every case Open-VM-Tools has been installed and I've been using the E1000 NIC.  Speeds directly connected to the modem yield 31 Mb/sec.

        If there is anything else I can test, or any more information I can provide, please let me know.  I'd love for this problem to get resolved.

        1 Reply Last reply Reply Quote 0
        • V
          Veni
          last edited by

          @loftyDan:

          I too have this issue, using ESXi 5 (and previously on 4.1).  Changing the powerd settings did not resolve the issue for me.  I've tried 2.0 i386, my primary config, 2.1 i386 and 2.1 AMD64.  For both dev builds I tried with my config backup, and a clean install, and the results were always the same.  pfSense reports 16-20% CPU load, while ESXi reports a 62% load[…]

          I'm seeing the same thing but on a single x5650 @ 2.67 GHz.

          If i try to limit the CPU usage from the vSphere client then i don't get the performance i'm after(aprox 150 Mbps). Instead i get around 20-22 Mbps.
          So it sounds as if the usage is real somehow, otherwise why whould i see performance issues when giving pfSense a maximum of 1-1.5 GHz?

          1 Reply Last reply Reply Quote 0
          • K
            kkrauth
            last edited by

            Just to chime in on this thread, as I'm seeing the same issues. I'm running the following release:
            [2.0.1-RELEASE][root@pfSense.localdomain]/root(7): uname -a
            FreeBSD pfSense.localdomain 8.1-RELEASE-p6 FreeBSD 8.1-RELEASE-p6 #0: Mon Dec 12 18:15:35 EST 2011    root@FreeBSD_8.0_pfSense_2.0-AMD64.snaps.pfsense.org:/usr/obj./usr/pfSensesrc/src/sys/pfSense_SMP.8  amd64

            within ESXi 5. I installed open-vm-tools and vmware's provided drivers for VMXNET3 adapter. Both internal/extenal NICs are running with the VMXNET3 driver. The problem was exactly the same using E1000 drivers.

            The attached screenshot shows what is happening when the network is pretty much idle. During load, this spikes up even higher, even though pFsense top reports almost no usage whatsoever. I tried both with powerd turned on and off.

            pfsense.png
            pfsense.png_thumb

            1 Reply Last reply Reply Quote 0
            • M
              marsboer
              last edited by

              Same issue on fresh pfSense 2.0.1 install running on KVM (Proxmox VE) with smp kernel. With only a couple of mbits of traffic the CPU usage increases massively on the physical host (above 50%) running on single virtual CPU and 512 MB RAM.

              pfSense does not support virtio (the paravirtualized devices for KVM) so I thought using emulated NICs was the main reason for the bad CPU performance even under light load, but now I am starting to think that this is may be a more generic problem with pfSense in virtualized setups in general.

              1 Reply Last reply Reply Quote 0
              • C
                clayton_ross
                last edited by

                i too am having the same problem.  pfsence 2.0 64, esxi 5.0  2 cores 2 nics vmtools

                1 Reply Last reply Reply Quote 0
                • I
                  iFloris
                  last edited by

                  As most others on this thread, I too have run into this problem.
                  Something that is not clear to me is if using e1000 is the source of such increased cpu usage on esx.
                  And if that is the case, does switching to another adapter, such as flexible or vmxnet 2/3 help in reducing load for any of you?

                  one layer of information
                  removed

                  1 Reply Last reply Reply Quote 0
                  • K
                    kkrauth
                    last edited by

                    @iFloris:

                    As most others on this thread, I too have run into this problem.
                    Something that is not clear to me is if using e1000 is the source of such increased cpu usage on esx.
                    And if that is the case, does switching to another adapter, such as flexible or vmxnet 2/3 help in reducing load for any of you?

                    I tried all three virtual adapters and the behaviour was the same.

                    1 Reply Last reply Reply Quote 0
                    • M
                      Mattofsweden
                      last edited by

                      I'm seeing the same issues here on a DELL PowerEdge R310 Quad Core Xeon:
                      Using ESXi 4.1 and pfSense 2.0, 2.0.1, old-2.1-dev in i386/amd64 flavors
                      Using ESXi 5.0 and pfSense 2.0.1 and 2.1-dev in i386/amd64 flavors from feb/march/april.

                      Same results on other host hardware also (Two DELL Servers with virtualized environment at home for testing purposes.)

                      Have not tried the VMXNET due to others not seeing any performance gain, only been using virtualized E1000 so far.

                      What I'm using a lot is VLANs, which might be a contributing culprit for some of us? Assigning VLANs directly in switch configuration in vSphere, or natively in pfSense has had "largely" the same results.

                      I absolutely love pfSense, now that I've got a hang of it, and have deployed quite a few in different scenarios past few months. But, not to sound negative here, there gotta be something we can do about these high loads in virtualized environments. I had to switch over to bare-metal, on slightly aged HW, on our lab network which is a bit unsatisfying. I loose a bit of my redundancy (if one VM or host fails, just fire up the copy or using HA Sync).

                      I suppose it's underlying FreeBSD issue?
                      I don't really know how to set up something similar in any of the *BSD flavors, and honestly can't find the time to learn currently, but surely one of you guys could test a simple routing setup using FreeBSD/OpenBSD/NetBSD and see if there's the same performance issue? (Maybe with/without VLAN incl. trunking/non-native.)

                      Regards,
                      Mattias

                      IT Teacher & Networking Consultant

                      1 Reply Last reply Reply Quote 0
                      • G
                        goodspeedal
                        last edited by

                        Just let you know, there are one more case for reference.

                        I have tested the pfsense with the follow spec

                        1. DELL 9200
                           i)Build-in LAN 82566DC Gigabit LAN Cards
                           ii)3 Intel 82541 Gigabit LAN Cards
                        2. VM under ESXi-5-U1
                           i)Setting: only one pfsense VM with FreeBSD 64bit
                           ii)2 e1000 virtual LAN Cards
                           iii)1 vCPU, 1024MB RAM
                        3. pfsense with "Open VM Tools package", "Snort" installed
                           i) Assigned one LAN for each interfaces(WAN, LAN)

                        Result:
                        I have just started the machine to test the stability, not even use it. It will freeze after a day. The freeze will only in the VM level, not affect the ESXi.

                        Please let me know if you need any information from my setting as well. Since this is only a test machine, i wanna to put the pfsense in the DELL R610 later. But the migration will be on held at the moment. Thanks for any fix for the issue.

                        1 Reply Last reply Reply Quote 0
                        • D
                          dLockers
                          last edited by

                          Have you tried enabling vt-d and passing the intel nics directly to pfsense?

                          1 Reply Last reply Reply Quote 0
                          • S
                            Supermule Banned
                            last edited by

                            So you want to risk frontend firewall with direct contact with the physical Nics on the server?

                            Uninstall the vmtools package and reboot. Sed if it solves the issue…

                            1.2.3 doesnt have any of this at all. Running in about 3% on the physical server.

                            1 Reply Last reply Reply Quote 0
                            • G
                              goodspeedal
                              last edited by

                              @dLockers:

                              Have you tried enabling vt-d and passing the intel nics directly to pfsense?

                              Just checked with test system (DELL 9200) is not support pass-thr even the motherboard is enabled vt-d.
                              But why can't i just use 2 virtual lan cards and connect each of them to a separate v-switch. And let other 2 real lan cards to connect the v-switches.
                              It will be the same as setting as you suggested.

                              1 Reply Last reply Reply Quote 0
                              • S
                                Supermule Banned
                                last edited by

                                Anyone solved this???

                                Has anyone tried without the VmTools package??

                                1 Reply Last reply Reply Quote 0
                                • K
                                  KalleL
                                  last edited by

                                  I'm having the same problem running pfSense on ESXi 5.
                                  I have also tried without vmTools package installed but the result is the same, CPU usage is extremely high.

                                  Things that needs to be sorted out:

                                  Does everybody running pfSense on ESXi 4/5 see this high CPU usage?
                                  Is this problem related to FreeBSD or is it related to pfSense?

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Supermule Banned
                                    last edited by

                                    I dont see it on the 1.2.3 version.

                                    Pls test on your system to verify.

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      biggsy
                                      last edited by

                                      Certainly no problem here. 
                                      ESXi 5.0.0 build 623860
                                      2.0.1-RELEASE (i386) built on Mon Dec 12 18:24:17 EST 2011 with VMtools package installed
                                      HP dc7900 SFF Core2 duo E7600 3.06 GHz with 8 GB and four Intel NICs (inc. 1 on board)

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Supermule Banned
                                        last edited by

                                        test the performance graph instead in ESXi instead of the one in PFSense….

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          kaspro
                                          last edited by

                                          Hi everyone,
                                          I had the same issue running pfsense V2.0.1 on KVM.
                                          I noticed that I had some systeme- time issues (I'm running on a mobile CPU).
                                          I resolved it with the following options:
                                          Go to the shell, and with vi edit the following files:

                                          • /etc/sysctl.conf: append:      kern.timecounter.hardware=TSC    ….at the end
                                          • /boot/loader.conf: append:      kern.hz="100"    ....at the end
                                            ...restart, so far - CPU usage OK ;)

                                          Good luck,
                                          Cheers,
                                          Chris

                                          1 Reply Last reply Reply Quote 0
                                          • V
                                            Veni
                                            last edited by

                                            @kaspro:

                                            • /etc/sysctl.conf: append:      kern.timecounter.hardware=TSC    ….at the end
                                            • /boot/loader.conf: append:      kern.hz="100"    ....at the end
                                              ...restart, so far - CPU usage OK ;)

                                            Thanks for the tip :).

                                            But no-go on my end ???. Still the same, running @ 1800-2400 MHz(according to ESXi) for only 20 Mbps traffic.
                                            pfSense shows only 4% CPU usage.

                                            It sounds to me that it must be close to the network part between the guest(pfSense higher than 1.2.3) and host.
                                            Because my 1.2.3 guest that only has approx. 1,2 Mbps of traffic shows approx. 29 MHz according to ESXi.

                                            I am running a Sony Ericsson USB connected UMTS cellular phone as a backup WAN. Have not excluded it as
                                            the culprit. That is the reason why i have a pfSense 2.x running, because of the UMTS backup.
                                            1.2.3 did not have support for these kind of connections so it takes care of a different part of the network.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.