home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!walter!att!ucbvax!toy.usl.com!lithgow
- From: lithgow@toy.usl.com (Malcolm Lithgow)
- Newsgroups: comp.sys.acorn
- Subject: Virtual Memory
- Message-ID: <9208271106.AA10343@ucbvax.Berkeley.EDU>
- Date: 27 Aug 92 06:54:06 GMT
- Sender: usenet@ucbvax.BERKELEY.EDU
- Lines: 86
-
- [Giles writes:]
- > (lots of garbage on why VM is terrible deleted (as it should be :-)
-
- Now who is making up articles? (Or simply failing to read them.)
-
- No-one on this group has claimed that VM is terrible. However, I have
- claimed that the standard implementation is very far from optimal.
-
- > Anybody who thinks that VM doesn't and cannot work should (a) try using
- > a decent computer, and (b) take a decent computer science course.
-
- Tch, tch. And I suppose 'decent' means, respectively, 'a computer that
- I've used that makes impressive use of VM' and 'a course that
- brainwashes you into believing that current implementations of VM are
- God's gift to mankind'?
-
- > For
- > many years I worked on an Amdahl mainframe supporting around 200 users
- > running a SVR2-1/2 (i.e. halfway between release 2 and release 3) Unix.
- > It worked extremely well - you could easily live with the illusion that
- > you were the only user on the system. Basically, the underlying operations
- > required by a VM are so fast and implemented at such a low level in hardware
- > that the overhead is tiny and totally unnoticed. "Ah but" I hear you cry,
- > "That's fine for mainframes, but what about smaller systems!".
-
- No, I don't cry that. What I do cry is that mainframes are so
- unresponsive that 'you could easily live with the illusion that' you
- were using a ZX-81! Certainly, mainframes a fast a some things (for a
- single user, I mean), but atrociously slow at things that users do most
- of the time (like getting lists of directories, editing files, etc.).
-
- Hardly a good recommendation for traditional style VM, other than that
- the system actually works. I know -- our company uses an Amdahl
- mainframe as our main machine, and using a 386 is almost always
- faster.
-
- >I'm currently
- > on a DECstation - a single user workstation with X windows. I don't
- > notice the VM at all. I've also seen HP, Sun, etc. etc workstations with
- > VM and with the same illusion of no VM.
-
- More examples of how the standard implementation of VM slows things
- down. Consider this: I am currently typing this on a 33MHz '386 with
- 24MB of RAM, a 256KB cache (running at 33MHz, of course), and large,
- fast hard disks (total of 600MB). When I use X on this system, as a
- single user, it is barely able to give similar response to my old
- 4/8MHz ARM-2 system, with no cache and 4MB of RAM (not to mention a
- 20MB hard disk).
-
- This poor performance can be blamed on a whole range of things, with VM
- having little to blame. Now if I down-grade this '386 to an 8MB system
- (ie. force VM usage), what do I see? A sudden drastic decrease in
- performance, to about half the speed. The reason for this is that X
- uses so much core that it swaps like a maniac. It does this because (a)
- it was written with the assumption of 'I can use all the memory I like'
- encouraged by current VM, and (b) current VM knows nothing about X's
- usage patterns, and so runs blind, making a terrible mess of things.
-
- Now, for me as a person who wants to use a graphical interface (and a
- command-line interface) on an affordable machine -- this is simply not
- on!
-
- Compare this to an A3000 -- it can multitask, etc. and manage it at
- almost twice the speed! Why? Because it's software is memory-miserly
- because VM can't be assumed!
-
- Sure, HP, IBM, DEC, Sun, etc. WorkStations perform well, but they need
- huge volumes of memory and very fast CPU's to manage the trick. And they
- don't have the excuse of being multi-user.
-
- Perhaps we should consider rethinking some assumptions, so that we can
- get even better performance from our current and future hardware?
-
- > Virtual memory is a fact of life, and virtual memory works extremely well.
-
- Virtual memory *is* a fact of life -- I agree. Current implementations
- of VM work, and are sometimes satisfactory, but can be significantly
- improved. Of course, you may disagree, but then, so did the Luddites.
- ;-)
-
- > Before anybody flames me back, make sure that you have satisfied both
- > conditions (a) and (b) above.
-
- I do.
-
- -Malcolm. lithgow@usl.com These are merely my opinions.
-