Re: [PATCH 2/2] Optimize compound_head() by avoiding a shared page flag

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Saturday, April 7, 2007 - 6:48 pm

On Sat, 7 Apr 2007 18:32:04 -0700 (PDT) Christoph Lameter <clameter@sgi.com> wrote:


Right.

        movl    (%ebx), %eax    # <variable>.flags, tmp399
        andl    $48, %eax       #, tmp399
        cmpl    $48, %eax       #, tmp399
        je      .L265   #,

what's "yuck" about that?

With the single page flag:

	movl	(%ebx), %eax	#* page.521, D.21940
	testb	$32, %al	#, D.21940
	jne	.L265	#,

So you're talking about saving one sole single silly solitary instruction.



You can save that worrisome single instruction in the common case by putting the
handling of the uncommon compound pages out of line, as I indicated.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] Make page-&gt;private usable in compound pages V1, Christoph Lameter, (Thu Apr 5, 3:36 pm)
[PATCH 2/2] Optimize compound_head() by avoiding a shared ..., Christoph Lameter, (Thu Apr 5, 3:36 pm)
Re: [PATCH 2/2] Optimize compound_head() by avoiding a sha ..., Andrew Morton, (Sat Apr 7, 6:48 pm)
Re: [PATCH 2/2] Optimize compound_head() by avoiding a sha ..., Christoph Lameter, (Mon Apr 9, 10:22 am)
Re: [PATCH 2/2] Optimize compound_head() by avoiding a sha ..., Christoph Lameter, (Mon Apr 9, 11:09 am)
Re: [PATCH 2/2] Optimize compound_head() by avoiding a sha ..., Christoph Lameter, (Mon Apr 9, 11:49 am)