On 15/11/2026 15:20, Michael Kelly wrote:
I've prototyped (hacked!) a write combining mapping for the user land
frame buffer. The speed up is tremendous with 10000 full writes to the
frame buffer taking 3.5s compared with 64s without WC. I think that
most of what I've implemented already for the gnumach console will be
acceptable once I've added an interface to support write combining
properly.
A user interface would be useful too so the Hurd console can benefit.
Have you any strong opinions on the detail of supporting write
combining in gnumach or shall I try something and see what you think ?
A minor update....
Integrating the write combined mapping into the gnumach console code
achieves a scrolled output rate of approximately 800 lines per second.
These lines are 50 characters wide which is my estimate at an average
length. This is running on my fairly vintage desktop box which probably
has lower than average performance. I think that's good enough for a
starting point.
The code does not read the video memory to scroll but rather redraws the
characters at their new position. These character values are maintained
within a local buffer which as a future improvement could be made larger
than the screen size to implement a scrollback feature.
Also, just to clarify, when I say support write combining, what I really
mean is to support PAT (Page Attribute Table).
Cheers,
Mike.