9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] faster vesa driver
@ 2009-06-09 21:18 geoff
  2009-06-09 21:26 ` erik quanstrom
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: geoff @ 2009-06-09 21:18 UTC (permalink / raw)
  To: 9fans

I've just pushed out kernel sources and binaries to incorporate
Aki's mtrr and vesa changes.  The combination makes monitor=vesa
run quite a bit faster; we saw a factor of three speed improvement
in one case.

It's still limited to a single processor, but we've got someone
investigating ways to fix that.



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

* Re: [9fans] faster vesa driver
  2009-06-09 21:18 [9fans] faster vesa driver geoff
@ 2009-06-09 21:26 ` erik quanstrom
  2009-06-09 23:29   ` Venkatesh Srinivas
  2009-06-09 23:54 ` Kenji Arisawa
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 13+ messages in thread
From: erik quanstrom @ 2009-06-09 21:26 UTC (permalink / raw)
  To: 9fans

On Tue Jun  9 17:20:12 EDT 2009, geoff@plan9.bell-labs.com wrote:
> I've just pushed out kernel sources and binaries to incorporate
> Aki's mtrr and vesa changes.  The combination makes monitor=vesa
> run quite a bit faster; we saw a factor of three speed improvement
> in one case.
>
> It's still limited to a single processor, but we've got someone
> investigating ways to fix that.

very cool.  thanks, geoff.

- erik



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

* Re: [9fans] faster vesa driver
  2009-06-09 21:26 ` erik quanstrom
@ 2009-06-09 23:29   ` Venkatesh Srinivas
  2009-06-09 23:36     ` erik quanstrom
  0 siblings, 1 reply; 13+ messages in thread
From: Venkatesh Srinivas @ 2009-06-09 23:29 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> On Tue Jun  9 17:20:12 EDT 2009, geoff@plan9.bell-labs.com wrote:
>> I've just pushed out kernel sources and binaries to incorporate
>> Aki's mtrr and vesa changes.  The combination makes monitor=vesa
>> run quite a bit faster; we saw a factor of three speed improvement
>> in one case.

What got three times faster? Do you have some kind of tool to measure
draw performance overall?

(I ask because I'm currently working on a 'drawperf', some that runs
tests similar to x11perf and xrender on drawing speed, but I'm stuck
and was hoping something like this exists....)

>> It's still limited to a single processor, but we've got someone
>> investigating ways to fix that.

We have rsc's 8i in contrib; would executing VESA BIOS operations in
it be the best way to support MP?

Thanks very much!
-- vs



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

* Re: [9fans] faster vesa driver
  2009-06-09 23:29   ` Venkatesh Srinivas
@ 2009-06-09 23:36     ` erik quanstrom
  0 siblings, 0 replies; 13+ messages in thread
From: erik quanstrom @ 2009-06-09 23:36 UTC (permalink / raw)
  To: 9fans

On Tue Jun  9 19:30:32 EDT 2009, me@acm.jhu.edu wrote:
> > On Tue Jun  9 17:20:12 EDT 2009, geoff@plan9.bell-labs.com wrote:
> >> I've just pushed out kernel sources and binaries to incorporate
> >> Aki's mtrr and vesa changes.  The combination makes monitor=vesa
> >> run quite a bit faster; we saw a factor of three speed improvement
> >> in one case.
>
> What got three times faster? Do you have some kind of tool to measure
> draw performance overall?

using andrey's screen saver hacks, i measured about an even greater
speedup using PAT, a technique similar to mtrrs but one that
uses page tables and not fixed physical ranges.  i did my tests with
andrey's xscreensaver hacks and timing catting large files to a fixed-sized
window.

i would attribute the perf difference between PAT and mtrr to be
a function of measurement and hardware — as in my crappy hardware.
if someone sees that one or the other is faster on the same hardware,
that would be very interesting to me.

- erik



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

* Re: [9fans] faster vesa driver
  2009-06-09 21:18 [9fans] faster vesa driver geoff
  2009-06-09 21:26 ` erik quanstrom
@ 2009-06-09 23:54 ` Kenji Arisawa
  2009-06-10  0:22 ` Skip Tavakkolian
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: Kenji Arisawa @ 2009-06-09 23:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks Geoff,

That made great effect to my VIA LN10000EG!

Kenji Arisawa

On 2009/06/10, at 6:18, geoff@plan9.bell-labs.com wrote:

> I've just pushed out kernel sources and binaries to incorporate
> Aki's mtrr and vesa changes.  The combination makes monitor=vesa
> run quite a bit faster; we saw a factor of three speed improvement
> in one case.
>
> It's still limited to a single processor, but we've got someone
> investigating ways to fix that.
>




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

* Re: [9fans] faster vesa driver
  2009-06-09 21:18 [9fans] faster vesa driver geoff
  2009-06-09 21:26 ` erik quanstrom
  2009-06-09 23:54 ` Kenji Arisawa
@ 2009-06-10  0:22 ` Skip Tavakkolian
  2009-06-12  9:26 ` Balwinder S Dheeman
  2009-06-16  0:20 ` Kenji Arisawa
  4 siblings, 0 replies; 13+ messages in thread
From: Skip Tavakkolian @ 2009-06-10  0:22 UTC (permalink / raw)
  To: 9fans

> I've just pushed out kernel sources and binaries to incorporate
> Aki's mtrr and vesa changes.  The combination makes monitor=vesa
> run quite a bit faster; we saw a factor of three speed improvement
> in one case.

thank you!  i'm using it on a lenovo T61p; it definitely feels faster.




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

* Re: [9fans] faster vesa driver
  2009-06-09 21:18 [9fans] faster vesa driver geoff
                   ` (2 preceding siblings ...)
  2009-06-10  0:22 ` Skip Tavakkolian
@ 2009-06-12  9:26 ` Balwinder S Dheeman
  2009-06-12 11:33   ` erik quanstrom
  2009-06-12 21:42   ` James Tomaschke
  2009-06-16  0:20 ` Kenji Arisawa
  4 siblings, 2 replies; 13+ messages in thread
From: Balwinder S Dheeman @ 2009-06-12  9:26 UTC (permalink / raw)
  To: 9fans

On 06/10/2009 02:51 AM, geoff@plan9.bell-labs.com wrote:
> I've just pushed out kernel sources and binaries to incorporate
> Aki's mtrr and vesa changes.  The combination makes monitor=vesa
> run quite a bit faster; we saw a factor of three speed improvement
> in one case.
>
> It's still limited to a single processor, but we've got someone
> investigating ways to fix that.

Great, but is in-compatible with QEMU.

Moreover, Plan9 does not boot off of a SiS SATA/USB2.0 DVD-RW or HDD's,
that's why I was forced to use QEMU.
/
--
Balwinder S "bdheeman" Dheeman        Registered Linux User: #229709
Anu'z Linux@HOME (Unix Shoppe)        Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India         Plan9, T2, Arch/Debian/FreeBSD/XP
Home: http://werc.homelinux.net/      Visit: http://counter.li.org/



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

* Re: [9fans] faster vesa driver
  2009-06-12  9:26 ` Balwinder S Dheeman
@ 2009-06-12 11:33   ` erik quanstrom
  2009-06-12 21:42   ` James Tomaschke
  1 sibling, 0 replies; 13+ messages in thread
From: erik quanstrom @ 2009-06-12 11:33 UTC (permalink / raw)
  To: 9fans

> > I've just pushed out kernel sources and binaries to incorporate
> > Aki's mtrr and vesa changes.  The combination makes monitor=vesa
> > run quite a bit faster; we saw a factor of three speed improvement
> > in one case.
> >
> > It's still limited to a single processor, but we've got someone
> > investigating ways to fix that.
>
> Great, but is in-compatible with QEMU.

qemu already marks this memory WB with PAT
bits in the shadow PT.

http://www.slideshare.net/xen_com_mgr/xs-boston-2008-cache

> Moreover, Plan9 does not boot off of a SiS SATA/USB2.0 DVD-RW or HDD's,
> that's why I was forced to use QEMU.

does your chipset support ahci, and if so, is it in ahci mode?
that should work.  if it doesn't could you send me your
information off-line?

- erik



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

* Re: [9fans] faster vesa driver
  2009-06-12  9:26 ` Balwinder S Dheeman
  2009-06-12 11:33   ` erik quanstrom
@ 2009-06-12 21:42   ` James Tomaschke
  1 sibling, 0 replies; 13+ messages in thread
From: James Tomaschke @ 2009-06-12 21:42 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Balwinder S Dheeman wrote:
> Great, but is in-compatible with QEMU.

Using KVM(QEMU) it is working for me. At first I got some aux/vga error
on init, after recompiling /sys/src/cmd it seemed to work just fine.
Did not investigate any further.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoyy7oACgkQl3JZTBu3/9lywwCdEU1uZ33njnS7PI8xMuLKPDfG
o+8AoJb+/9bdaZq/2eSKsVbY0WYV0NiF
=2cUR
-----END PGP SIGNATURE-----



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

* Re: [9fans] faster vesa driver
  2009-06-09 21:18 [9fans] faster vesa driver geoff
                   ` (3 preceding siblings ...)
  2009-06-12  9:26 ` Balwinder S Dheeman
@ 2009-06-16  0:20 ` Kenji Arisawa
  2009-06-16  2:19   ` erik quanstrom
  4 siblings, 1 reply; 13+ messages in thread
From: Kenji Arisawa @ 2009-06-16  0:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello Geoff,

I am glad if mtrr makes effect only to single processor
until the mtrr can support multi-core processor.

Kenji Arisawa

On 2009/06/10, at 6:18, geoff@plan9.bell-labs.com wrote:

> I've just pushed out kernel sources and binaries to incorporate
> Aki's mtrr and vesa changes.  The combination makes monitor=vesa
> run quite a bit faster; we saw a factor of three speed improvement
> in one case.
>
> It's still limited to a single processor, but we've got someone
> investigating ways to fix that.
>




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

* Re: [9fans] faster vesa driver
  2009-06-16  0:20 ` Kenji Arisawa
@ 2009-06-16  2:19   ` erik quanstrom
  2009-06-16  2:46     ` Venkatesh Srinivas
  0 siblings, 1 reply; 13+ messages in thread
From: erik quanstrom @ 2009-06-16  2:19 UTC (permalink / raw)
  To: 9fans

On Mon Jun 15 20:21:36 EDT 2009, arisawa@ar.aichi-u.ac.jp wrote:
> Hello Geoff,
>
> I am glad if mtrr makes effect only to single processor
> until the mtrr can support multi-core processor.
>
> Kenji Arisawa

mtrrs work on any number of processors.  it is plan 9's
vesa which does not.

- erik



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

* Re: [9fans] faster vesa driver
  2009-06-16  2:19   ` erik quanstrom
@ 2009-06-16  2:46     ` Venkatesh Srinivas
  2009-06-16  3:17       ` Ori Bernstein
  0 siblings, 1 reply; 13+ messages in thread
From: Venkatesh Srinivas @ 2009-06-16  2:46 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> mtrrs work on any number of processors.  it is plan 9's
> vesa which does not.

Is this just because the driver uses realmode()? Or is there something else?

To solve the realmode() problem, we could link rsc's 8i into the
kernel and use that to execute the vesa bios code, right?

-- vs



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

* Re: [9fans] faster vesa driver
  2009-06-16  2:46     ` Venkatesh Srinivas
@ 2009-06-16  3:17       ` Ori Bernstein
  0 siblings, 0 replies; 13+ messages in thread
From: Ori Bernstein @ 2009-06-16  3:17 UTC (permalink / raw)
  To: 9fans

On Mon, 15 Jun 2009 22:46:42 -0400
Venkatesh Srinivas <me@acm.jhu.edu> wrote:

> > mtrrs work on any number of processors.  it is plan 9's
> > vesa which does not.
>
> Is this just because the driver uses realmode()? Or is there something else?
>
> To solve the realmode() problem, we could link rsc's 8i into the
> kernel and use that to execute the vesa bios code, right?
>
8i needs some work to add coverage for more instructions (for example,
movz). Other than that, it should be callable from userspace (say,
aux/vga) instead of being linked into the kernel.

--
    Ori Bernstein



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

end of thread, other threads:[~2009-06-16  3:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-09 21:18 [9fans] faster vesa driver geoff
2009-06-09 21:26 ` erik quanstrom
2009-06-09 23:29   ` Venkatesh Srinivas
2009-06-09 23:36     ` erik quanstrom
2009-06-09 23:54 ` Kenji Arisawa
2009-06-10  0:22 ` Skip Tavakkolian
2009-06-12  9:26 ` Balwinder S Dheeman
2009-06-12 11:33   ` erik quanstrom
2009-06-12 21:42   ` James Tomaschke
2009-06-16  0:20 ` Kenji Arisawa
2009-06-16  2:19   ` erik quanstrom
2009-06-16  2:46     ` Venkatesh Srinivas
2009-06-16  3:17       ` Ori Bernstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).