[lkml]   [2008]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: quicklists confuse meminfo
>   1. Xen marks the whole page as being of pgd-type, and so it can't
> have non-pgd contents (as the page would be RO, and any contents
> would be validated as pgd entries). However I can fix that by

That sounds more like a Xen bug. Why should it validate anything except
the first four entries which are used by the hardware?

I can imagine that false sharing would be slow because you would
have unnecessary traps, but it shouldn't be a correctness issue.

> maintaining a separate per-cpu pgd page, and just copy the four
> entries over when cr3 is reloaded. This would move the
> Xen-specific requirements into the Xen code without affecting the
> rest of the kernel.

x86-64 used to do that, but it turned out this breaks some shared cache
optimizations on the P4 between SMT threads. So you might actually see
user space performance regressions from it.


 \ /
  Last update: 2008-03-10 18:53    [W:0.064 / U:3.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site