Re: [2.2.14 to 2.2.17pre9] infinite or long loop in shrink_mmap()

Willy Tarreau (willy@novworld.Novecom.Fr)
Fri, 30 Jun 2000 23:47:43 +0200 (CEST)


Hi all,

after having done some very nasty and ugly tricks in filemap.c, I've
finaly had two simultaneous instances of mmap002 work on the same
file correctly and terminate for the first time without a hang !

What I've done *is* full of bugs, but it was just a proof of concept.
I wanted to try to do the same as msync() when pages were used more
than once, so I borrowed some code from other functions, obviously
breaking many other things (msync itself doesn't seem to like it).

I'd like some advices of good articles to read, to understand a bit what
I'm playing with, and stop working this manner. In fact, I'd like to know
at least how paging works under linux (including mmap, swap, cache, buffers...).

Any idea ?

Willy

-
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/