summaryrefslogtreecommitdiffstats
path: root/sys/dev/ep/if_ep.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2000-01-12 05:27:08 +0000
committermdodd <mdodd@FreeBSD.org>2000-01-12 05:27:08 +0000
commitce45af054b56462d8a4f194a3600ef0038ac6a31 (patch)
treec086dbc8611063603f965907bc5ed348abc0139c /sys/dev/ep/if_ep.c
parent7bec37caf322fac4dee84f7f741738b1515746e5 (diff)
downloadFreeBSD-src-ce45af054b56462d8a4f194a3600ef0038ac6a31.zip
FreeBSD-src-ce45af054b56462d8a4f194a3600ef0038ac6a31.tar.gz
Fix the performance problems I caused by setting ifq_maxlen to 8.
Use IFQ_MAXLEN instead. This seemed like a good idea at the time since most 3c509s have all of 2k for their TX fifo. My intention was to revisit ifq_maxlen and auto-scale it or something. ttcp-t: 16777216 bytes in 21.53 real seconds = 761.07 KB/sec +++ ttcp-t: 2771 I/O calls, msec/call = 7.96, calls/sec = 128.72 ttcp-t: 0.0user 2.9sys 0:21real 13% 20i+280d 222maxrss 0+2pf 717+0csw ttcp-r: 16777216 bytes in 14.11 real seconds = 1161.48 KB/sec +++ ttcp-r: 2050 I/O calls, msec/call = 7.05, calls/sec = 145.33 ttcp-r: 0.0user 1.4sys 0:14real 10% 87i+1198d 196maxrss 0+1pf 1949+186csw I've got some tweaks that move the TX speed up to the RX speed but I've got to groom them from the mess I've made of my source tree. Yelled at by: wpaul
Diffstat (limited to 'sys/dev/ep/if_ep.c')
-rw-r--r--sys/dev/ep/if_ep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index 1b31212..5a31f22 100644
--- a/sys/dev/ep/if_ep.c
+++ b/sys/dev/ep/if_ep.c
@@ -296,7 +296,7 @@ ep_attach(sc)
ifp->if_ioctl = ep_if_ioctl;
ifp->if_watchdog = ep_if_watchdog;
ifp->if_init = ep_if_init;
- ifp->if_snd.ifq_maxlen = 8;
+ ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
if (!sc->epb.mii_trans) {
ifmedia_init(&sc->ifmedia, 0, ep_ifmedia_upd, ep_ifmedia_sts);
OpenPOWER on IntegriCloud