3 ms·
Interesting line of reasoning. Definitely mmaping 8.6TiB into user space process virtual memory is gonna take a toll. I tried to find why varnish doesn't use s
by majke 11y ago
Interesting line of reasoning. Definitely mmaping 8.6TiB into user space process virtual memory is gonna take a toll.
I tried to find why varnish doesn't use sendfile:
https://www.varnish-cache.org/lists/pipermail/varnish-dev/2008-May/005891.html https://www.varnish-cache.org/lists/pipermail/varnish-dev/20...
By default [Varnish uses sendfile] never; there are problems with all sendfile() implementations
- jonhohle 11y agoIn the past I've found that sendfile is not portable. FreeBSD and Mac OS X require the file that is being sent be a regular file[0] while Linux will take any file descriptor[1]. That being said, I can't imagine what benefit memmapping would have in the context over the file system page cache. 0 - https://www.freebsd.org/cgi/man.cgi?query=sendfile&sektion=2 https://www.freebsd.org/cgi/man.cgi?query=sendfile&sektion=2 1 - http://linux.die.net/man/2/sendfile http://linux.die.net/man/2/sendfile