On Tue, 9 Jan 2001, Dave Zarzycki wrote: > In user space, how do you know when its safe to reuse the buffer that > was handed to sendmsg() with the MSG_NOCOPY flag? Or does sendmsg() > with that flag block until the buffer isn't needed by the kernel any > more? If it does block, doesn't that defeat the use of non-blocking > I/O? sendmsg() marks those pages COW and copies the original page into a new one for further usage. (the old page is used until the packet is released.) So for maximum performance user-space should not reuse such buffers immediately. Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: [PLEASE-TESTME] Zerocopy ... Alan Cox
- Re: [PLEASE-TESTME] Zerocopy ... Stephen C. Tweedie
- Re: [PLEASE-TESTME] Zerocopy ... Ingo Molnar
- Re: [PLEASE-TESTME] Zerocopy ... David S. Miller
- Re: [PLEASE-TESTME] Zerocopy ... Linus Torvalds
- Re: [PLEASE-TESTME] Zerocopy ... Stephen C. Tweedie
- Re: [PLEASE-TESTME] Zerocopy ... Stephen Frost
- Re: [PLEASE-TESTME] Zerocopy ... Ingo Molnar
- Re: [PLEASE-TESTME] Zerocopy ... Stephen Frost
- Re: [PLEASE-TESTME] Zerocopy ... Dave Zarzycki
- Re: [PLEASE-TESTME] Zerocopy ... Ingo Molnar
- Re: [PLEASE-TESTME] Zerocopy ... David S. Miller
- Re: [PLEASE-TESTME] Zerocopy ... Dave Zarzycki
- storage over IP (was Re: [PLEASE-TESTM... dean gaudet
- Re: storage over IP (was Re: [PLE... Alan Cox
- Re: storage over IP (was Re: [PLE... David S. Miller
- Re: storage over IP (was Re: ... dean gaudet
- Re: storage over IP (was Re: ... David S. Miller
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0-1 Jes Sorensen
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4... David S. Miller
- Re: [PLEASE-TESTME] Zerocopy networking patch,... Jes Sorensen