Skip to contentSkip to conversation

cache pollution aware __copy_from_user_ll()

RFC PATCH [email protected] 2 participants 2 messages Aug 15, 2005

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
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.