freebsd-skq/usr.bin/systat
glebius 25da94eb3e Merge from projects/sendfile:
o Introduce a notion of "not ready" mbufs in socket buffers.  These
mbufs are now being populated by some I/O in background and are
referenced outside.  This forces following implications:
- An mbuf which is "not ready" can't be taken out of the buffer.
- An mbuf that is behind a "not ready" in the queue neither.
- If sockbet buffer is flushed, then "not ready" mbufs shouln't be
  freed.

o In struct sockbuf the sb_cc field is split into sb_ccc and sb_acc.
  The sb_ccc stands for ""claimed character count", or "committed
  character count".  And the sb_acc is "available character count".
  Consumers of socket buffer API shouldn't already access them directly,
  but use sbused() and sbavail() respectively.
o Not ready mbufs are marked with M_NOTREADY, and ready but blocked ones
  with M_BLOCKED.
o New field sb_fnrdy points to the first not ready mbuf, to avoid linear
  search.
o New function sbready() is provided to activate certain amount of mbufs
  in a socket buffer.

A special note on SCTP:
  SCTP has its own sockbufs.  Unfortunately, FreeBSD stack doesn't yet
allow protocol specific sockbufs.  Thus, SCTP does some hacks to make
itself compatible with FreeBSD: it manages sockbufs on its own, but keeps
sb_cc updated to inform the stack of amount of data in them.  The new
notion of "not ready" data isn't supported by SCTP.  Instead, only a
mechanical substitute is done: s/sb_cc/sb_ccc/.
  A proper solution would be to take away struct sockbuf from struct
socket and allow protocols to implement their own socket buffers, like
SCTP already does.  This was discussed with rrs@.

Sponsored by:	Netflix
Sponsored by:	Nginx, Inc.
2014-11-30 12:52:33 +00:00
..
cmds.c Make systat(1) accept fractional number of seconds. 2012-09-17 13:36:47 +00:00
cmdtab.c Nuke "systat -mbuf". It was broken since FreeBSD 5, and since there 2013-07-15 12:15:14 +00:00
convtbl.c
convtbl.h
devs.c
devs.h
extern.h Nuke "systat -mbuf". It was broken since FreeBSD 5, and since there 2013-07-15 12:15:14 +00:00
fetch.c
icmp6.c Make systat(1) accept fractional number of seconds. 2012-09-17 13:36:47 +00:00
icmp.c Make systat(1) accept fractional number of seconds. 2012-09-17 13:36:47 +00:00
ifcmds.c Fix several new & old style issues. 2013-02-20 14:19:09 +00:00
ifstat.c Fix integer truncation in affecting systat -ifstat 2014-09-29 17:38:50 +00:00
iostat.c
ip6.c Make systat(1) accept fractional number of seconds. 2012-09-17 13:36:47 +00:00
ip.c Make systat(1) accept fractional number of seconds. 2012-09-17 13:36:47 +00:00
keyboard.c Make systat(1) accept fractional number of seconds. 2012-09-17 13:36:47 +00:00
main.c Revert r261296. This removes the WITHOUT_NCURSESW option. 2014-05-15 16:44:25 +00:00
Makefile Convert to usr.bin/ to LIBADD 2014-11-25 14:29:10 +00:00
mode.c
mode.h
netcmds.c Use INADDR_NONE instead of -1 to check inet_addr() result. 2013-10-15 07:37:30 +00:00
netstat.c Merge from projects/sendfile: 2014-11-30 12:52:33 +00:00
pigs.c
swap.c
systat.1 mdoc: kill EOL whitespace. 2014-07-29 19:49:27 +00:00
systat.h
tcp.c Make systat(1) accept fractional number of seconds. 2012-09-17 13:36:47 +00:00
vmstat.c Make systat -vmstat to use suffixes to display big floating point numbers 2013-03-23 13:11:54 +00:00