lkml.org 
[lkml]   [2005]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Nick's core remove PageReserved broke vmware...
On Wed, 2 Nov 2005, Petr Vandrovec wrote:
>
> Nope. We are not having PageReserved() set on our pages since we want them
> refcounted. But old SuSE kernels contained this code which was rather unhappy
> if page did not have ->mapping set.

Yes, Andrea's do_no_page enforced some tests which I found confusing and
unhelpful, so I didn't propagate them to mainline when porting his rmap.

> So we just marked vma VM_RESERVED, as it
> did not hurt, and all pages in this vma have refcount > 1 anyway so there is
> no point in trying to cleanup these page tables. Now rmap catches this by
> page_count() != page_mapcount(), so VM_RESERVED is not needed anymore, but
> there did not seem to be any reason to remove it.

Well, beware. That "page_count() != page_mapcount() + 2" check in rmap.c
went away in 2.6.13: the problem it was there to solve being solved
instead by a can_share_swap_page based on page_mapcount instead of
page_count (partly to fix a page migration progress problem).

So, you may still be in trouble? But how do the pages you're concerned
with come to be on the LRU in the first place? If they're not on the
LRU, vmscanning will never try to take them away. Most drivers with
special pages, and ->mapping unset, don't put the pages on the LRU.

> --- vmmon-only/linux/driver.c.orig 2005-11-02 02:00:46.000000000 +0100
> +++ vmmon-only/linux/driver.c 2005-11-01 20:12:13.000000000 +0100
> @@ -1283,9 +1283,13 @@
> /*
> * It seems that SuSE's 2.6.4-52 needs this. Hopefully
> * it will not break anything else.
> + *
> + * It breaks on post 2.6.14 kernels, so get rid of it on them.
> */
> #ifdef VM_RESERVED
> +# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 14)
> vma->vm_flags |= VM_RESERVED;
> +# endif
> #endif
> return 0;
> }

Nick's PageReserved/VM_RESERVED changes are not in 2.6.14 so I'd expect
2.6.15 there. Ah, you're trying to handle this awkward interval before
2.6.15-rc1 brings the numbering up to 2.6.15, okay.

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

\
 
 \ /
  Last update: 2005-11-02 13:34    [W:0.134 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site