lkml.org 
[lkml]   [1998]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Swapping thoughts
Date
> No you don't... Executables are mmap()ed and reside inside
> the page cache.

It seems passing strange that executables are treated that way
but all other files are not.

Why do we have separate code paths for open() & friends?[1] It
seems that they could be implemented in terms of mmap(), too;
this would leave the only non-mmap()ed stuff being data
space (whether kernel or user is irrelevant).

Is this a silly idea? It seems so obvious that I'm sure I'm
missing something or you'd have done it already.

[1] at least in 2.0.34pre12 this is true. I haven't checked
the 2.1 kernels and things have changed a lot there, I know

--
`cc:Mail is a wonderful application, as long as you don't want to
read or send mail.'

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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