Mazzoli: How fast are Linux pipes anyway?
Mazzoli: How fast are Linux pipes anyway?
Posted Jun 9, 2022 15:01 UTC (Thu) by willy (subscriber, #9762)In reply to: Mazzoli: How fast are Linux pipes anyway? by NYKevin
Parent article: Mazzoli: How fast are Linux pipes anyway?
What does it mean to mmap() a pipe?
Let's suppose I have a pipefd and addr = mmap(offset=0, length=1M). Then I call read(4kB) on pipefd. Does the pipe shuffle down so that *addr now refers to what was at 4kB, or does it still have a reference to what was at 0 when I called mmap()?
