Re: [patch 4/9] Guest page hinting: volatile swap cache.
- From: Dave Hansen <haveblue@xxxxxxxxxx>
- Date: Fri, 01 Sep 2006 08:52:19 -0700
On Fri, 2006-09-01 at 17:37 +0200, Martin Schwidefsky wrote:
On Fri, 2006-09-01 at 08:04 -0700, Dave Hansen wrote:
+EXPORT_SYMBOL(find_get_page_nodiscard);
+
+#endif
Is it worth having another full copy of find_get_page()? What about a
"nodiscard" argument?
That is a hard call to make. I really tried hard to avoid adding any
overhead to a system running without the feature.
The overhead being the extra (potentially unused) argument to the
function? Plus, that the function isn't inlined and thus will be unable
to have its argument optimized away?
In the worse case, we're talking about the cost of saving and restoring
the contents of a single register to the stack. In other arches, we're
talking about the push of an immediate on the stack for the call.
Yeah, it is a hard call to make, especially if you're aiming for
zero-impact.
-- Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [patch 4/9] Guest page hinting: volatile swap cache.
- From: Martin Schwidefsky
- Re: [patch 4/9] Guest page hinting: volatile swap cache.
- From: Dave Hansen
- Re: [patch 4/9] Guest page hinting: volatile swap cache.
- From: Martin Schwidefsky
- [patch 4/9] Guest page hinting: volatile swap cache.
- Prev by Date: Re: ACPI: Idle Processor PM Improvements
- Next by Date: Get Bigger Pennis
- Previous by thread: Re: [patch 4/9] Guest page hinting: volatile swap cache.
- Next by thread: [patch 5/9] Guest page hinting: mlocked pages.
- Index(es):
Relevant Pages
|