lkml.org 
[lkml]   [2001]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] zero^H^H^H^Hsingle copy pipe
Alan Cox wrote:
>
> > The main problem is that map_user_kiobuf() locks pages into memory.
> > It's a bad idea for pipes. Either we must severely limit the maximum
>
> You only have to map them for the actual copy.

The current map_user_kiobuf() doesn't have an 'mm' parameter, I can only
use it from the context of the writer.
I could use map_user_kiobuf_mm(), but the kiobuf structure is far too
large, I really don't want a huge structure (> 8 kB?) for a simple 4 kB
single copy transfer.
Including a memset(,0,sizeof(*iobuf) in kiobuf_init().

I think reusing the ptrace interface (access_process_vm()) is the better
solution.

--
Manfred
-
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/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.050 / U:1.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site