EDIT: haha, scratch that. Just click on the System Memory option in Activity Monitor. It tells you the VM size.
VM size will not tell you how much disk space is actually used for swap. VM size simply tells you how much memory all the various programs have told OS X to reserve for them, just in case they need it. In general, much of this is never used.
To find the actual disk space used by swap, you need to look in /var/vm. You may need administrator or superuser privileges to do so. To do it from Terminal, run this command:
From the Finder, you can use Cmd-Shift-G and type in
/var/vm to get there.
To illustrate this, here are the VM sizes and actual swap space used (in /var/vm) on some of my machines:
- VM size 12.9G, swap 2.2G
- VM size 8.8G, swap 1.0G
- VM size 4.9G, swap 0.5G
As for the original question, WhatSize is not an effective tool for measuring total disk space usage. It does not appear to tell you when it encounters directories that your user does not have permission to go into. Instead, it silently skips them.
On a system with multiple user accounts, the bulk of the discrepancy will likely be in areas of other accounts that your user does not have permission to view (it doesn't matter if you're an administrator - that's not the same level as superuser). Do a little experiment in the Terminal. First run this command:
The number you get should agree with what you got from WhatSize, within some roundoff differences. Notice any messages about "permission denied". Then, do this command, which runs the same thing as superuser (it will ask you for your own password - you must be at least an administrator user at this point):
You'll probably get a higher number.
In fact, you can do the same thing that WhatSize does, only better, from the Terminal. To get true sizes of all folders in the root directory, simply do this:
Another major strike against WhatFile is that it appears to invent file space usage out of thin air. My Developer folder has subfolders with sizes 734M, 186M, 72M, 62M, 1.2M, 1.6M, 1.1M, 1.8M, 0.5M, 0.4M, and 0.16M. WhatSize tells me that adds up to 1.36G. You do the math. I wouldn't trust this app for anything.