freebsd-dev/sys/dev/cxgbe/tom
John Baldwin b1012d8036 Account for AIO socket operations in thread/process resource usage.
File and disk-backed I/O requests store counts of read/written disk
blocks in each AIO job so that they can be charged to the thread that
completes an AIO request via aio_return() or aio_waitcomplete().  This
change extends AIO jobs to store counts of received/sent messages and
updates socket backends to set these counts accordingly.  Note that
the socket backends are careful to only charge a single messages for
each AIO request even though a single request on a blocking socket might
invoke sosend or soreceive multiple times.  This is to mimic the
resource accounting of synchronous read/write.

Adjust the UNIX socketpair AIO test to verify that the message resource
usage counts update accordingly for aio_read and aio_write.

Approved by:	re (hrs)
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D6911
2016-06-21 22:19:06 +00:00
..
t4_connect.c cxgbe: catch up with the latest hardware-related definitions. 2016-02-19 00:29:16 +00:00
t4_cpl_io.c Use sbused() instead of sbspace() to avoid signed issues. 2016-06-15 21:08:51 +00:00
t4_ddp.c Account for AIO socket operations in thread/process resource usage. 2016-06-21 22:19:06 +00:00
t4_listen.c Set the correct vnet in TOE event handlers. 2016-05-06 23:49:10 +00:00
t4_tom_l2t.c Implement interface link header precomputation API. 2015-12-31 05:03:27 +00:00
t4_tom_l2t.h
t4_tom.c Use DDP to implement zerocopy TCP receive with aio_read(). 2016-05-07 00:33:35 +00:00
t4_tom.h Use DDP to implement zerocopy TCP receive with aio_read(). 2016-05-07 00:33:35 +00:00