lkml.org 
[lkml]   [2003]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Inefficient TLB flushing
On Wed, 12 Nov 2003 14:01:19 -0600
Jack Steiner <steiner@sgi.com> wrote:

> --- /usr/tmp/TmpDir.19957-0/linux/mm/memory.c_1.79 Wed Nov 12 13:56:25 2003
> +++ linux/mm/memory.c Wed Nov 12 12:57:25 2003
> @@ -574,9 +574,10 @@
> if ((long)zap_bytes > 0)
> continue;
> if (need_resched()) {
> + int fullmm = (*tlbp)->fullmm;
> tlb_finish_mmu(*tlbp, tlb_start, start);
> cond_resched_lock(&mm->page_table_lock);
> - *tlbp = tlb_gather_mmu(mm, 0);
> + *tlbp = tlb_gather_mmu(mm, fullmm);
> tlb_start_valid = 0;
> }
> zap_bytes = ZAP_BLOCK_SIZE;

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

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.038 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site