Re: [RFC] Arch option to touch newly allocated pages

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Mar 04 2002 - 17:49:58 EST


> OK, when something calls alloc_pages and gets back some pages, it's almost
> always going to modify them immediately, right?

Yes. Which is why we don't allocate the when you map an object or create
a shmem fs file

> If this is true, then what I'm proposing would force the host to find backing
> memory for those pages a tiny bit earlier than it would have had to otherwise.

In the normal case about half of the pages are never allocated that are
mapped. In other words no alloc_pages was ever done for them or will ever
be needed.

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



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:00:36 EST