In article <[EMAIL PROTECTED]>, zhang jack <[EMAIL PROTECTED]> wrote: > Hi, > When I using netperf to test Intel Pro/1000 performance, > I got strange netstat output: > > #./netperf -H 10.0.0.2 > TCP STREAM TEST to 10.0.0.2 > > on 10.0.0.2, I start netstat -w 1 , but got strange output: > it seems the link is dowm and up ceaselessly. > > input (Total) output > packets errs bytes packets errs bytes colls > 1 0 1212460 1 0 9462 0 > 553 0 1206100 277 0 10458 0 > 1 0 1203800 1 0 9291 0 > 554 0 1214652 278 0 10461 0 > 1 0 1203816 1 0 9291 0 > 553 0 1214636 277 0 10461 0 > 1 0 1203888 1 0 9291 0 > 553 0 1214636 277 0 10461 0 > 4 0 1203784 2 0 9291 0 > 555 0 1214692 277 0 10465 0 > 1 0 1195140 1 0 9225 0 > 551 0 1214596 276 0 10457 0 > 1 0 1203768 1 0 9291 0 > 553 0 1214652 277 0 10461 0
That is just because the interface statistics are only updated once per second, and your 1-second netstat delays are in sync with the stats updates. If you do "netstat -w 2" or more, this artifact vanishes. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message