Messages in this thread | | | Date | Fri, 07 Jan 2005 17:30:40 +0300 | From | Oleg Nesterov <> | Subject | Re: Make pipe data structure be a circular list of pages, rather than |
| |
Hello.
pipe_writev: > + if (bufs < PIPE_BUFFERS) { > + ssize_t chars; > + int newbuf = (info->curbuf + bufs) & (PIPE_BUFFERS-1);
If i understand this patch correctly, then this code
for (;;) write(pipe_fd, &byte, 1);
will block after writing PIPE_BUFFERS == 16 characters, no? And pipe_inode_info will use 64K to hold 16 bytes!
Is it ok?
May be it make sense to add data to the last allocated page until buf->len > PAGE_SIZE ?
Oleg. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |