Re: Swapping thoughts

Nix (nix@esperi.demon.co.uk)
Thu, 21 May 1998 03:24:01 +0100 (BST)


> 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