lkml.org 
[lkml]   [2011]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC] virtio: use mandatory barriers for remote processor vdevs
Date
On Sat, 03 Dec 2011 10:09:44 +1100, Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Tue, 2011-11-29 at 14:31 +0200, Ohad Ben-Cohen wrote:
> > A trivial, albeit sub-optimal, solution would be to simply revert
> > commit d57ed95 "virtio: use smp_XX barriers on SMP". Obviously, though,
> > that's going to have a negative impact on performance of SMP-based
> > virtualization use cases.
>
> Have you measured the impact of using normal barriers (non-SMP ones)
> like we use on normal HW drivers unconditionally ?
>
> IE. If the difference is small enough I'd say just go for it and avoid
> the bloat.

Yep. Plan is:
1) Measure the difference.
2) Difference unmeassurable? Use normal barriers (ie. revert d57ed95).
3) Difference small? Revert d57ed95 for 3.2, revisit for 3.3.
4) Difference large? Runtime switch based on "if you're PCI" for 3.2,
revisit for 3.3.

Cheers,
Rusty.


\
 
 \ /
  Last update: 2011-12-04 11:53    [W:0.103 / U:1.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site