Re: PATCH 2.3.26: kmalloc GFP_ZERO

David S. Miller (davem@redhat.com)
Tue, 9 Nov 1999 13:37:33 -0800


Date: Tue, 9 Nov 1999 22:22:48 +0100 (CET)
From: Andrea Arcangeli <andrea@suse.de>

>> the idle task will be less fast in rescheduling itself.
>
>Why?

Because when you'll enter the memset in the idle task you won't exit it in
the middle even if somebody sent you a reschedule interrupt. The increased
scheduler latency while rescheduling the idle task will be close to the
time of a memset/2 (if the pool was empty).

No, as Victor has stated you don't call standard memset, you inline
code it in the architecture specific idle loop and there you can
check need_resched in between every store instruction if you feel
it necessary.

Later,
David S. Miller
davem@redhat.com

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