Swap file tracking

2013-12-04 Thread list boy
Anyone know if there's a way (via the console/Terminal) to track swap file size, over time? (I think data will help my cause) ___ MacOSX-talk mailing list MacOSX-talk@omnigroup.com http://www.omnigroup.com/mailman/listinfo/macosx-talk

Re: Swap file tracking

2013-12-04 Thread LuKreme
On 04 Dec 2013, at 10:41 , list boy wrote: > Anyone know if there's a way (via the console/Terminal) to track swap file > size, over time? while TRUE; do date; ls -lh /var/vm/ ; sleep 60; done ? -- You know what they say about paradigms: Shift happens.

Re: Swap file tracking

2013-12-04 Thread Neil Laubenthal
On Dec 4, 2013, at 12:41 PM, list boy wrote: > Anyone know if there's a way (via the console/Terminal) to track swap file > size, over time? > You can ls /private/var/vm of course…but I don’t think the actual size of the swap files in there goes down unless you reboot in which case they get del

Re: Swap file tracking

2013-12-04 Thread Jochem Huhmann
Neil Laubenthal writes: > I thought I understood this stuff…but Activity Monitor shows 8.11 GB > of VM currently while I only have a 67MB and a 1GB actual swap file. > Where does the over almost 7GB of VM reside? In imaginary land... Most of this probably is memory mapped/reserved by some proces

Re: Swap file tracking

2013-12-04 Thread Arno Hautala
On Wed, Dec 4, 2013 at 12:46 PM, Neil Laubenthal wrote: > > […] but I don’t think the actual size of the swap files in there goes down > unless you reboot in which case they get deleted. I've definitely seen the number of swap files decrease. Rarely, but I've seen it a handful of times. -- arno

Re: Swap file tracking

2013-12-04 Thread Neil Laubenthal
There's a lot to be said for that. neil The three kinds of stress…nuclear, cooking and a&&hole. Jello is the key to the relationship. > On Dec 4, 2013, at 13:19, Jochem Huhmann wrote: > > stuff all > the memory sticks into your machine that it can take __

Re: Swap file tracking

2013-12-04 Thread list boy
Agreed, except I'm at 4 GB (which I believe was the max for a MacBook Air 4,2) And it seems like most people gasp when I tell them my swap file size(s). So maybe (?) my particular case has something especially wrong with it... (like, say, a Sandforce SSD) On Dec 4, 2013, at 1:19 PM, Jochem Huh

Re: Swap file tracking

2013-12-04 Thread Michael
10.7.5 definitely will reduce swapfile size when programs free up memory. Today, for example, I was at 8 GB of swap file, and now I'm down to 4 GB. Earlier versions would not; at least as recently as 10.4, and I think 10.5 on the PPC, swapfile space would only be reclaimed if everything after po

Re: Swap file tracking

2013-12-05 Thread steve harley
on 2013-12-04 10:46 Neil Laubenthal wrote On Dec 4, 2013, at 12:41 PM, list boy wrote: Anyone know if there's a way (via the console/Terminal) to track swap file size, over time? i used to have this shell script assigned to a keyboard shortcut: #!/bin/bash ls -l /var/vm/swapfile* | awk '{ f

Re: Swap file tracking

2013-12-05 Thread LuKreme
On 04 Dec 2013, at 10:46 , Neil Laubenthal wrote: > I thought I understood this stuff…but Activity Monitor shows 8.11 GB of VM > currently while I only have a 67MB and a 1GB actual swap file. NB: You will *always* have at least 1GB swapfile under 10.9. (actually, I think you will have a 64MB fi

Re: Swap file tracking

2013-12-05 Thread LuKreme
On 05 Dec 2013, at 13:32 , steve harley wrote: > ls -l /var/vm/swapfile* | awk '{ foo+= $5 } END { printf "swap is %2.1f MB", > foo/1024^3 }' 1024^3 is GB. -- I have NOT lost my mind! I've got a backup around here somewhere. ___ MacOSX-talk mail

Re: Swap file tracking

2013-12-06 Thread R. O. Durrer
Could it be a sleepimage ? On my Mini mid 2011 (running 10.6.8), there are two rather small swapfiles (67 MB each), and a huge sleepimage of 8.52 GB in "private:var:vm" Rudolf Am 04.12.2013 um 18.46 schrieb Neil Laubenthal: > On Dec 4, 2013, at 12:41 PM, list boy wrote: >> Anyone know if ther

Re: Swap file tracking

2013-12-07 Thread steve harley
on 2013-12-05 22:09 LuKreme wrote On 05 Dec 2013, at 13:32 , steve harley wrote: ls -l /var/vm/swapfile* | awk '{ foo+= $5 } END { printf "swap is %2.1f MB", foo/1024^3 }' 1024^3 is GB. yup - i think a few years ago i did a hasty edit; it was originally 1024^2, but i wanted fewer digits