Re: [patch-2.4.0-test2]Re: Linux-2.4.0-test2

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 25 Jun 2000 12:47:20 +0100 (BST)


> architectures as well; the difference are that:
> - kernels are quiet about that save Alpha
> - on x86 these misaligned accesses are not that costly but elsewhere
> they can be quite a drag.

In the networking code we intentionally take them. Its faster to try to align
(with 99.9something% success) than to always assume the worst. That is quite
common in the kernel - it pays to assume the common good case and only pay
for the rare cases it fails. copy_*_user has the same attitude

Alan

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