RAMdisk in OSX revisited

Okay, this may not be specific to OS 10.4, but 10.4.11 is what i'm using....


I have tried Rambunctious and Make Ram Disk 1.0 to make a 999 MB RAM disk.


According to Activity Monitor, each program immediately grabs 1.01 GB of *virtual* memory when i create the RAMdisk. This doesn't seem right. Virtual memory should be 0 (zero). Is this being misreported by Activity Monitor..? To me, this is a technical question that requires knowledge of how OS X [10.4] handles memory.


I do NOT want anything i copy to a RAM disk *ever* going to any hard drive at any point, e.g. to a swap file (virtual memory). Are the files i then copy to my "RAM disk" actually going only to RAM..? If so, then why the reported 1 GB of virtual memory?? W-T-F?

PowerMac, Mac OS X (10.4.11), G4; G5; Dual-Core iMac.

Posted on Apr 27, 2011 1:41 PM

Reply
6 replies

Apr 27, 2011 2:14 PM in response to paulpen

Firstly, watch the language. Secondly, read the following:


About OS X Memory Management and Usage

Reading system memory usage in Activity Monitor
Memory Management in Mac OS X
Performance Guidelines- Memory Management in Mac OS X
A detailed look at memory usage in OS X

Understanding top output in the Terminal

The amount of available RAM for applications is the sum of Free RAM and Inactive RAM. This will change as applications are opened and closed or change from active to inactive status. The Swap figure represents an estimate of the total amount of swap space required for VM if used, but does not necessarily indicate the actual font size of the existing swap file. If you are really in need of more RAM that would be indicated by how frequently the system uses VM. If you open the Terminal and run the top command at the prompt you will find information reported on Pageins () and Pageouts (). Pageouts () is the important figure. If the value in the parentheses is 0 (zero) then OS X is not making instantaneous use of VM which means you have adequate physical RAM for the system with the applications you have loaded. If the figure in parentheses is running positive and your hard drive is constantly being used (thrashing) then you need more physical RAM.

Thirdly, to what virtual memory are you referring? If the Vmem column in Activity Monitor, then that number is meaningless to you and has nothing to do with the swap file. Whether the contents of your ram disk are written to the hard drive is a function of how the ram disk handles the content upon shutdown/restart.

Apr 28, 2011 12:49 PM in response to Kappy

Kappy: There is only one "virtual memory" column in Activity Monitor, so i can only be referring to one thing. What it means is the question.


I looked at those links, and they're not terribly helpful. I don't want to wait and hope for OS X to "fill the [RAM] cache with the most needed or most frequently used data" as the "usage of X increases over time without rebooting". That is ABSURD. (nor can i expect OSX to actually do that since it's dysfunctional in so many other ways--for example, not placing the startup drive icon in the upper right corner of the screen and letting me think i was copying to/from my other physical hard drive all day yesterday).


I want to FORCE something to be in RAM. So the question is: WHY is that virtual memory (in Activity Monitor) assigned to RAMdisk..? Does that mean that some of what i copy to the "RAM disk" might be swapped to an actual hard drive at some point...?????????????????????


I would be doing this in OS9.... except OSX "classic" has trashed the startup folder and apparently I can't startup in OS9 again until it's reinstalled.

Apr 28, 2011 1:29 PM in response to paulpen

Because the program itself has assigned some virtual memory allotment as do all the running programs. This has nothing to do with what the Ram Disk program does nor does it mean that anything you put in the Ram Disk is not in physical memory. There is no swapping going on with the program. The program works perfectly well, and you are focusing on something that is meaningless to you.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

RAMdisk in OSX revisited

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