Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Re: TRAM - How to make your computers A LOT faster
       [not found] ` <74j9nl$dq2$1@bunyip.cc.uq.edu.au>
@ 1998-12-08  5:00   ` Russel H Ingram
  0 siblings, 0 replies; 3+ messages in thread
From: Russel H Ingram @ 1998-12-08  5:00 UTC (permalink / raw)


On Tue, 8 Dec 1998, Darren Mackay wrote:

> I had a Pentium133 running nt4 (yes, I know, but then again, I have had no
> problems with it locking up, ever!) that I was going to retire. A guy in
> another department had a WD 1G solid state disk that he no longer used
> (consists of memory modules with a battery backup). It now flies. Although,
> I admit that a disk array may outperform it, but the solid state 'disk' was
> a freebie.
> 
> BTW, I don't necessirily agree with a lot Dru's ideas, but I can agree the
> principle does work, when compared to a non-array disk system anyway.
> 
> Darren

This solid state disks are something entirely (well ... maybe not
_entirely_) different from the type of caching that Dru is talking about.
What Dru is talking about saves the disk writes for CPU idle time.  solid
state disks take the place of a HDD entirely.  They utilize the design of
memory chips in a way such that the only time anything has to be written
to any kind of physical media is when the computer is shut down.  In this
senario all "Hard Drive" access is hundreds of times faster just because
the media being written two has no moving parts.

 _________________________________________________________________
 | Russel H. Ingram             || Phone:  (307)721-2580         |
 | Computer Support Specialist  || Fax:    (307)721-2584         |
 | Albany County Public Library || E-Mail: ringram@uwyo.edu      |
 |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
 |           Black holes are where God divided by zero.          |
 -----------------------------------------------------------------





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

* Re: TRAM - How to make your computers A LOT faster
       [not found] ` <74l2kl$b7s$1@m2.c2.telstra-mm.net.au>
@ 1998-12-10  5:00   ` Geerten Kuiper
       [not found]   ` <7527vl$9f9$1@pollux.dnai.com>
  1 sibling, 0 replies; 3+ messages in thread
From: Geerten Kuiper @ 1998-12-10  5:00 UTC (permalink / raw)


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.
>





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

* Re: TRAM - How to make your computers A LOT faster
       [not found]     ` <3674b586.3853538@nntp.jaring.my>
@ 1998-12-16  5:00       ` Mark-Oliver Wolter
  0 siblings, 0 replies; 3+ messages in thread
From: Mark-Oliver Wolter @ 1998-12-16  5:00 UTC (permalink / raw)


In linux.dev.kernel witra <witra@softhome.net> wrote:
: Speaking of battery backed RAM, why go to the trouble of providing
: special RAM for the hard disk? Why not simply have battery backup for
: the main system RAM and let the disk caching software handle it?

The main system can crash. A dedicated controller or the harddisk
firmware is much less likely to crash. And on a reboot, most
computers DO erase all the main memory. You'd have to rewrite
the BIOS to not do that.

: No need to shutdown anymore. Just turn off the electricity. When you
: turn the power back on, the system comes alive in a fraction of a
: second. No more waiting for the boot-up. 

That's the theory ...

-- 
   | | | MfG MOW []-)
   | | | Steffensweg 89, 28217 Bremen, Tel. ++49-177-2503055
  M  O  W  http://www.zfn.uni-bremen.de/~g02o/
/'   |   `\  Always logon - the bright side of life !



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

end of thread, other threads:[~1998-12-16  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
     [not found]   ` <7527vl$9f9$1@pollux.dnai.com>
     [not found]     ` <3674b586.3853538@nntp.jaring.my>
1998-12-16  5:00       ` Mark-Oliver Wolter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox