VOGONS


First post, by jesolo

User metadata
Rank l33t
Rank
l33t

I've come across a couple of threads where there were discussions about increasing the amount of L2 cache, which in turn could lead to some performance gains.
However, what I'm trying to find is a general "guideline" on how much cache will be sufficient for the amount of RAM that is installed on the motherboard.

For example, if I install only 8 MB of RAM on my 486DX-33, will increasing the L2 cache from 128kb to 256kb lead to any significant performance gains (if any)?
I've also read about write back versus write through (or thru) L2 cache and where more L2 cache will increase performance and in other cases will not have any significant impact (unless you decrease the installed amount of RAM).

Does anyone perhaps have a simple summary of amount of RAM versus optimal L2 cache for that RAM installed, starting from 4MB right up to around 64 MB?

Reply 1 of 17, by Deksor

User metadata
Rank l33t
Rank
l33t

If I'm correct, the size of the RAG ram "decides" of what amount of ram you'll be able to cache, though many people prefer to use a tag ram as big as the 8 other chips for the cache itself, probably because it was cheaper to buy everything in one row.

The chipset can also "decide" of how big the tag ram will be ... Limiting the amount of cacheable memory, just like TX chipsets are doing.

However increasing the cache memory, even if the memory was already fully cacheable before will still lead to some performance increase. But it won't be as big as getting from 0KB L2 cache to 128/256KB

Trying to identify old hardware ? Visit The retro web - Project's thread The Retro Web project - a stason.org/TH99 alternative

Reply 2 of 17, by feipoa

User metadata
Rank l33t++
Rank
l33t++

I haven't come across exactly what you are looking for, but the chart which is available is the maximum amount of RAM per amount of cache so that all the RAM is still cached. Of course you must increase the TAG RAM size depending on the amount of cache.

For direct-mapped cache, generally,
256 MB needs at least 1024 KB if cache set to write-thru mode
128 MB needs at least 1024 KB if cache set to write-back mode
128 MB needs at least 512 KB if cache set to write-thru mode
64 MB needs at least 512 KB if cache set to write-back mode
64 MB needs at least 256 KB if cache set to write-thru mode
32 MB needs at least 256 KB if cache set to write-back mode
32 MB needs at least 128 KB if cache set to write-thru mode
etc...

In most cases, write-back L2 cache has little benefit, 2-5% at best. CPUMark99 seems the most sensitive to L2 cache type.

In an attempt to answer the original question, I think the consensus is that if, for example, you have 4-16 MB of RAM, there is little-to-no recordable benefit in going beyond 256 KB of L2 cache. Going beyond 256 KB is usually for satisfying the memory cache range.

It would be interesting, though, to see a benchmark study done in a system with, say, 8 MB of RAM, and increasing the cache from 64K, to 128, 256, 512, and up to 1024K. And to note which benchmarks benefit the most from the increasing cache size.

Plan your life wisely, you'll be dead before you know it.

Reply 3 of 17, by PhilsComputerLab

User metadata
Rank l33t++
Rank
l33t++

256 is my recommendation. I've got pretty much all boards configures with that in mind. It's a good balance of size and speed.

YouTube, Facebook, Website

Reply 4 of 17, by feipoa

User metadata
Rank l33t++
Rank
l33t++

jesolo, I just remembered that I did a comparison somewhere on vogons which shows that for a fixed amount of cache, say, 1024K, using less RAM did not improve benchmark results. There were a few other things tested for. Can't remember where it is now, but it was mixed into some other thread.

Plan your life wisely, you'll be dead before you know it.

Reply 5 of 17, by kixs

User metadata
Rank l33t
Rank
l33t
feipoa wrote:

It would be interesting, though, to see a benchmark study done in a system with, say, 8 MB of RAM, and increasing the cache from 64K, to 128, 256, 512, and up to 1024K. And to note which benchmarks benefit the most from the increasing cache size.

This has already been done and it shows performance increases a bit with larger L2 cache no matter the memory size.

Like here:
Re: Phil's Ultimate VGA Benchmark Database Project

Requests are also possible... /msg kixs

Reply 6 of 17, by brassicGamer

User metadata
Rank Oldbie
Rank
Oldbie

Byte Magazine, volume 14, issue 3 (March 1989) [archive.org]

Awesome article on page 281 for everything you ever needed to know about cache RAM.

Check out my blog and YouTube channel for thoughts, articles, system profiles, and tips.

Reply 7 of 17, by feipoa

User metadata
Rank l33t++
Rank
l33t++
kixs wrote:
This has already been done and it shows performance increases a bit with larger L2 cache no matter the memory size. […]
Show full quote
feipoa wrote:

It would be interesting, though, to see a benchmark study done in a system with, say, 8 MB of RAM, and increasing the cache from 64K, to 128, 256, 512, and up to 1024K. And to note which benchmarks benefit the most from the increasing cache size.

This has already been done and it shows performance increases a bit with larger L2 cache no matter the memory size.

Like here:
Re: Phil's Ultimate VGA Benchmark Database Project

Yes, that is the link. Could you provide a graph which shows benchmark result as a function of cache size for 64, 128, 256, 512, and 1024K? Ideally, a wide spread of benchmarks is ideal to get an idea for ave, min, and max observable benefit. A good starting point would be at least the following: pcpbench, 3dbench, doom, quake, sysinfo, speedsys, landmark, cpumark99, wintune98, sandra99...

Plan your life wisely, you'll be dead before you know it.

Reply 8 of 17, by jesolo

User metadata
Rank l33t
Rank
l33t

Thanks to everyone who has already replied to this thread - this is definitely helpful to me as well, since I've always wanted to increase the L2 cache on my 386 & 486 motherboards, but wasn't exactly sure what the optimum configuration was.

Reply 10 of 17, by kixs

User metadata
Rank l33t
Rank
l33t
feipoa wrote:
kixs wrote:
This has already been done and it shows performance increases a bit with larger L2 cache no matter the memory size. […]
Show full quote
feipoa wrote:

It would be interesting, though, to see a benchmark study done in a system with, say, 8 MB of RAM, and increasing the cache from 64K, to 128, 256, 512, and up to 1024K. And to note which benchmarks benefit the most from the increasing cache size.

This has already been done and it shows performance increases a bit with larger L2 cache no matter the memory size.

Like here:
Re: Phil's Ultimate VGA Benchmark Database Project

Yes, that is the link. Could you provide a graph which shows benchmark result as a function of cache size for 64, 128, 256, 512, and 1024K? Ideally, a wide spread of benchmarks is ideal to get an idea for ave, min, and max observable benefit. A good starting point would be at least the following: pcpbench, 3dbench, doom, quake, sysinfo, speedsys, landmark, cpumark99, wintune98, sandra99...

pcpbench, 3dbench, doom, quake are already benchmarked with 256/512/1024kb cache sizes in the linked post. Never got around to do other benchmarks - especially Windows.

Requests are also possible... /msg kixs

Reply 11 of 17, by clueless1

User metadata
Rank l33t
Rank
l33t

As others have said, 256KB is the sweet spot. Anything higher and the improvements are measurable, but insignificant. Probably ~5% or less in most cases.

The more I learn, the more I realize how much I don't know.
OPL3 FM vs. Roland MT-32 vs. General MIDI DOS Game Comparison
Let's benchmark our systems with cache disabled
DOS PCI Graphics Card Benchmarks

Reply 12 of 17, by jesolo

User metadata
Rank l33t
Rank
l33t
feipoa wrote:

Of course you must increase the TAG RAM size depending on the amount of cache.

In terms of the above, most motherboards I've come across, seems to specify a tag cache RAM size of 8k x 8 for 128KB of cache and then increase the tag cache RAM size to 32k x 8 for 256KB and above.
Does this sound correct?

Reply 13 of 17, by lazibayer

User metadata
Rank Oldbie
Rank
Oldbie
jesolo wrote:
feipoa wrote:

Of course you must increase the TAG RAM size depending on the amount of cache.

In terms of the above, most motherboards I've come across, seems to specify a tag cache RAM size of 8k x 8 for 128KB of cache and then increase the tag cache RAM size to 32k x 8 for 256KB and above.
Does this sound correct?

The size of tag ram depends on the implementation of L2 cache. Sounds like your board implements direct mapping scheme with 16 byte cache lines.

Reply 14 of 17, by feipoa

User metadata
Rank l33t++
Rank
l33t++
kixs wrote:

pcpbench, 3dbench, doom, quake are already benchmarked with 256/512/1024kb cache sizes in the linked post. Never got around to do other benchmarks - especially Windows.

It would be interesting to see the transition to asymptotic performance gain. With 256-1024K only, you are only showing the asymptote. Could you take this down to 128 and 64 K to show this effect and include a few more benchmarks on graphs?

Plan your life wisely, you'll be dead before you know it.

Reply 15 of 17, by creepingnet

User metadata
Rank Oldbie
Rank
Oldbie
feipoa wrote:

I like to max out every aspect of every board. If it can take 1024K, it will have 1024K.

you and me are cut from the same cloth.

IMG_20170221_211934041_TOP.jpg
Filename
IMG_20170221_211934041_TOP.jpg
File size
210.06 KiB
Views
1276 views
File license
Fair use/fair dealing exception

All of my systems are topped out (well mostly), except my obsession with the 486 DX4-100 out of nostalgia for that chip because it's been in the most stable 486 systems I've ever built (not to mention the ones that put up with the most of me stressing them out with software designed for Pentium or better hardware).

~The Creeping Network~
My Youtube Channel - https://www.youtube.com/creepingnet
Creepingnet's World - https://creepingnet.neocities.org/
The Creeping Network Repo - https://www.geocities.ws/creepingnet2019/

Reply 17 of 17, by creepingnet

User metadata
Rank Oldbie
Rank
Oldbie
feipoa wrote:

Stressing out a 486 with Pentium-intended software; there is no greater joy!

What's nuts about this one I'm working on is she seems ready for multitrack recording now - updated the Hard DIsk controller driver to the Winbond VL-IDE I am using and now n-track and QuartzAudiomaster seem to be able to keep up.....nutz - a 486 powered DAW with a 20GB HDD....but the real truth comes when I run a guitar into it.

~The Creeping Network~
My Youtube Channel - https://www.youtube.com/creepingnet
Creepingnet's World - https://creepingnet.neocities.org/
The Creeping Network Repo - https://www.geocities.ws/creepingnet2019/