Linux-kernel mailing list archive 2000-23,: Re: [PATCH] ac7 Athlon-SMP

# Re: [PATCH] ac7 Athlon-SMP

Tom Leete (tleete@mountain.net)
Mon, 05 Jun 2000 19:52:15 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Alan Cox: "Re: [PATCH] ac7 Athlon-SMP"
- Previous message: Alan Cox: "Re: (reiserfs) Re: New Linux 2.5 - 2.6 TODO (Alan Cox suggestsdelaying"

Alan Cox wrote:
>
I said:
> > Athlon docs recommend inlining for less than 25 machine instructions.
[...]
> Im pretty sure you want to inline small copies. Note that we have a suprisingly
> high proportion of short copies and that those we want to inline via rep movs

> The inline code you want is something like
>
> in_irq ?
^^^^^^
This one is the problem. asm/string.h gets included in the
common code long before task_struct is defined. I haven't
found a clean and local way to fix that.

> jmp #1
> len < 256
> jmp #1
> jmp out_of_line_copy
> #1
> [existing x86 rep based copy]
>

Yes, this is the present code, aside from 512-->256.

How about moving the in_interrupt() test into
out_of_line_copy? The objection is that that's the case
where you really want it fast.

AMD says 3DNow PREFETCH is ok in interrupts, so is that test
even necessary? It might be worthwhile to issue a prefetch
before doing anything else, unless there are lots of really
short copys done.

Testing is difficult until it builds.

Tom

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

- Next message: Alan Cox: "Re: [PATCH] ac7 Athlon-SMP"
- Previous message: Alan Cox: "Re: (reiserfs) Re: New Linux 2.5 - 2.6 TODO (Alan Cox suggestsdelaying"