Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2006 19:07:33 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/i386 vm_machdep.c
Message-ID:  <200603171907.k2HJ7XCY001169@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
alc         2006-03-17 19:07:33 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/i386/i386        vm_machdep.c 
  Log:
  MFC vm_machdep.c 1.261-1.263
  
  Rev: 1.261
  
    Ensure that a thread stays on same CPU when calculating per CPU
    TLB shootdown requirements. Otherwise a CPU may not get the needed
    TLB invalidation.
  
    The PTE valid and access flags can not be used here to avoid TLB
    shootdowns unless sf->cpumask == all_cpus.
    ( Otherwise some CPUs may still hold an even older entry in the TLB)
    Since sf_buf_alloc mappings are normally always used this is
    also not really useful and presetting accessed and modified
    allows the CPU to speculatively load the entry into the TLB.
  
    Both bugs can cause random data corruption.
  
  Rev: 1.262
  
    Restore optimizations to reduce TLB shootdowns.
    Alan Cox pointed out that they are really useful for
    sendfile().
  
  Rev: 1.263
    Restore the UP optimization to reduce the number of TLB
    invalidations.  The previous revision only restored the MP optimization.
  
    Describe the optimization strategy for TLB invalidations in a comment.
  
  Approved by:    re@ (scottl)
  
  Revision   Changes    Path
  1.241.2.4  +37 -31    src/sys/i386/i386/vm_machdep.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603171907.k2HJ7XCY001169>