lkml.org 
[lkml]   [2003]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [parisc-linux] Re: Question about cache flushing and fork
    On Mon, Dec 15, 2003 at 08:48:35PM -0800, David S. Miller wrote:
    > On Mon, 15 Dec 2003 20:40:33 -0800
    > Randolph Chung <randolph@tausq.org> wrote:
    > > Can someone please explain why it is necessary to flush the cache
    > > during fork()? (i.e. call to flush_cache_mm() in dup_mmap)
    > Writable pages that will be shared between the child and
    > parent are marked read-only and COW, some cpu caches store
    > protection information in the cache lines in order to avoid
    > TLB lookups etc. so the caches must be flushed since the
    > page protection information is changing.

    On PARISC, the cache line contains the following elements:
    1) data (obviously)
    2) physical page
    3) dirty/clean/public/private/etc state

    A cache access hits or misses depending on whether or not the physical page from
    the TLB matches the physical page stored in the cache line.

    If flushing is required during fork on PARISC, then there are cache consistency
    issues elsewhere, something is horribly broken in the design (and it should be
    falling all over anyway).

    lamont
    -
    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:59    [W:4.972 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site