On 2008 Aug 13, at 18:25, Jason Dusek wrote:
Brandon S. Allbery KF8NH <[EMAIL PROTECTED]> wrote:
Right. I intended that to be a heads-up in both directions:
it is not simply a library convenience function, so one needs
to think about when to use it. In particular, it's possible
that overuse of sendfile() in the wrong circumstances will
create additional system load instead of reducing it.
Can you say more about this? I assume that sending static
images back and forth is a good fit for sendfile().
Your previously stated use case sounds like a good fit. I can easily
imagine sendfile() implementations starving other network operations,
though (and IIRC linux's early sendfile() implementation did so).
It's essentially an optimization specific to web servers.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university KF8NH
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe