cm0002@lemmy.world to Linux@lemmy.worldEnglish · 18 days agoHow fast are Linux pipes anyway?mazzo.liexternal-linkmessage-square2fedilinkarrow-up160cross-posted to: linux@lemmy.mlprogramming@programming.devhackernews@lemmy.smeargle.fanstechnews@radiation.partyhackernews@derp.foo
arrow-up160external-linkHow fast are Linux pipes anyway?mazzo.licm0002@lemmy.world to Linux@lemmy.worldEnglish · 18 days agomessage-square2fedilinkcross-posted to: linux@lemmy.mlprogramming@programming.devhackernews@lemmy.smeargle.fanstechnews@radiation.partyhackernews@derp.foo
minus-squareZachariah@lemmy.worldlinkfedilinkEnglisharrow-up12·18 days ago We will proceed as follows: A first slow version of our pipe test bench; How pipes are implemented internally, and why writing and reading from them is slow; How the vmsplice and splice syscalls let us get around some (but not all!) of the slowness; A description of Linux paging, leading up to a faster version using huge pages; The final optimization, replacing polling with busy looping; Some closing thoughts.