|
#1
| |||
| |||
| 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. |
|
#2
| ||||
| ||||
| 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 |
|
#3
| ||||
| ||||
| 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 |
|
#4
| ||||
| ||||
| 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 |
|
#5
| |||
| |||
| 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. | |
|
#6
| |||
| |||
| (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 |
|
#7
| |||
| |||
| 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. | |
|
#8
| ||||
| ||||
| How about OSX 10.0.4 Hi Makosuke, Can OSX 10.0.4 use this "Window Memory Compression" trick?
__________________ Best Regards, Isaac Ho |
![]() |
| Thread Tools | |
|
|
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 |