Skip to content

Comment on Using Flat Files So Elections Don’t Break Your Serverparent

Comments

I was under the (possibly mistaken) impression that Direct Memory Access (DMA) hardware could move data straight from the Disk Cache to the Network card without touching the CPU Caches at all.

True - DMA can do that - but then you'd have to have something managing the network stack - the kernel manages tcp/ip.

From the man page:

"sendfile() copies data between one file descriptor and another. Because this copying is done within the kernel, sendfile() is more efficient than the combination of read(2) and write(2), which would require transferring data to and from user space."

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.