TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Andrew Grillet
from: Mike Bilow
date: 1995-12-29 08:04:59
subject: Memory Doubler

Andrew Grillet wrote in a message to Mike Bilow:

 AG> I had a discussion with someone in which it was suggested it
 AG> might be possible to compress stuff being swapped. Not to
 AG> save disk space, which is a minor issue, but to reduce
 AG> amount of data transfer, as it is slow.

 MB> You could do it, and IBM has looked at the idea for OS/2.  However,
 MB> the end result of the analysis is that disk space is cheap and
 MB> plentiful, while CPU time for compression and decompression is
 MB> neither.

 AG> My point was that DISK TRANSFER TIME is very expensive. If
 AG> you run an IDE based system, the CPU does the transfers - if
 AG> it does compression first and the transfer is twice as fast,
 AG> then all that is needed is that the compression takes half
 AG> the time a disk-write takes - not a great achievement! 

 AG> Decompression is normally faster than compression,

Don't forget that you need to compare the physical transfer time of the
uncompressed data against the compression time plus the transfer time of
the compressed data.  In all probability, simply transferring uncompressed
data is going to be faster.  Given that you must run compression over 4 KB
pages, or you cannot swap them, the efficiency of compression is going to
suffer.  Even the processing overhead will be substantial to compress 4 KB
blocks, with loading and unloading dictionaries.

 MB> Therefore, compressing the swapfile is just not economical.

 AG> Very true on my SCSI based server, but not on the IDE based
 AG> workstations. 

IDE systems use different access methods.  Some use PIO, as you say, but
others use DMA.  Especially with local bus and PCI IDE, DMA is more common.
 
-- Mike


--- 
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515
SEEN-BY: 712/517 628 713/888 800/1 7877/2809
@PATH: 323/107 150 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.