freebsd-dev/usr.bin/netstat
Gleb Smirnoff 5dba303d01 Use bogus_page to properly reduce number of I/Os in sendfile(2). The new
sendfile_swapin() loop works this way:

- Find first invalid page in the request.
- Do vm_pager_has_page() and get count of pages, that can be taken in
  single I/O.
- Trim valid pages from the end of the request.
- Cycle through the request and substitute to bogus_page all valid
  pages that are in the middle of the request.
- After I/O launched (pager copies array of pages into buf(9), it
  is important to restore proper page pointers with help vm_page_lookup().

Count bogus pages used and report them in sendfile stats.
2016-11-17 21:02:55 +00:00
..
bpf.c
flowtable.c
if.c
inet6.c Fix the output for scope statistics. 2016-08-17 16:56:20 +00:00
inet.c
ipsec.c
main.c
Makefile
Makefile.depend
mbuf.c Use bogus_page to properly reduce number of I/Os in sendfile(2). The new 2016-11-17 21:02:55 +00:00
mroute6.c
mroute.c
netgraph.c
netisr.c
netstat.1
netstat.h
nlist_symbols
pfkey.c
route.c Fix build without INET6 and with gcc. A function definition was ifdefed 2016-08-27 11:06:06 +00:00
sctp.c
unix.c