Re: 2.6.16-rc1: 28ms latency when process with lots of swappedmemory exits

From: Lee Revell
Date: Tue Mar 14 2006 - 17:36:26 EST


On Tue, 2006-03-14 at 22:01 +0100, Ingo Molnar wrote:
> hm, where does the latency come from? We do have a lockbreaker in
> unmap_vmas():
>
> if (need_resched() ||
> (i_mmap_lock &&
> need_lockbreak(i_mmap_lock))) {
> if (i_mmap_lock) {
> *tlbp = NULL;
> goto out;
> }
> cond_resched();
> }
>
>
> why doesnt this break up the 28ms latency?
>

But the preempt count is >= 2, doesn't that mean some other lock must be
held also, or someone called preempt_disable?

Lee

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