[OSX-Users] Re: Lion problems

Hugh Glaser hg at ecs.soton.ac.uk
Sun Jul 31 14:03:14 BST 2011


Thanks Jules.

On 31 Jul 2011, at 12:47, Jules Field wrote:

> 
> 
> On 31/07/2011 11:55, Philip Boulain wrote:
>> On 31/07/2011 10:45, Hugh Glaser wrote:
>>> 1) MenuMeters reports that my swap files are encrypted.
>>> I don't want this, as it was bad enough before when they got big, watching the system occasionally thrash.
>>> Now it is certainly worse.
>>> Of course, it may be that MenuMeters is reporting wrongly, and it is something else?
>>> If not, anyone any idea how to switch it off?
>> 
>> I could have sworn it was via pmset's hibernatemode (looking at past mails, perhaps it used to be), but apparently not:
>> 
>> http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/dynamic_pager.8.html 
>> 
>> From the look of that you want to open
>> /Library/Preferences/com.apple.virtualMemory.plist
> That file doesn't exist any more. I strongly suspect that they enforce "use secure virtual memory" which is what the setting in the "Security" Preference Pane used to say in Snow Leopard. The CPU overhead will be pretty much nil, as Phil says.
>> find "UseEncryptedSwap", and toggle it to off. IIRC OS X has a pretty GUI editor for plist files that should open by default.
> From the looks of the /sbin/dynamic_pager binary, it uses /Library/Preferences/com.apple.virtualMemory.plist (which doesn't exist by default) but now uses the key "DisableEncryptedSwap" which you presumably have to set to true.
> 
> But as Phil says, disabling encrypted swap is a pretty bad idea and won't speed up your system noticeably. If you have big swapping problems, buy more RAM or shut down apps you aren't using (which new apps written for Lion will do automatically, as you can demonstrate very easily with apps such as Preview and Quicktime Player).
Yeah, I think I'll leave it.
I have the max 4GB RAM.
(I know the theory or relative speeds of disc and cpu, but I know the theory of rocket science too (well not really), and it's not enough to really know how a rocket will actually behave. :-) )
I didn't buy a Unix box so I would have to worry about shutting down applications! :-)
But the mac has never functioned very well when the swap space gets largish (over 4 or 5 Gig in my case.) - very disappointing.
In practice it is almost solely a problem with the Office apps - fire up more than a couple and the memory requirements are just pants.
iPhoto is starting to cause memory problems now I have more than 15K photos.

I can see my 10.5.8 system doesn't have encrypted swap, and I'm pretty certain that my 10.6.x didn't before the Lion upgrade, so it looks like a Lion change.
But I have to say that disabling encrypted swap is not a "pretty bad idea" compared with the rest of the vulnerabilities of my socio-technical system - it does;t even measure on the scale.

Cheers

> 
> Jules.
>> 
>>> (Obviously I don't have FileVault switched on, which is what is pissing me off about the swap situation - what is the point of encrypted swap when the rest isn't?)
>> 
>> Because no well-written software will write stored passwords unencrypted to disk, e.g. Keychain stores them encrypted them with your login password by default I believe. But to actually use them, at some point those passwords have to be unencrypted in memory, and if the machine were to be heavily overloaded or hibernated during that point, that memory might get written to swap and your password is now in plaintext on persistant storage. It might be harder to find than a passwords.txt on your desktop, but it's also harder to get rid of given swapfiles are system-managed and you'd effectively have to disabled them all and secure-zero the drive's free space.
>> 
>> Are you sure it's the cause of your performance woes, though? I'd expect disk speed (and the lack of it) to completely dominate the CPU cost of encryption, and I haven't found it (under Linux) to be a problem on a hideously anaemic Celeron. If I'm remembering my cat names correctly, that manpage is for Snow Leopard (it's the most-recent Apple host), so it's been on by default on laptops since then.
>> 
> 
> Jules
> 
> -- 
> sysjkf at ecs.soton.ac.uk
> 

-- 
Hugh Glaser,  
              Intelligence, Agents, Multimedia
              School of Electronics and Computer Science,
              University of Southampton,
              Southampton SO17 1BJ
Work: +44 23 8059 3670, Fax: +44 23 8059 3045
Mobile: +44 75 9533 4155 , Home: +44 23 8061 5652
http://www.ecs.soton.ac.uk/~hg/





More information about the Osx-users mailing list