Re: [PATCH] VM bugfix + rebalanced + code beauty

From: Matt Yourst (yourst@mit.edu)
Date: Wed May 31 2000 - 23:41:23 EST


Christoph Rohland <cr@sap.com> writes:
>>
>> I guess we really want to integrate the SHM swapout routine
>> with shrink_mmap...
>>
> I would love to integrate the whole shm page handling into the page
> cache.

I have some code that does this quite nicely using a variant of ramfs that
simply maintains a hash table of any swapped out pages (i.e.,
offset->swp_entry_t mappings.) The performance of this was excellent and simple
(code was less than ~200 lines). However, I can't post it right now since it
only supports the new shm_open() style virtual mappings (not the current SysV
IPC-style shmget/shmat/etc. system), plus I have not tested it recently and will
need to update it to work with current kernels. If anyone's interested in taking
this idea further, I'll try to fix the code for 2.4.0-test1 and post it later
this week.

- Matt Yourst

-------------------------------------------------------------
 Matt T. Yourst Massachusetts Institute of Technology
 yourst@mit.edu 617.225.7690
 513 French House - 476 Memorial Drive - Cambridge, MA 02136
-------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:11 EST