Re: Calling current() from interrupt context

From: David S. Miller (
Date: Tue Oct 10 2000 - 04:46:52 EST

   Date: Tue, 10 Oct 2000 10:54:11 +0100 (BST)
   From: Alan Cox <>

   Having the stacks aligned also isnt good for the caches. If you are
   bored some time instrument the cache lines that wake_up() touches
   on a wake. Its very common to see most of them being on the same
   line because each kernel thread waiting on the same event (eg poll
   in apache) is at the same kernel and user stack depth.

Some of us actually have instrumented it :-) I added a coloring
mechanism to the task/kstack allocator on sparc64. It made no
noticable difference whatsoever to any real life measurement I

In my experiments I tried both L1 cache and L2 cache coloring.

David S. Miller
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:15 EST