netstat -i Ierrs column, Is it total, or per second?

2009-08-31 Thread Andrew Brampton
Hi FreeBSD-Hackers, netstat -i will print out statistics for each interface, including input/output packets, input/output bytes, and input/output errors. Now packets and bytes columns seem to be absolute counts, whereas the errors column seems to be a count over the last second. For example, when

Re: Need some help understanding a jail system call.

2009-08-31 Thread Robert Watson
On Wed, 26 Aug 2009, Dag-Erling Smørgrav wrote: Here is the link i used to find this code http://www.watson.org/~robert/freebsd/jailng/ You realize that this is eight years old, right? And that the jail infrastructure has been extensively modified since then, and is currently being rewritte

UFS block writing

2009-08-31 Thread Ivan Voras
Does UFS do full-block writes? Always or only in specific circumstances? For example, if a UFS file system is created with the 16/2 block/fragment size, and a small random write (e.g. 512 bytes) comes in the middle of a larger file, will UFS read in the whole 16k block, modify it and write it

Re: netstat -i Ierrs column, Is it total, or per second?

2009-08-31 Thread John Baldwin
On Monday 31 August 2009 6:18:56 am Andrew Brampton wrote: > Hi FreeBSD-Hackers, > > netstat -i will print out statistics for each interface, including > input/output packets, input/output bytes, and input/output errors. Now > packets and bytes columns seem to be absolute counts, whereas the > err

Re: netstat -i Ierrs column, Is it total, or per second?

2009-08-31 Thread Andrew Brampton
2009/8/31 John Baldwin : > It should be total and it sounds like a bug in the device driver.  It looks > like ixgbe_update_stats_counters() overwrites the accumulated value of > if_ierrors: > >        /* Rx Errors */ >        ifp->if_ierrors = total_missed_rx + adapter->stats.crcerrs + >          

Re: netstat -i Ierrs column, Is it total, or per second?

2009-08-31 Thread John Baldwin
On Monday 31 August 2009 3:15:53 pm Andrew Brampton wrote: > 2009/8/31 John Baldwin : > > It should be total and it sounds like a bug in the device driver.  It looks > > like ixgbe_update_stats_counters() overwrites the accumulated value of > > if_ierrors: > > > >        /* Rx Errors */ > >