From owner-freebsd-questions@FreeBSD.ORG Sun Aug 31 15:34:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 296F61065686 for ; Sun, 31 Aug 2008 15:34:36 +0000 (UTC) (envelope-from me@davidpolak.com) Received: from smtpauth19.prod.mesa1.secureserver.net (smtpauth19.prod.mesa1.secureserver.net [64.202.165.30]) by mx1.freebsd.org (Postfix) with SMTP id F1AB88FC15 for ; Sun, 31 Aug 2008 15:34:35 +0000 (UTC) (envelope-from me@davidpolak.com) Received: (qmail 9185 invoked from network); 31 Aug 2008 15:34:35 -0000 Received: from unknown (24.252.31.225) by smtpauth19.prod.mesa1.secureserver.net (64.202.165.30) with ESMTP; 31 Aug 2008 15:34:33 -0000 From: "David Polak" To: Date: Sun, 31 Aug 2008 10:34:20 -0500 Message-ID: <000701c90b7f$09d29e80$1d77db80$@com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0008_01C90B55.20FC9680" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AckLfwkpi09pvz16TQKm8P0W4FrXVQ== Content-Language: en-us X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD 7.0-RELEASE getting terrible throughput using sk0 adapter X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2008 15:34:36 -0000 This is a multipart message in MIME format. ------=_NextPart_000_0008_01C90B55.20FC9680 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I recently leased a godaddy.com dedicated server, and while they didn't offer freebsd as an option, I used the fine guide at http://www.freebsd.org/doc/en/articles/remote-install/ to get freebsd installed. I noticed that the installation was taking a long time with ftp as the source media, but I had thought that maybe I just picked a bad mirror. After the install was complete, and I started to install some ports, I was still seeing really slow download speeds. I then decided to see if something was wrong with the system by downloading the same image from the same source that I downloaded on linux in order to bootstrap freebsd and the speed difference was appaling. It had downloaded at 10.29 MB/s. Once freebsd was installed, It will only go at 60KB/s.. I have tried messing with the options mentioned here: http://spatula.net/blog/2007/04/freebsd-network-performance-tuning.html but that provided no results. Here is some info about my setup: dmesg and the output from sysctl net.inet are attached as files fsserver# netstat -I sk0 Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll sk0 1500 00:30:1b:44:4d:4d 16318 0 13163 0 0 sk0 1500 72.167.50.0 ip-72-167-50-116. 15896 - 13161 - - fsserver# vmstat -i interrupt total rate irq18: fwohci0+ 2 0 irq19: skc0 uhci1+ 51928 46 cpu0: timer 2138741 1921 cpu1: timer 2128730 1912 Total 4319401 3880 %netstat -I sk0 Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll sk0 1500 00:30:1b:44:4d:4d 32321 0 25510 0 0 sk0 1500 72.167.50.0 ip-72-167-50-116. 30854 - 25508 - - any help is greatly appreciated, let me know if there is any more info that I have forgotten to include that might be needed. ------=_NextPart_000_0008_01C90B55.20FC9680 Content-Type: application/octet-stream; name="dmesg.boot" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="dmesg.boot" Copyright (c) 1992-2008 The FreeBSD Project.=0A= Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994=0A= The Regents of the University of California. All rights reserved.=0A= FreeBSD is a registered trademark of The FreeBSD Foundation.=0A= FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008=0A= root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC=0A= Timecounter "i8254" frequency 1193182 Hz quality 0=0A= CPU: Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz (2133.96-MHz = 686-class CPU)=0A= Origin =3D "GenuineIntel" Id =3D 0x6f6 Stepping =3D 6=0A= = Features=3D0xbfebfbff=0A= = Features2=3D0xe3bd=0A= AMD Features=3D0x20100000=0A= AMD Features2=3D0x1=0A= Cores per package: 2=0A= real memory =3D 1071513600 (1021 MB)=0A= avail memory =3D 1034960896 (987 MB)=0A= ACPI APIC Table: =0A= FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs=0A= cpu0 (BSP): APIC ID: 0=0A= cpu1 (AP): APIC ID: 1=0A= ioapic0: Changing APIC ID to 4=0A= ioapic0 irqs 0-23 on motherboard=0A= kbd1 at kbdmux0=0A= ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, = RF5413)=0A= hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:59:27)=0A= acpi0: on motherboard=0A= acpi0: [ITHREAD]=0A= acpi0: Power Button (fixed)=0A= acpi0: reservation of 0, a0000 (3) failed=0A= acpi0: reservation of 100000, 3fce0000 (3) failed=0A= Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000=0A= acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0=0A= acpi_hpet0: iomem 0xfed00000-0xfed003ff on = acpi0=0A= device_attach: acpi_hpet0 attach returned 12=0A= cpu0: on acpi0=0A= acpi_perf0: on cpu0=0A= p4tcc0: on cpu0=0A= cpu1: on acpi0=0A= est1: on cpu1=0A= est: CPU supports Enhanced Speedstep, but is not recognized.=0A= est: cpu_vendor GenuineIntel, msr 82a082a0600082a=0A= device_attach: est1 attach returned 6=0A= p4tcc1: on cpu1=0A= acpi_button0: on acpi0=0A= pcib0: port 0xcf8-0xcff on acpi0=0A= pci0: on pcib0=0A= vgapci0: port 0xff00-0xff07 mem = 0xfdf00000-0xfdf7ffff,0xd0000000-0xdfffffff,0xfdf80000-0xfdfbffff irq 16 = at device 2.0 on pci0=0A= agp0: on vgapci0=0A= agp0: detected 764k stolen memory=0A= agp0: aperture size is 256M=0A= uhci0: port 0xfe00-0xfe1f irq 23 at = device 29.0 on pci0=0A= uhci0: [GIANT-LOCKED]=0A= uhci0: [ITHREAD]=0A= usb0: on uhci0=0A= usb0: USB revision 1.0=0A= uhub0: on usb0=0A= uhub0: 2 ports with 2 removable, self powered=0A= uhci1: port 0xfd00-0xfd1f irq 19 at = device 29.1 on pci0=0A= uhci1: [GIANT-LOCKED]=0A= uhci1: [ITHREAD]=0A= usb1: on uhci1=0A= usb1: USB revision 1.0=0A= uhub1: on usb1=0A= uhub1: 2 ports with 2 removable, self powered=0A= uhci2: port 0xfc00-0xfc1f irq 18 at = device 29.2 on pci0=0A= uhci2: [GIANT-LOCKED]=0A= uhci2: [ITHREAD]=0A= usb2: on uhci2=0A= usb2: USB revision 1.0=0A= uhub2: on usb2=0A= uhub2: 2 ports with 2 removable, self powered=0A= uhci3: port 0xfb00-0xfb1f irq 16 at = device 29.3 on pci0=0A= uhci3: [GIANT-LOCKED]=0A= uhci3: [ITHREAD]=0A= usb3: on uhci3=0A= usb3: USB revision 1.0=0A= uhub3: on usb3=0A= uhub3: 2 ports with 2 removable, self powered=0A= ehci0: mem = 0xfdfff000-0xfdfff3ff irq 23 at device 29.7 on pci0=0A= ehci0: [GIANT-LOCKED]=0A= ehci0: [ITHREAD]=0A= usb4: EHCI version 1.0=0A= usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3=0A= usb4: on ehci0=0A= usb4: USB revision 2.0=0A= uhub4: on usb4=0A= uhub4: 8 ports with 8 removable, self powered=0A= pcib1: at device 30.0 on pci0=0A= pci1: on pcib1=0A= fwohci0: port 0xdf00-0xdf7f mem = 0xfdeff000-0xfdeff7ff irq 18 at device 10.0 on pci1=0A= fwohci0: [FILTER]=0A= fwohci0: OHCI version 1.0 (ROM=3D1)=0A= fwohci0: No. of Isochronous channels is 4.=0A= fwohci0: EUI64 00:00:00:30:1b:44:49:09=0A= fwohci0: Phy 1394a available S400, 2 ports.=0A= fwohci0: Link S400, max_rec 2048 bytes.=0A= firewire0: on fwohci0=0A= dcons_crom0: on firewire0=0A= dcons_crom0: bus_addr 0x1324000=0A= fwe0: on firewire0=0A= if_fwe0: Fake Ethernet address: 02:00:00:44:49:09=0A= fwe0: Ethernet address: 02:00:00:44:49:09=0A= fwip0: on firewire0=0A= fwip0: Firewire address: 00:00:00:30:1b:44:49:09 @ 0xfffe00000000, S400, = maxrec 2048=0A= sbp0: on firewire0=0A= fwohci0: Initiate bus reset=0A= fwohci0: BUS reset=0A= fwohci0: node_id=3D0xc800ffc0, gen=3D1, CYCLEMASTER mode=0A= skc0: port 0xdc00-0xdcff mem = 0xfdef8000-0xfdefbfff irq 19 at device 11.0 on pci1=0A= skc0: Marvell Yukon Lite Gigabit Ethernet rev. (0x9)=0A= sk0: on skc0=0A= sk0: Ethernet address: 00:30:1b:44:4d:4d=0A= miibus0: on sk0=0A= e1000phy0: PHY 0 on miibus0=0A= e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, = 1000baseTX-FDX, auto=0A= skc0: [ITHREAD]=0A= isab0: at device 31.0 on pci0=0A= isa0: on isab0=0A= atapci0: port = 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf800-0xf80f at device 31.1 on pci0=0A= ata0: on atapci0=0A= ata0: [ITHREAD]=0A= ata1: on atapci0=0A= ata1: [ITHREAD]=0A= atapci1: port = 0xf700-0xf707,0xf600-0xf603,0xf500-0xf507,0xf400-0xf403,0xf300-0xf30f = irq 19 at device 31.2 on pci0=0A= atapci1: [ITHREAD]=0A= ata2: on atapci1=0A= ata2: [ITHREAD]=0A= ata3: on atapci1=0A= ata3: [ITHREAD]=0A= pci0: at device 31.3 (no driver attached)=0A= acpi_tz0: on acpi0=0A= acpi_hpet0: iomem 0xfed00000-0xfed003ff on = acpi0=0A= device_attach: acpi_hpet0 attach returned 12=0A= pmtimer0 on isa0=0A= orm0: at iomem 0xcc000-0xccfff,0xef000-0xeffff pnpid = ORM0000 on isa0=0A= atkbdc0: at port 0x60,0x64 on isa0=0A= atkbd0: irq 1 on atkbdc0=0A= kbd0 at atkbd0=0A= atkbd0: [GIANT-LOCKED]=0A= atkbd0: [ITHREAD]=0A= ppc0: parallel port not found.=0A= sc0: at flags 0x100 on isa0=0A= sc0: VGA <16 virtual consoles, flags=3D0x300>=0A= sio0: configured irq 4 not in bitmap of probed irqs 0=0A= sio0: port may not be enabled=0A= sio0: configured irq 4 not in bitmap of probed irqs 0=0A= sio0: port may not be enabled=0A= sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0=0A= sio0: type 8250 or not responding=0A= sio0: [FILTER]=0A= sio1: configured irq 3 not in bitmap of probed irqs 0=0A= sio1: port may not be enabled=0A= vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0=0A= Timecounters tick every 1.000 msec=0A= hptrr: no controller detected.=0A= firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me)=0A= firewire0: bus manager 0 (me)=0A= acpi_tz0: _TMP value is absurd, ignored (-73.0C)=0A= acpi_tz0: _TMP value is absurd, ignored (-73.0C)=0A= acpi_tz0: _TMP value is absurd, ignored (-73.0C)=0A= ad4: 152627MB at ata2-master SATA150=0A= acpi_tz0: _TMP value is absurd, ignored (-73.0C)=0A= acpi_tz0: _TMP value is absurd, ignored (-73.0C)=0A= SMP: AP CPU #1 Launched!=0A= Trying to mount root from ufs:/dev/ad4s1a=0A= ------=_NextPart_000_0008_01C90B55.20FC9680 Content-Type: application/octet-stream; name="sysctl_net.inet_output" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="sysctl_net.inet_output" net.inet.ip.portrange.randomtime: 45=0A= net.inet.ip.portrange.randomcps: 10=0A= net.inet.ip.portrange.randomized: 1=0A= net.inet.ip.portrange.reservedlow: 0=0A= net.inet.ip.portrange.reservedhigh: 1023=0A= net.inet.ip.portrange.hilast: 65535=0A= net.inet.ip.portrange.hifirst: 49152=0A= net.inet.ip.portrange.last: 65535=0A= net.inet.ip.portrange.first: 49152=0A= net.inet.ip.portrange.lowlast: 600=0A= net.inet.ip.portrange.lowfirst: 1023=0A= net.inet.ip.forwarding: 0=0A= net.inet.ip.redirect: 1=0A= net.inet.ip.ttl: 64=0A= net.inet.ip.rtexpire: 3600=0A= net.inet.ip.rtminexpire: 10=0A= net.inet.ip.rtmaxcache: 128=0A= net.inet.ip.sourceroute: 0=0A= net.inet.ip.intr_queue_maxlen: 50=0A= net.inet.ip.intr_queue_drops: 0=0A= net.inet.ip.accept_sourceroute: 0=0A= net.inet.ip.keepfaith: 0=0A= net.inet.ip.gifttl: 30=0A= net.inet.ip.same_prefix_carp_only: 0=0A= net.inet.ip.subnets_are_local: 0=0A= net.inet.ip.fastforwarding: 0=0A= net.inet.ip.maxfragpackets: 800=0A= net.inet.ip.maxfragsperpacket: 16=0A= net.inet.ip.fragpackets: 0=0A= net.inet.ip.check_interface: 0=0A= net.inet.ip.random_id: 0=0A= net.inet.ip.sendsourcequench: 0=0A= net.inet.ip.process_options: 1=0A= net.inet.icmp.maskrepl: 0=0A= net.inet.icmp.icmplim: 200=0A= net.inet.icmp.bmcastecho: 0=0A= net.inet.icmp.quotelen: 8=0A= net.inet.icmp.reply_from_interface: 0=0A= net.inet.icmp.reply_src: =0A= net.inet.icmp.icmplim_output: 1=0A= net.inet.icmp.log_redirect: 0=0A= net.inet.icmp.drop_redirect: 0=0A= net.inet.icmp.maskfake: 0=0A= net.inet.tcp.rfc1323: 1=0A= net.inet.tcp.mssdflt: 512=0A= net.inet.tcp.keepidle: 7200000=0A= net.inet.tcp.keepintvl: 75000=0A= net.inet.tcp.sendspace: 32768=0A= net.inet.tcp.recvspace: 65536=0A= net.inet.tcp.keepinit: 75000=0A= net.inet.tcp.delacktime: 100=0A= net.inet.tcp.v6mssdflt: 1024=0A= net.inet.tcp.hostcache.purge: 0=0A= net.inet.tcp.hostcache.prune: 300=0A= net.inet.tcp.hostcache.expire: 3600=0A= net.inet.tcp.hostcache.count: 1=0A= net.inet.tcp.hostcache.bucketlimit: 30=0A= net.inet.tcp.hostcache.hashsize: 512=0A= net.inet.tcp.hostcache.cachelimit: 15360=0A= net.inet.tcp.recvbuf_max: 262144=0A= net.inet.tcp.recvbuf_inc: 16384=0A= net.inet.tcp.recvbuf_auto: 1=0A= net.inet.tcp.insecure_rst: 0=0A= net.inet.tcp.rfc3390: 1=0A= net.inet.tcp.rfc3042: 1=0A= net.inet.tcp.drop_synfin: 0=0A= net.inet.tcp.delayed_ack: 1=0A= net.inet.tcp.blackhole: 0=0A= net.inet.tcp.log_in_vain: 0=0A= net.inet.tcp.sendbuf_max: 262144=0A= net.inet.tcp.sendbuf_inc: 8192=0A= net.inet.tcp.sendbuf_auto: 1=0A= net.inet.tcp.tso: 1=0A= net.inet.tcp.newreno: 1=0A= net.inet.tcp.local_slowstart_flightsize: 4=0A= net.inet.tcp.slowstart_flightsize: 1=0A= net.inet.tcp.path_mtu_discovery: 1=0A= net.inet.tcp.reass.overflows: 0=0A= net.inet.tcp.reass.maxqlen: 48=0A= net.inet.tcp.reass.cursegments: 0=0A= net.inet.tcp.reass.maxsegments: 1600=0A= net.inet.tcp.sack.globalholes: 0=0A= net.inet.tcp.sack.globalmaxholes: 65536=0A= net.inet.tcp.sack.maxholes: 128=0A= net.inet.tcp.sack.enable: 1=0A= net.inet.tcp.inflight.stab: 20=0A= net.inet.tcp.inflight.max: 1073725440=0A= net.inet.tcp.inflight.min: 6144=0A= net.inet.tcp.inflight.rttthresh: 10=0A= net.inet.tcp.inflight.debug: 0=0A= net.inet.tcp.inflight.enable: 1=0A= net.inet.tcp.isn_reseed_interval: 0=0A= net.inet.tcp.icmp_may_rst: 1=0A= net.inet.tcp.pcbcount: 6=0A= net.inet.tcp.do_tcpdrain: 1=0A= net.inet.tcp.tcbhashsize: 512=0A= net.inet.tcp.log_debug: 0=0A= net.inet.tcp.minmss: 216=0A= net.inet.tcp.syncache.rst_on_sock_fail: 1=0A= net.inet.tcp.syncache.rexmtlimit: 3=0A= net.inet.tcp.syncache.hashsize: 512=0A= net.inet.tcp.syncache.count: 0=0A= net.inet.tcp.syncache.cachelimit: 15360=0A= net.inet.tcp.syncache.bucketlimit: 30=0A= net.inet.tcp.syncookies_only: 0=0A= net.inet.tcp.syncookies: 1=0A= net.inet.tcp.timer_race: 0=0A= net.inet.tcp.finwait2_timeout: 60000=0A= net.inet.tcp.fast_finwait2_recycle: 0=0A= net.inet.tcp.always_keepalive: 1=0A= net.inet.tcp.rexmit_slop: 200=0A= net.inet.tcp.rexmit_min: 30=0A= net.inet.tcp.msl: 30000=0A= net.inet.tcp.nolocaltimewait: 0=0A= net.inet.tcp.maxtcptw: 2465=0A= net.inet.udp.checksum: 1=0A= net.inet.udp.maxdgram: 9216=0A= net.inet.udp.recvspace: 42080=0A= net.inet.udp.blackhole: 0=0A= net.inet.udp.log_in_vain: 0=0A= net.inet.sctp.mobility_fasthandoff: 0=0A= net.inet.sctp.mobility_base: 0=0A= net.inet.sctp.default_frag_interleave: 1=0A= net.inet.sctp.default_cc_module: 0=0A= net.inet.sctp.log_level: 0=0A= net.inet.sctp.max_retran_chunk: 30=0A= net.inet.sctp.min_residual: 1452=0A= net.inet.sctp.strict_data_order: 0=0A= net.inet.sctp.abort_at_limit: 0=0A= net.inet.sctp.hb_max_burst: 4=0A= net.inet.sctp.do_sctp_drain: 1=0A= net.inet.sctp.max_chained_mbufs: 5=0A= net.inet.sctp.abc_l_var: 1=0A= net.inet.sctp.nat_friendly: 1=0A= net.inet.sctp.auth_disable: 0=0A= net.inet.sctp.asconf_auth_nochk: 0=0A= net.inet.sctp.early_fast_retran_msec: 250=0A= net.inet.sctp.early_fast_retran: 0=0A= net.inet.sctp.cwnd_maxburst: 1=0A= net.inet.sctp.cmt_pf: 0=0A= net.inet.sctp.cmt_use_dac: 0=0A= net.inet.sctp.cmt_on_off: 0=0A= net.inet.sctp.outgoing_streams: 10=0A= net.inet.sctp.add_more_on_output: 1452=0A= net.inet.sctp.path_rtx_max: 5=0A= net.inet.sctp.assoc_rtx_max: 10=0A= net.inet.sctp.init_rtx_max: 8=0A= net.inet.sctp.valid_cookie_life: 60000=0A= net.inet.sctp.init_rto_max: 60000=0A= net.inet.sctp.rto_initial: 3000=0A= net.inet.sctp.rto_min: 1000=0A= net.inet.sctp.rto_max: 60000=0A= net.inet.sctp.secret_lifetime: 3600=0A= net.inet.sctp.shutdown_guard_time: 180=0A= net.inet.sctp.pmtu_raise_time: 600=0A= net.inet.sctp.heartbeat_interval: 30000=0A= net.inet.sctp.asoc_resource: 10=0A= net.inet.sctp.sys_resource: 1000=0A= net.inet.sctp.sack_freq: 2=0A= net.inet.sctp.delayed_sack_time: 200=0A= net.inet.sctp.chunkscale: 10=0A= net.inet.sctp.min_split_point: 2904=0A= net.inet.sctp.pcbhashsize: 256=0A= net.inet.sctp.tcbhashsize: 1024=0A= net.inet.sctp.maxchunks: 3200=0A= net.inet.sctp.maxburst: 4=0A= net.inet.sctp.peer_chkoh: 256=0A= net.inet.sctp.strict_init: 1=0A= net.inet.sctp.loopback_nocsum: 1=0A= net.inet.sctp.strict_sacks: 0=0A= net.inet.sctp.ecn_nonce: 0=0A= net.inet.sctp.ecn_enable: 1=0A= net.inet.sctp.auto_asconf: 1=0A= net.inet.sctp.recvspace: 233016=0A= net.inet.sctp.sendspace: 233016=0A= net.inet.raw.recvspace: 9216=0A= net.inet.raw.maxdgram: 9216=0A= net.inet.accf.unloadable: 0=0A= ------=_NextPart_000_0008_01C90B55.20FC9680--