diff options
author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-12-21 12:43:02 +0000 |
---|---|---|
committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-12-21 12:43:02 +0000 |
commit | 1164143d95f012a9c4e019145e466d126dd004db (patch) | |
tree | f6447b3defbfcfb350ae9edb0a89efd5cc2e9519 | |
parent | 8fde5a487a0788253ae0d647f57d6115e46c6125 (diff) | |
download | src-1164143d95f012a9c4e019145e466d126dd004db.tar.gz src-1164143d95f012a9c4e019145e466d126dd004db.zip |
Notes
-rw-r--r-- | lib/libc/sys/sendfile.2 | 21 | ||||
-rw-r--r-- | sys/boot/common/loader.8 | 5 |
2 files changed, 23 insertions, 3 deletions
diff --git a/lib/libc/sys/sendfile.2 b/lib/libc/sys/sendfile.2 index ef824ef6efd6..b237bd599f3c 100644 --- a/lib/libc/sys/sendfile.2 +++ b/lib/libc/sys/sendfile.2 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 16, 2004 +.Dd November 24, 2006 .Dt SENDFILE 2 .Os .Sh NAME @@ -130,7 +130,7 @@ implementation of .Fn sendfile is "zero-copy", meaning that it has been optimized so that copying of the file data is avoided. .Sh TUNING -Internally, this system call uses a special +On some architectures, this system call internally uses a special .Fn sendfile buffer .Pq Vt "struct sf_buf" @@ -184,6 +184,13 @@ variables show current and peak buffers usage respectively. These values may also be viewed through .Nm netstat Fl m . +.Pp +If a value of zero is reported for +.Va kern.ipc.nsfbufs , +your architecture does not need to use +.Fn sendfile +buffers because their task can be efficiently performed +by the generic virtual memory structures. .Sh RETURN VALUES .Rv -std sendfile .Sh ERRORS @@ -256,6 +263,16 @@ If specified, the number of bytes successfully sent will be returned in .Xr socket 2 , .Xr writev 2 , .Xr tuning 7 +.Rs +.%A K. Elmeleegy +.%A A. Chanda +.%A A. L. Cox +.%A W. Zwaenepoel +.%T A Portable Kernel Abstraction for Low-Overhead Ephemeral Mapping Management +.%J The Proceedings of the 2005 USENIX Annual Technical Conference +.%P pp 223-236 +.%D 2005 +.Re .Sh HISTORY The .Fn sendfile diff --git a/sys/boot/common/loader.8 b/sys/boot/common/loader.8 index 81504917c998..5b87936118ab 100644 --- a/sys/boot/common/loader.8 +++ b/sys/boot/common/loader.8 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 18, 2006 +.Dd November 29, 2006 .Dt LOADER 8 .Os .Sh NAME @@ -515,6 +515,9 @@ Set the number of buffers to be allocated. Overrides .Dv NSFBUFS . +Not all architectures use such buffers; see +.Xr sendfile 2 +for details. .It Va kern.maxswzone Limits the amount of KVM to be used to hold swap meta information, which directly governs the |