image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
Thread Tools
  #1  
Old October 11th, 2001, 09:38 PM
Guy Who Loves X
 
Join Date: Sep 2001
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Makosuke is on a distinguished road
Cool Window Memory Compression Trick

There's a very interesting thread in the MacNN forums in which "moki" (Andrew Welch--president of Ambrosia) explains how to turn on a feature in 10.1 that isn't by default--automatic background compression of window memory:

http://newforums.macnn.com/cgi-bin/u...&f=46&t=000100

Even if it doesn't do anything, it's got a geek coolness to it. To paraphrase, as I understand it: According to him (and he should know) this basically allows X to compress the memory used to store the visual contents of windows (we're talking about display graphics, not files) when they're not updated for a while (a finder window in the background, for example). Since X windows suck up a lot of RAM (>1MB each for large ones), and the compression is around 10X, you can significantly decrease the amount of RAM your system uses if you routinely leave a bunch of windows open. On systems without a massive amount of RAM (or those with a massive number of windows open) this can add up to more free RAM available for apps (on the order of dozens of MBs) and less paging. He also says (and I repeat that he should know) that due to the way the processor passes things around, this ammounts to, if anything, a speed gain--in any case, no speed loss.

According to some replies in that thread, it definitely saves RAM, and may make a perceptible speed difference on systems without a whole bunch of memory (although I haven't noticed anything either way on a G3 266 w/192MB system). There was only one report of problems--graphics glitches in Java apps--associated with it. All you have to do is modify everybody's favorite, a plist file. I'd recommend checking the thread out yourself, but to roughly repeat his instructions (hope nobody minds...):


Begin How-to instructions here:

Open the com.apple.windowserver.plist file in /library/preferences as root

(for example, using terminal and the pico text editor by typing: sudo pico /library/preferences/com.apple.windowserver.plist)

Then find the first <dict> tag in the file (it's a few lines down from the top), and past the following text directly below it:

<key>BackingCompression</key>
<dict>
<key>compressionScanTime</key>
<real>5.000000000000000e+00</real>
<key>minCompressableSize</key>
<integer>8193</integer>
<key>minCompressionRatio</key>
<real>1.100000023841858e+00</real>
</dict>

save the changes, then logout and back in. It should have worked.

You can check if you have developer tools installed by opening the QuartzDebug app and clicking Show window list. Windows that are compressed should have a "C" next to their buffer size.

Again, I recommend checking the thread out (and giving at least silent praise to moki for letting the world know about it), but good luck with it!
__________________
DP533, 30+40G HD, 640MB RAM, 19" FD, GF2

Last edited by swizcore; October 11th, 2001 at 11:19 PM.
Reply With Quote
  #2  
Old October 12th, 2001, 07:28 AM
Darkshadow's Avatar
wandering shadow
 
Join Date: Jul 2001
Location: DE, USA
Posts: 1,532
Thanks: 0
Thanked 0 Times in 0 Posts
Darkshadow is on a distinguished road
Excellent! This is a great tip.

Too bad defaults can't write to this file...that would make thing easier. Ah well.
__________________
I am but a lonely shadow,
Doomed forever to roam and wander.
But if you allow me to pause before I must go,
I'll spin you tales of mystery and wonder.


Site: Night Productions
Reply With Quote
  #3  
Old October 12th, 2001, 02:31 PM
LordOphidian's Avatar
Adjutant On-Line
 
Join Date: Sep 2001
Location: Mesa, Az
Posts: 354
Thanks: 0
Thanked 0 Times in 0 Posts
LordOphidian is on a distinguished road
Works like a charm too.

Although I would recomend using emacs instead of pico
__________________
iMac 800 15", Mac OS X 10.3.2
Dell OptiPlex GX200, RedHat Linux (ugg) 9
Reply With Quote
  #4  
Old October 12th, 2001, 09:22 PM
Darkshadow's Avatar
wandering shadow
 
Join Date: Jul 2001
Location: DE, USA
Posts: 1,532
Thanks: 0
Thanked 0 Times in 0 Posts
Darkshadow is on a distinguished road
Heh, you wanna post a howto on running emacs? I've been using it for the past 3 years, and I still have problems with it every now and then. I tell people to use pico in posts I do because I definitely don't wanna explain how to use emacs.
__________________
I am but a lonely shadow,
Doomed forever to roam and wander.
But if you allow me to pause before I must go,
I'll spin you tales of mystery and wonder.


Site: Night Productions
Reply With Quote
  #5  
Old October 13th, 2001, 05:37 PM
Registered User
 
Join Date: Jun 2001
Location: South of the border, down Mexico lane (not really)
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
scope is on a distinguished road
I must note, that was found by a good friend of mine, Andrew Welch. President of Ambrosia Software. http://www.ambrosiasw.com
__________________
scope
PowerMac G4 400MHz AGP, Radeon AGP, 54GB hard drive space, 512MB RAM, Mac OS X 10.1.5 and 10.2, Mac OS 9.2.2, ASD 17" Monitor, Altec Lansing APT5 Stereo System, APS Tech 8x4x32x CD-RW Drive. | PowerMac G3 233MHz with stuff. | PowerMac 8500/120 with other stuff.... | 6100/60 acting as network firewall. |
Reply With Quote
  #6  
Old October 19th, 2001, 11:17 AM
Guy Who Loves X
 
Join Date: Sep 2001
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Makosuke is on a distinguished road
(Actually, scope, the first thing I mentioned was that it was by Andrew Welch--I don't know him, but he's a cool fellow.)

I wanted to add that there's now a little freeware program that'll do the same thing if you don't feel like messing 'round with Terminal. Well, it's not nearly as little as it could have been (~800K), but it should get the job done anyway.

The VersionTracker listing: http://www.versiontracker.com/morein...2247&db=macosx

You might also note the problems that at least one person had with 3D apps in the comments section...
__________________
DP533, 30+40G HD, 640MB RAM, 19" FD, GF2
Reply With Quote
  #7  
Old October 19th, 2001, 11:19 AM
Registered User
 
Join Date: Jun 2001
Location: South of the border, down Mexico lane (not really)
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
scope is on a distinguished road
so you did...sorry m8, missed that.
__________________
scope
PowerMac G4 400MHz AGP, Radeon AGP, 54GB hard drive space, 512MB RAM, Mac OS X 10.1.5 and 10.2, Mac OS 9.2.2, ASD 17" Monitor, Altec Lansing APT5 Stereo System, APS Tech 8x4x32x CD-RW Drive. | PowerMac G3 233MHz with stuff. | PowerMac 8500/120 with other stuff.... | 6100/60 acting as network firewall. |
Reply With Quote
  #8  
Old October 20th, 2001, 10:13 PM
isaac_ho's Avatar
Web Designer
 
Join Date: Aug 2001
Location: Hong Kong
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
isaac_ho is on a distinguished road
How about OSX 10.0.4

Hi Makosuke,
Can OSX 10.0.4 use this "Window Memory Compression" trick?
__________________
Best Regards,
Isaac Ho
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[HOWTO] - Increase your mouse's MAX speed... swizcore HOWTO & FAQs 27 October 10th, 2004 08:45 AM
Wrong ram speed reported in System Profiler... OmegaMan Mac OS X System & Mac Software 7 November 12th, 2003 03:40 PM
Does more RAM increase 10.2 speed? Durbrow Hardware & Peripherals 7 October 24th, 2002 07:57 AM
10.1.3 finder vs. 9.2.2 (speed) PowermacG4_450 Opinions, & Open Letters 9 April 3rd, 2002 09:33 AM
More ram don't = speed or does it? Mr. Fancy Pants Apple News, Rumors & Discussion 2 August 5th, 2001 12:41 PM


All times are GMT -5. The time now is 04:35 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.