Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Gigantic /var/vm folder - 26GB

I have MacBook Pro "13, latest series, 8GB RAM & SSD 256GB.

My /var/vm folder has became VERY big, much more than the expected 8GB. All files' last modified is today.

I once deleted them all and got a Kernel Panic, then after a restart they have been created again.

Is there anything I could do to reduce the size? What will it affect?

I have read several threads about this folder but most of them talk about 2-4 GB of size.


Thanks


8.0G sleepimage

64M swapfile0

64M swapfile1

1.0G swapfile10

1.0G swapfile11

1.0G swapfile12

1.0G swapfile13

1.0G swapfile14

1.0G swapfile15

1.0G swapfile16

1.0G swapfile17

1.0G swapfile18

1.0G swapfile19

128M swapfile2

256M swapfile3

512M swapfile4

1.0G swapfile5

1.0G swapfile6

1.0G swapfile7

1.0G swapfile8

1.0G swapfile9

Macbook Pro 2011 Q1 13" i7 2.7Ghz 8GB RAM, 256GB SSD / iPhone 4 (4.3.1), Mac OS X (10.6.7)

Posted on Jun 12, 2011 10:34 AM

Reply
29 replies

Jun 2, 2012 11:48 PM in response to numinasthmatic

This is not a problem with Mac memory management. It's a third-party software fault. For instance, I had this problem once, but traced it back to the HP Device Monitor (which seems to add a gigabyte swap file every hour or so). disabling that process (except at need) brought swap files back to a reasonable level after about 10 minutes (the system released them over time - I think it checks every minute or so). You'll never have these problems in a newly-created user account or a machine booted into safe mode; that should make it clear there's a third-party issue.

Jun 3, 2012 2:02 AM in response to twtwtw

I'm sorry, but it IS a problem with Mac memory management. Have a look around. There are other threads where the problem is traced back to flash. Someone else reported that the problem was with iGlasses, some application or other. I suspect that browser plugins are the main source of my (and my wife's) problems. If you do look around, you will find this problem, or something very similar, being reported in 2009. There are probably even earlier instances.


If, as you say, the problem is just the HP Device Monitor, then the bug reports that have gone into Apple over the past 3 years or so, plus the reports in this forum, should surely have perusaded Apple to have a chat to HP, and, if that didn't work out, to disable the application.


But no, that hasn't happened. This problem, as I have said, does not go away when one shuts down virtually everything on the system. activitymonitord churns away, chewing up cpu. Hello, Apple! These are your systems, being run by your users. If there is a problem with the way applications are using memory, then find out what it is, and sort the problem out with your APIs, or with the 3rd party developers, or both.


Three years and counting.

Jun 3, 2012 7:43 AM in response to numinasthmatic

No, it's not a problem with Mac memory management; it's an app issue. Swap files are created by the system when it needs to reapportion ram, and they are automatically released when they are no longer needed. The only way to get an ever-growing set of swap files is to have a process which keeps asking for memory allocations but never releasing them.


HP Device Monitor was an example of the problem, I didn't suggest it was the only cause. And just so you understand the example, when HPDM is running on my machine I will see one 1Gb swap file created roughly every hour (until I run out of disk space, if I let it go), and when I quit HPDM the excess swap files are all slowly released over the next five minutes or so. The system is doing exactly what it's supposed to do. Remember, the OS has no way of knowing whether an app's memory allocation is honest use or a leak (video processing apps, for instance, might require huge amounts of memory for some tasks).


open activity monitor, set it to All Processes, sort the display by virtual memory, and leave it open in the background. watch the processes at the top of the list; one of them will keep getting bigger and bigger over hours or days. for the long run, contact the developer. for the short run, set up an automated process that quits and restarts that process periodically so that the excess swaps are released.

Jun 5, 2012 11:24 AM in response to elado

Not that I know of. I mean, it probably can be done, but at a system level that we have no immediate access to through unix.


You really should bring this up at a Chrome users board. if other people have noticed the problem they may have a fix for it, or maybe they can convince google to make an update. SInce I don't use Chrome, I can't really say much about it myself.

Jun 5, 2012 12:21 PM in response to twtwtw

twtwtw wrote:

You really should bring this up at a Chrome users board. if other people have noticed the problem they may have a fix for it, or maybe they can convince google to make an update. SInce I don't use Chrome, I can't really say much about it myself.

FWIW, I use the Google Chrome browser from time to time. I have never noticed any instances of a "Google Chrome Renderer" in Activity Monitor when I use it. I do see a single instance of a "Google Chrome Helper" & of a "Google Chrome Worker" process, each user owned & 'daughter' processes of the browser, but that is all.


EDIT: I'm using version 18.0.1025.165 of Chrome. I just noticed there is an update available. I haven't installed it yet (getting an "Update server not available" error) but I will try to update it later & see if that makes any difference.

Gigantic /var/vm folder - 26GB

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.