summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/mbufs.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Adjust <sys/param.h> comments regarding use of use of MSIZE, orderaadt2015-01-201-2/+1
| | | | | delete <sys/param.h> if now possible ok guenther
* first batch of programs adapting to the namespace cleanupderaadt2015-01-161-3/+4
| | | | | (pfvar.h nameser.h proc.h ucred.h) ok guenther millert, and some review from doug as well.
* i renamed the mbuf pool.dlg2014-11-061-2/+2
|
* fix if (statement);jsg2014-10-201-2/+2
| | | | ok dlg@
* cut things that relied on mclgeti for rx ring accounting/restriction overdlg2014-07-081-68/+107
| | | | | | | | | | to using if_rxr. cut the reporting systat did over to the rxr ioctl. tested as much as i can on alpha, amd64, and sparc64. mpi@ has run it on macppc. ok mpi@
* info about pools is currently given to userland by copying eachdlg2014-07-021-7/+7
| | | | | | | | | | | | | | | | | | | | | | | pools struct out. however, struct pool in the kernel contains lots of things that userland probably isnt interested in, like actual mutexes, and probably shouldnt get easy access to, like pointers to kernel memory via all the lists/trees. this implements a kinfo_pool structure that has only the data that userland needs to know about. it cuts the sysctl code over to building it from struct pool as required and copying that out instead, and cuts userland over to only handling kinfo_pool. the only problem with this is vmstat, which can read kernel images via kvm, which needs some understanding of struct pool. to cope, the struct pool definition is guarded by if defined(_KERNEL) || defined(_LIBKVM) as inspired by sysctl which needs to do the same thing sometimes. struct pool itself is generally not visible to userland though, which is good. matthew@ suggested struct kinfo_pool instead of struct pool_info. the kinfo prefix has precedent. lots of people liked this.
* Now that the water marks are updated on a per-pool basis indicate inmpi2014-06-131-9/+6
| | | | | | the LIVELOCKS column if there is a pending (deferred) update. ok claudio@
* - use a common FIELD_ADDR macro, instead of rolling 78 identical copies.jasper2011-03-021-12/+10
| | | | ok canacar@
* Print relativ number of livelocks that happend between two systatclaudio2010-11-051-5/+7
| | | | | | updates instead of showing absolut figures. Makes it easier to estimate the "livelockyness" of a system. OK dlg@
* expose the kernels network livelock counterdlg2010-11-021-3/+12
|
* tweak the mclgeti algorithm to behave better under load.dlg2010-09-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of letting hardware rings grow on every interrupt, restrict it so it can only grow once per softclock tick. we can only punish the rings on softclock ticks, so it make sense to only grow on softclock tick boundaries too. the rings are now punished after >1 lost softclock tick rather than >2. mclgeti is now more aggressive at detecting livelock. the rings get punished by an 8th, rather than by half. we now allow the rings to be punished again even if the system is already considered in livelock. without this diff a livelocked system will have its rx ring sizes scale up and down very rapidly, while holding the rings low for too long. this affected throughput significantly. discussed and tested heavily at j2k10. there are still some games with softnet we can play, but this is a good first step. "put it in" and ok deraadt@ ok claudio@ krw@ henning@ mcbride@ if we find out that it sucks we can pull it out again later. till then we'll run with it and see how it goes.
* don't rely on mbuf.h to pull in pool.h here eitherblambert2010-08-011-1/+2
| | | | ok miod@
* fix use of uninitialized variable.chl2010-08-011-2/+2
| | | | | | reported by gcc. ok canacar@
* args, not that filehenning2009-11-231-13/+9
|
* no more natpasshenning2009-11-231-9/+13
|
* remove unneeded argument to warnx()chl2009-04-201-8/+2
| | | | | | | remove unused variable kill some extra blank lines ok canacar@
* Make sure systat mbufs prints the interface name even if an interface onlykettenis2009-03-291-9/+10
| | | | | | allocates clusters larger than 2k. ok deraadt@
* fix the mbuf view to cope with the recent change to the mclgeti allocator.dlg2009-01-271-7/+6
| | | | from canacar@
* Skip missing pool indices instead of printing errors.canacar2008-12-311-3/+2
|
* Print the interface livelocks if non-zero. From deraadt@canacar2008-12-181-4/+3
|
* Rewrite the 'mbuf' page to display mbuf usage information from system poolscanacar2008-12-171-115/+299
| | | | | and mbuf cluster statistics collected for each interface. More useful than earlier bar graphs about mbuf types. Requested by and ok deraadt@
* New display engine for systat, based on pftop. Adds new views for pfcanacar2008-06-121-70/+111
| | | | | | | | (status, state, rule, queue). While all displays work, some keyboard comands are not implemented yet. Other features include better handling of display resize and scrolling for long views. Committing now to fix the remaining issues in the tree. Testing and comments by otto@ and harding@, ok deraadt@
* use the 1 line load line from 'systat vm' on all the other displays, givingderaadt2007-02-251-3/+3
| | | | them more room. much cleaner, and it is less code too; ok deanna
* fairly simple cleanup, lots of testing donederaadt2006-03-311-10/+12
|
* post-mortem stuff can go away here tooderaadt2004-07-091-48/+18
|
* move sysctl comment on namelist[] entryderaadt2004-07-031-4/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* mark which nlist[] kmem entries are not needed in the sysctl case, and which arederaadt2002-06-191-3/+3
|
* ANSIderaadt2002-06-181-9/+8
|
* Use sysctl for mbstatangelos2002-06-091-12/+25
|
* move back. pvalchev -- the bug was quite obscurederaadt2001-12-071-3/+4
|
* back out latest changes which cause problems on alpha/sparc64 untilpvalchev2001-12-071-4/+3
| | | | they are fixed
* fix signal races. use sysctl() instead of kvm where possible, and then KNFderaadt2001-11-231-3/+4
| | | | the hell out of it; checked by miod
* kill more registersmpech2001-11-191-3/+3
| | | | millert@ ok
* handle kvm_nlist() failing, from pr#1798.ericj2001-05-041-5/+7
| | | | Patch similar to the one submitted by <peterw@documenta.com.au>
* bye bye sprintfderaadt1997-12-191-4/+4
|
* rcsidderaadt1996-06-261-1/+2
|
* it compiles w/ new cursesmickey1996-06-021-2/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+168