Very slow scp performance comparing to Linux

2023-08-28 Thread Wei Hu
Hi, When I was testing a new NIC, I found the single stream scp performance was almost 8 time slower than Linux on the RX side. Initially I thought it might be something with the NIC. But when I switched to sending the file on localhost, the numbers stay the same. Here I was sending a 2GB fil

Receive Side Coalescing(RSC) and LRO

2022-02-08 Thread Wei Hu
Hi, I am trying to find the term that FreeBSD uses for the network offloading feature like RSC. RSC is Microsoft's term which is essentially the same as LRO in Linux, in which the packet aggregation happens on the hardware NIC. The LRO on FreeBSD seems different. It looks to be the GRO in Linux

Send path scaling problem

2021-07-09 Thread Wei Hu via freebsd-net
Hello, I am working a driver for a new SRIOV nic on FreeBSD vms running on Hyper-V. The driver coding has largely completed. The performance test shows some scaling problems on the send path which I am seeking some advices. The nic is 100Gbps. I am running iperf2 as client generating tcp traffi

[Differential] D24061: Hyper-V socket implementation for FreeBSD guest

2020-05-20 Thread whu (Wei Hu)
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rS361275: HyperV socket implementation for FreeBSD (authored by whu). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org

[Differential] D24061: Hyper-V socket implementation for FreeBSD guest

2020-05-11 Thread whu (Wei Hu)
whu added a comment. In D24061#540008 , @ae wrote: > Do you have performance test results for already existing linux implementation? > From a quick look it seems to me there will be bottleneck regarding locking that seems can be reduced using

HyperV socket review and AF_HYPERV socket number

2020-04-17 Thread Wei Hu via freebsd-net
Hello, I'd like to invite you to review the FreeBSD implementation of HyperV socket support. The review is at https://reviews.freebsd.org/D24061. In particular, I'd like to ask if it is ok to choose socket number 43 for AF_HYPERV type. There are such comments in sys/socket.h: /* * When alloca

[Differential] D24061: Hyper-V socket implementation for FreeBSD guest

2020-04-15 Thread whu (Wei Hu)
whu edited the summary of this revision. REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST ACTION https://reviews.freebsd.org/D24061/new/ REVISION DETAIL https://reviews.freebsd.org/D24061 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: whu, dec

[Differential] D24061: Hyper-V socket implementation for FreeBSD guest

2020-04-15 Thread whu (Wei Hu)
whu edited the summary of this revision. REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST ACTION https://reviews.freebsd.org/D24061/new/ REVISION DETAIL https://reviews.freebsd.org/D24061 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: whu, dec

[Differential] D24061: Hyper-V socket implementation for FreeBSD guest

2020-04-15 Thread whu (Wei Hu)
whu edited the summary of this revision. REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST ACTION https://reviews.freebsd.org/D24061/new/ REVISION DETAIL https://reviews.freebsd.org/D24061 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: whu, dec

[Differential] D24061: Hyper-V socket implementation for FreeBSD guest

2020-04-15 Thread whu (Wei Hu)
whu updated this revision to Diff 70595. whu edited the summary of this revision. whu added reviewers: decui_microsoft.com, freebsd-net-list. whu added a comment. Out for broader review REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D24061?vs=69

RE: Same NIC name to MAC mapping on FreeBSD

2015-07-05 Thread Wei Hu
> -Original Message- > From: Julian Elischer [mailto:jul...@freebsd.org] > Sent: Saturday, July 4, 2015 12:00 AM > To: Wei Hu; Warren Block; freebsd-net@FreeBSD.org > Subject: Re: Same NIC name to MAC mapping on FreeBSD > > On 7/3/15 2:57 PM, Wei Hu wrote: > >

RE: Same NIC name to MAC mapping on FreeBSD

2015-07-03 Thread Wei Hu
> -Original Message- > From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd- > n...@freebsd.org] On Behalf Of Warren Block > Sent: Wednesday, July 1, 2015 10:01 PM > To: freebsd-net@FreeBSD.org > Subject: Re: Same NIC name to MAC mapping on FreeBSD > > Gary Palmer gpalmer at freebsd

RE: Same NIC name to MAC mapping on FreeBSD

2015-06-29 Thread Wei Hu
> -Original Message- > From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd- > n...@freebsd.org] On Behalf Of Paul S. > Sent: Monday, June 29, 2015 7:53 PM > To: freebsd-net@freebsd.org > Subject: Re: Same NIC name to MAC mapping on FreeBSD > > On my production systems, I've never se

Same NIC name to MAC mapping on FreeBSD

2015-06-29 Thread Wei Hu
Hi, On a FreeBSD system with multiple NICs, ie, multiple MAC addresses, is there a way to keep the same network interface name to MAC address mapping across reboot? It seems on Linux udev rule can help achieve this. Anything similar on FreeBSD? Thanks, Wei _

RE: Network interrupt and NAPI in FreeBSD?

2015-03-08 Thread Wei Hu
> -Original Message- > From: adrian.ch...@gmail.com [mailto:adrian.ch...@gmail.com] On Behalf > Of Adrian Chadd > Sent: Saturday, March 7, 2015 4:27 PM > To: Wei Hu > Cc: Luigi Rizzo; freebsd-net@freebsd.org > Subject: Re: Network interrupt and NAPI in FreeBSD? &

RE: Network interrupt and NAPI in FreeBSD?

2015-03-06 Thread Wei Hu
Many thanks, Luigi! We are measuring the network performance in VM(Hyper-V), using netvsc virtual NIC device and its own driver. The Linux VM also uses the similar virtual device. The driver on both Linux and FreeBSD have TSO/LRO support. With just one network queue, we found the throughput is h

Network interrupt and NAPI in FreeBSD?

2015-03-05 Thread Wei Hu
Hi, I am working on network driver performance for Hyper-V. I noticed the network interrupt rate on FreeBSD is significantly higher than Linux, in the same Hyper-V environment. The iperf test also shows the FreeBSD performance is not as good as Linux. Linux has NAPI built in which could avoid a

How to get the IP and TCP fields in mbuf

2015-01-08 Thread Wei Hu
Hi, I am wondering if there is existing macros in the FreeBSD kernel to extract to get to the point of the IP and TCP head in a given mbuf. Thanks, Wei ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To

RE: vRSS support on FreeBSD

2014-08-13 Thread Wei Hu
eue. Wei -Original Message- From: adrian.ch...@gmail.com [mailto:adrian.ch...@gmail.com] On Behalf Of Adrian Chadd Sent: Wednesday, August 13, 2014 2:54 PM To: Wei Hu Cc: d...@delphij.net; freebsd-net@freebsd.org Subject: Re: vRSS support on FreeBSD On 12 August 2014 23:27, Wei Hu wrote: > Unfor

RE: vRSS support on FreeBSD

2014-08-12 Thread Wei Hu
the same. Wei -Original Message- From: adrian.ch...@gmail.com [mailto:adrian.ch...@gmail.com] On Behalf Of Adrian Chadd Sent: Wednesday, August 13, 2014 2:14 PM To: Wei Hu Cc: d...@delphij.net; freebsd-net@freebsd.org Subject: Re: vRSS support on FreeBSD Hi! Is there a spec for this

RE: vRSS support on FreeBSD

2014-08-12 Thread Wei Hu
14 2:27 AM To: Wei Hu Cc: d...@delphij.net; freebsd-net@freebsd.org Subject: Re: vRSS support on FreeBSD On 11 August 2014 02:48, Wei Hu wrote: > CC freebsd-net@ for wider discussion. > > Hi Adrian, > > Many thanks for the explanation. I checked the if_igb.c and found the > fl

RE: vRSS support on FreeBSD

2014-08-11 Thread Wei Hu
FreeBSD in this purpose? Thanks so much, Wei -Original Message- From: adrian.ch...@gmail.com [mailto:adrian.ch...@gmail.com] On Behalf Of Adrian Chadd Sent: Saturday, August 9, 2014 3:39 AM To: Wei Hu Cc: d...@delphij.net Subject: Re: vRSS support on FreeBSD Hi! On 8 August 2014 04: