From: g.j.kuiper@kpn-telecom.nl (Geerten Kuiper)
Subject: Re: TRAM - How to make your computers A LOT faster
Date: 1998/12/10 [thread overview]
Message-ID: <74opij$om4$1@hdxf08.telecom.ptt.nl> (raw)
In-Reply-To: 74l2kl$b7s$1@m2.c2.telstra-mm.net.au
Some thoughts on this TRAM idea:
1. being behind the PCI bus it would not be as fast as main
memory, so compared to "normal" caching you wouldn't expect to
gain anything.
2. there would be a performance gain in those cases where you do
a "forced write", (bypassing the cache and waiting for the
disk-IO to complete) to insure integrity of the data on disk.
RDBMS's will do such things with the transaction log on each commit.
If your data is valuable you wouldn't run such applications on
a simple PC, and TRAM would contribute little to improve this.
3. for this scheme to work, data left in the TRAM should be
applied to disk before you start reading from it on restart.
Thus, the TRAM should be integrated on the disc-controller,
with the intelligence to do the writes. You also will want some
form of RAID, because otherwise you may have no way to handle
the data in the TRAM after a disc crash.
Intelligent RAID-controllers with battery-backed cache actually
do exist, and work the way you suggest. Theres your TRAM for you.
(they're not cheap though...)
4. when rebooting after a crash, even with TRAM, the OS will not
find the flag on disc that indicates a proper unmount/shutdown.
So your fsck will (and should) still run. No gain there...
5. TRAM may help to insure that writes to disc will eventually
happen, without the need to actually wait for the IO to
complete. But note that this by itself does not guarantee consistency of
your data or your filesystem. To achieve that the TRAM should
also be aware of a notion of transactions (related changes that
should alway be applied together), and be able to roll back
transactions that were not completed. That's what RDBMS's and
journalling filesystems use a transaction log for. It goes way
beyond what TRAM can do.
Thus:
- for better IO throughput, and some improvement in consistency,
use intelligent RAID controllers with persistent cache.
- for highest transaction rates on a database system, and even
better guarantee of consistency, move the transaction logs to a
solid state disc. But be aware that the performance gain will
be limited.
- either way, were not talking about sub $2000 PC's anymore.
Groeten,
Geerten.
bluto wrote in message <74i43d$g8n$1@pollux.dnai.com>...
>
>1. The Idea
>
>
>The idea is simple. CPUs are getting much faster. However, hard disks
>are getting much larger but not much faster. This means that CPUs can
>do a lot more work, but will still have to wait on the slow disks. There
>is a solution. A simple card could make your computer OUTPERFORM systems
>COSTING MANY TIMES MORE. I'm talking about 1,000's of RELIABLE database
>writes a second on a 300mhz Pentium. Let's read on...
>
>Most computer applications have to write to a disk in order to
>make sure that the data is safe before they can continue. While the
>application waits to write, another application may run. Usually, this
>application will have to write to the disk as well. So it will wait in
>line until the first application's data gets written to the disk. So, this
>super fast CPU, which could do a lot of stuff, ends up waiting for data to
>get written to the disk. Since disks are still really slow, the wait is
>enormous (from the CPU's point of view :-). This write-wait bottleneck
>also determines how many writes you can get through a database. While the
>application is waiting, this also means that users will be waiting.
>
>Another common problem is that of 'filesystem consistency'. Usually,
>if a computer gets shut down accidently or because of a crash,
>it has to go through a filesystem check. This means 'ScanDisk' or 'fsck'
>to you and me. Since the computer cannot remember what disk blocks it was
>working on, 'ScanDisk' or 'fsck' must check an ENTIRE filesystem
>to make sure that everything is clean. On today's larger disks, this
>can take many minutes to go through the ENTIRE disk. All the while,
>your users are waiting for the system to come back on line.
>
>Let's bring TRAM into the picture. TRAM stands for Transactional RAM.
>TRAM is a battery backed memory... a non-volatile memory. It should
>also be a relatively fast memory, like SRAM or DRAM. It would probably
>come in the form of a PCI card.
>
>Now, when writes occur, they will go to the TRAM. This means that you and
>your application are free to continue doing work since the data is
considered
>to be safe on the TRAM. The data can then be written to the disk in the
>background. Also, since the write went to TRAM, a reboot
>(or the power cord getting kicked out of the socket), will only cause
>you to lose the little data that wasn't in the TRAM yet. Also, the computer
>should be able to come up without having to do a 'ScanDisk' or 'fsck'.
>These create some SERIOUSLY BIG WINS..
>
>It is important to describe what kind of performance gains a TRAM will
>give. Usually, the vast majority of disk writes or file saves are very
>small... probably on the order of a few megabytes a minute. Rarely
>are people doing 10 megabytes a second of disk writes. So write requests
>will come in every now and then, let's say under a megabyte a minute. TRAM
>will make the response time for any of those writes VERY, VERY FAST.
>So, the computer would be able to handle more requests quickly. Every
>minute or 10 minutes, the computer could send some of the data in the
>TRAM back to the disk. The TRAM wouldn't have to be larger than 16
>megabytes to handle that kind of load. This is nothing when you consider
>that 256 megabyte memories are becoming mass produced.
>
>This will cause your commodity, sub $2000 PC, to outperform hardware
>costing a LOT more. Essentially, this means that you can now complete
>100 times more transactions than you used to with the same hardware and
>this new TRAM card. I can imagine a lot of servers having SCREAMING
>performance gains because of this.
>
>TRAM is an OLD IDEA that has been used here and there in the mainframe,
>mini, and high end server worlds. However, I haven't seen
>it available for PC's (like at Fry's). There is more at the website
>(listed below) on it's history and papers.
>
>Also, there are also some pleasant side effects. Now you don't have to
worry
>about write performance for a lot of things. With a few modifications
>to the popular OpenSource OS's (FreeBSD, Linux), you can use the existing
>filesystems (UFS, ext2fs, etc.). This would save us from having to wait
>for new filesystems in order to get this fault tolerance and performance.
>
>ALSO, a lot of Unix/OS guru's know how to tweak their systems in order
>to get better performance. For example, on Unix people can turn off 'atime'
>writes or they can lower the rate at which their system flushes writes
>to the disk. Some of these things are risky or unknown to the general
>populace. Now, with just a card, you can get performance equivalent to,
>if not better than what your own personal Unix guru could give you.
>
>There is a lot more to tell, the best place to read more is the website.
>
next prev parent reply other threads:[~1998-12-10 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <74i43d$g8n$1@pollux.dnai.com>
[not found] ` <74j9nl$dq2$1@bunyip.cc.uq.edu.au>
1998-12-08 5:00 ` TRAM - How to make your computers A LOT faster Russel H Ingram
[not found] ` <74l2kl$b7s$1@m2.c2.telstra-mm.net.au>
1998-12-10 5:00 ` Geerten Kuiper [this message]
[not found] ` <7527vl$9f9$1@pollux.dnai.com>
[not found] ` <3674b586.3853538@nntp.jaring.my>
1998-12-16 5:00 ` Mark-Oliver Wolter
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox