All of lore.kernel.org
 help / color / mirror / Atom feed
* TLB flush question (x86_64)
@ 2011-09-03  5:47 Arkaprava Basu
  2011-09-17 19:12 ` Andreas Mohr
  0 siblings, 1 reply; 4+ messages in thread
From: Arkaprava Basu @ 2011-09-03  5:47 UTC (permalink / raw)
  To: linux-kernel

Hello,

     I am using 2.6.31 kernel on x86_64 (with SMP configuration). I
have a confusion on a TLB flush function.
     I found that the method tlb_flush_mmu (include/asm-generic/tlb.h)
, which is called by many system calls like munmap,madvise,mprotect
etc; ignores the virtual address range (start and end parameters) for
which it is called. It internally calls tlb_flush method, which on x86
gets converted to flush_tlb_mm. It seems that flush_tlb_mm flushes out
all the mappings for a given mm_struct (i.e., the whole user address
space for a process) from the tlb. Is there any particular reason why
the entire address space is flushed from the tlb while only a range of
virtual address space was supposedly required to be flushed? For
example why the method flush_tlb_range , which would have flushed
mappings belonging to a given virtual address range only could not
have been used instead of flush_tlb_mm? Is there any performance or
some other correctness related concern for not doing that?

Thanks
Arka

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-18  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-03  5:47 TLB flush question (x86_64) Arkaprava Basu
2011-09-17 19:12 ` Andreas Mohr
2011-09-17 23:37   ` Brian Gerst
2011-09-18  9:35     ` Borislav Petkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.