Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 1996 12:25:29 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        dyson@FreeBSD.org
Cc:        jdli@FreeBSD.csie.NCTU.edu.tw, freebsd-current@FreeBSD.org
Subject:   Re: VM problem (OK!!)
Message-ID:  <199609131925.MAA09428@phaeton.artisoft.com>
In-Reply-To: <199609130307.WAA00231@dyson.iquest.net> from "John S. Dyson" at Sep 12, 96 10:07:55 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > >  Addition of page coloring support.  Various levels of coloring are
> > >  afforded.  The default level works with minimal overhead, but one
> > >  can also enable full, efficient use of a 512K cache.  (Parameters
> > >  can be generated to support arbitrary cache sizes also.)
> > 
> > 	BTW, I don't understand this, does it mean that I can tune my kernel
> > 	to use cache better ? (I got 512k pb-cache, 32MB DRAM, ASUS T2P4 M/B)
>
> Yes!!!  I haven't documented the options yet, their names are probably
> not final.

Hold up a second.

When you said you had page coloring working, I immediately thought in
Microsoft terms of using a segment type identifier on page creation
for gross management of code.

Specifically, I thought I could do this with an ELF kernel:


Color	Meaning

0x00	Immovable data
0x01	Immovable code
0x02	Discardable data
0x03	Discardable code
0x04	Pageable data
0x05	Pageable code
0x06	Driver locked data
0x07	Driver locked code
0x08	Driver pageable data
0x09	Driver pageable code

[ ... ]

Then I would make the console driver by putting the interrupt handler
code in 0x07, the data referenced by the interrupt handler code (ie:
volatile data) in 0x06, one time initialization code/data in 0x03 and
0x02, and the rest of the driver in 0x09 and 0x08.

Then I could replace the console driver with a card-specific driver
once I had booted and throw away all pages that contained the default
console driver.

Similarly, I could replace a VM86()-based BIOS-using disk driver with
a controller-specific driver, letting me boot on all 386 or better
hardware DOS can boot on, run at diminished performance if there was no
protected mode driver, and load a protected mode driver for better
performance if it were available (and throw away the BIOS-using driver
once I had done that).


It seems that you are using page coloring in terms of L2 cache here;
am I missing something?


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609131925.MAA09428>