cache pollution aware __copy_from_user_ll()
Actually, is there any place *other* than write() to the page cache that warrants a non-temporal store? Network sockets with scatter/gather and hardware checksum, maybe?
This is pretty much synonomous with what is allowed to go into high memory, no?
While we're on the subject, for the copy_from_user source, prefetchnta is probably indicated. If user space hasn't caused it to be cached already (admittedly, the common case), we *know* the kernel isn't going to look at that data again.
Quoted 3 lines · On Mon, 2005-08-15 at 08:15 -0400, [email protected] wrote:
Actually, is there any place *other* than
write()to the page cache that warrants a non-temporal store? Network sockets with scatter/gather and hardware checksum, maybe?
afaik those use zero copy already, eg straight pagecache copy. Eg that's the only case where s/g is used right now, and that case doesn't copy already.