Date: Sun, 26 Dec 2004 06:44:53 -0600 From: Jonathan Wright <wrightcs@comcast.net> To: freebsd-emulation@freebsd.org Cc: Ash <omniBSD@speakeasy.net> Subject: Re: vmware3 - causing local net downstream 1/14 original speed, but upstream unchanged? Message-ID: <5.0.0.25.2.20041226055936.00ac6e88@mail.comcast.net> In-Reply-To: <41CC1747.1060104@speakeasy.net> References: <5.0.0.25.2.20041220150500.02899008@wheresmymailserver.com> <5.0.0.25.2.20041220150500.02899008@wheresmymailserver.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 07:19 AM 12/24/2004 -0600, you wrote: >Jonathan Wright wrote: >>Hello, >>After installing vmware3 and recompiling the kernel for various vmware3 >>changes, I now get about 1/14 the speed for all local network traffic >>downstream. *Upstream however, everything is about what it used to be. >>There are no other problems - strange kernel or vmware error messages, >>and the speed of vmware3 and my native bsd programs are excellent. This >>occurs after vmware3 is installed. Vmware3 does not have to be running >>for the downstream speed issue to be present. > >When you say "VMware does not have to be running", I assume you mean a >virtual machine is not running. VMWare puts your interface in promiscuous >mode. IIRC, the interface remains in promiscuous mode even when VMWare is >not running (unless you stop disable vmnet or use ifconfig -promisc to >disable promiscuous mode on your interface). I'm wondering if for some >reason promiscuous mode is affecting your speed. > >What happens if you exit out of a VMware virtual machine and then run the >following command: > > # /usr/local/etc/rc.d/001.vmware.sh stop > >Does your performance improve? If not, check to make sure the interface is >no longer in promiscuous mode (look for the word "PROMISC" in the first >line of output when you run "ifconfig vr0"). You can manually disable >promiscuous mode by running the following command: > > # ifconfig vr0 -promisc > Thank you. I tried the suggestion (001.vmware.sh stop, which did get both drivers out of promiscuous mode), and it gave an improvement, but it was strange. Instead of the ~500KB/s downstream I got anywhere from ~500KB/s to ~1500KB/s. I noticed that the more I downloaded, the more it would fall to ~500KB/s and would then hover there. Your suggestion got me to wonder if some other thing may not be unloading when running 001.vmware.sh stop. And I noticed that the bridge kernel modules were not unloaded, and would not unload manually if using kldunload. Without going into further detail, I found if you just don't use bridging at all, downstream will be the correct speed. So I changed to Host-Only and put in a NAT and whalla no problems.(typical 6-7MB/s):) I still wonder what the cause of the slow downstream in the bridging was. Either way, this is a better solution since I now have easier control of my Windows machine's network resources. Thanks for all your help! - Jonathan ===== >What is vr0 plugged into (hub or switch? brand?)? LinkSYS 5 port switch. (model EB1040) > You must change this at boot time by added the following in > /boot/loader.conf and then rebooting your system: > > debug.mpsafenet=0 Thank you! >>Below are the configuration options I set, and my system information. >>I appreciate any help! >>Thanks, >>- Jonathan >>5.3-RELEASE FreeBSD 5.3-RELEASE >>kernel is GENERIC plus these options: >> options NET_WITH_GIANT >> options HZ=1200 >>/boot/loader.conf (contains only): >> aio_load="YES" >>/etc/sysctl.conf (contains only): >> debug.mpsafenet=0 >> kern.ipc.shm_allow_removed=1 >>VMware settings (I'm only using bridged) >> vmnet1.Bridged = "YES" >> vmnet1.BridgeInterface = "vr0" >> vmnet1.HostOnlyAddress = "192.168.0.1" >> vmnet1.HostOnlyNetMask = "255.255.255.0" >>* - Speeds measured with bsd programs (outside the VM). Tried both FTP >>and a Samba connection to a machine that normally gives out data at 7MB/s. >> >>============================== >>Copyright (c) 1992-2004 The FreeBSD Project. >>Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >> The Regents of the University of California. All rights reserved. >>FreeBSD 5.3-RELEASE #6: Sun Dec 19 17:26:36 CST 2004 >> jonathan@jonathan.bluegrass:/usr/obj/usr/src/sys/JDW >>WARNING: Network stack Giant-free, but aio requires Giant. >> Consider adding 'options NET_WITH_GIANT' or setting debug.mpsafenet=0 >>Timecounter "i8254" frequency 1193182 Hz quality 0 >>CPU: AMD Athlon(tm) processor (1100.04-MHz 686-class CPU) >> Origin = "AuthenticAMD" Id = 0x642 Stepping = 2 >> >>Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR> >> >> AMD Features=0xc0440000<RSVD,AMIE,DSP,3DNow!> >>real memory = 603914240 (575 MB) >>avail memory = 581304320 (554 MB) >>npx0: [FAST] >>npx0: <math processor> on motherboard >>npx0: INT 16 interface >>acpi0: <VT8371 AWRDACPI> on motherboard >>acpi0: Power Button (fixed) >>Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 >>acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 >>cpu0: <ACPI CPU (3 Cx states)> on acpi0 >>acpi_button0: <Power Button> on acpi0 >>acpi_button1: <Sleep Button> on acpi0 >>pcib0: <ACPI Host-PCI bridge> port >>0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0 >>pci0: <ACPI PCI bus> on pcib0 >>agp0: <VIA 82C8363 (Apollo KT133A) host to PCI bridge> mem >>0xe8000000-0xebffffff at device 0.0 on pci0 >>pcib1: <PCI-PCI bridge> at device 1.0 on pci0 >>pci1: <PCI bus> on pcib1 >>pci1: <display, VGA> at device 0.0 (no driver attached) >>isab0: <PCI-ISA bridge> at device 7.0 on pci0 >>isa0: <ISA bus> on isab0 >>atapci0: <VIA 82C686B UDMA100 controller> port >>0xd000-0xd00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0 >>atapci0: Correcting VIA config for southbridge data corruption bug >>ata0: channel #0 on atapci0 >>ata1: channel #1 on atapci0 >>uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 7 at device 7.2 >>on pci0 >>uhci0: [GIANT-LOCKED] >>usb0: <VIA 83C572 USB controller> on uhci0 >>usb0: USB revision 1.0 >>uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >>uhub0: 2 ports with 2 removable, self powered >>ums0: Logitech USB Optical Mouse, rev 1.10/21.00, addr 2, iclass 3/1 >>ums0: 3 buttons and Z dir. >>uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 7 at device 7.3 >>on pci0 >>uhci1: [GIANT-LOCKED] >>usb1: <VIA 83C572 USB controller> on uhci1 >>usb1: USB revision 1.0 >>uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >>uhub1: 2 ports with 2 removable, self powered >>pci0: <bridge, PCI-unknown> at device 7.4 (no driver attached) >>sym0: <875> port 0xdc00-0xdcff mem >>0xef000000-0xef000fff,0xef001000-0xef0010ff irq 11 at device 9.0 on pci0 >>sym0: Tekram NVRAM, ID 7, Fast-20, SE, parity checking >>sym0: [GIANT-LOCKED] >>vr0: <VIA VT3043 Rhine I 10/100BaseTX> port 0xe000-0xe07f mem >>0xef002000-0xef00207f irq 10 at device 15.0 on pci0 >>miibus0: <MII bus> on vr0 >>amphy0: <Am79C873 10/100 media interface> on miibus0 >>amphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >>vr0: Ethernet address: 00:50:ba:04:37:16 >>pci0: <multimedia, audio> at device 17.0 (no driver attached) >>pci0: <input device> at device 17.1 (no driver attached) >>fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 >>fdc0: [FAST] >>fd0: <1440-KB 3.5" drive> on fdc0 drive 0 >>ppc0: <Standard parallel printer port> port 0x278-0x27f irq 5 on acpi0 >>ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode >>ppbus0: <Parallel port bus> on ppc0 >>ppbus0: IEEE1284 device found /NIBBLE >>Probing for PnP devices on ppbus0: >>ppbus0: < Brother MFC 4350> HBP,PCL4 >>plip0: <PLIP network interface> on ppbus0 >>lpt0: <Printer> on ppbus0 >>lpt0: Interrupt-driven port >>ppi0: <Parallel I/O> on ppbus0 >>atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 >>atkbd0: <AT Keyboard> irq 1 on atkbdc0 >>kbd0 at atkbd0 >>atkbd0: [GIANT-LOCKED] >>pmtimer0 on isa0 >>sc0: <System console> at flags 0x100 on isa0 >>sc0: VGA <16 virtual consoles, flags=0x300> >>sio0: configured irq 4 not in bitmap of probed irqs 0 >>sio0: port may not be enabled >>sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 >>sio0: type 8250 or not responding >>sio1: configured irq 3 not in bitmap of probed irqs 0 >>sio1: port may not be enabled >>vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 >>Timecounter "TSC" frequency 1100043983 Hz quality 800 >>Timecounters tick every 0.833 msec >>acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0% >>ad0: 8693MB <WDC AC29100D/J74OA30K> [17662/16/63] at ata0-master UDMA66 >>acd0: DVDROM <DVD-ROM DVD-16X6S/DSG2> at ata1-master UDMA33 >>Waiting 15 seconds for SCSI devices to settle >>cd0 at sym0 bus 0 target 0 lun 0 >>cd0: <PLEXTOR CD-ROM PX-40TW 1.04> Removable CD-ROM SCSI-2 device >>cd0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) >>cd0: Attempt to query device size failed: NOT READY, Medium not present - >>tray closed >>Mounting root from ufs:/dev/ad0s1a >>WARNING: driver "vmmon" used unreserved major device number 200 >>vmmon: Module vmmon: registered with major=200 minor=0 tag=$Name: >>build-570 (3.2.x mvm) $ >>vmmon: Module vmmon: initialized >>vmnet1: Ethernet address: 00:bd:15:76:00:01 >>vr0: promiscuous mode enabled >>vmnet1: promiscuous mode enabled >>_______________________________________________ >>freebsd-emulation@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-emulation >>To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.0.0.25.2.20041226055936.00ac6e88>