Messages in this thread | | | Date | Mon, 06 Mar 2006 19:06:33 -0800 (PST) | Subject | Re: Status of AIO | From | "David S. Miller" <> |
| |
From: Benjamin LaHaise <bcrl@kvack.org> Date: Mon, 6 Mar 2006 20:39:15 -0500
> VM tricks do suck, so you just have to use the tricks that nobody else > is... My thinking is to do something like the following: have a structure > to reference a set of pages. When it is first created, it takes a reference > on the pages in question, and it is added to the vm_area_struct of the user > so that the vm can poke it for freeing when memory pressure occurs. The > sk_buff dataref also has to have a pointer to the pageref added.
You've just reinvented fbufs, and they have their own known set of issues.
Please read chapter 5 of Networking Algorithmics or ask someone to paraphrase the content for you. It really covers this completely, and once you read it you will be able to avoid reinenting the wheel and falling under the false notion of having invented something :-) - 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/
| |