On Mon, Feb 04, 2008 at 10:11:24PM -0800, Christoph Lameter wrote:invalidate_pages is only a further optimization that was strightforward in some places where the page isn't freed but only the pte modified. The patch as a whole isn't fragile nor complex. Pretending to use invalidate_pages anywhere would be complex (and in turn more fragile than my current patch, complexity brings fragility). Overall you can only argue against performance issues (my patch is simpler for GRU/KVM, and it sure isn't fragile, quite the opposite, given I never allow a coherency-loss between two threads that will read/write to two different physical pages for the same virtual adddress in remap_file_pages). In performance terms with your patch before GRU can run follow_page it has to take a mm-wide global mutex where each thread in all cpus will have to take it. That will trash on >4-way when the tlb misses start to occour. There's nothing like that in my patch. Your approach will micro-optimize certain large pte-mangling calls, or do_exit, but those aren't interesting paths nor for GRU nor for KVM. You're optimizing for the slow path, and making the fast path slower. There can be many tricks to optimize page in pages, but again munmap and do_exit aren't the interesting path to optimzie, nor for GRU nor for KVM so it doesn't matter right now. --
| FUJITA Tomonori | Re: Linux 2.6.25-rc4 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Artem Bityutskiy | [PATCH 11/44 take 2] [UBI] allocation unit header |
git: | |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
