image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old July 21st, 2001, 03:58 PM
Registered User
 
Join Date: May 2001
Location: Massachusetts
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
gabe is on a distinguished road
RAM Disks under OSX?

Ok, so we were able to make RAM disks in OS 9, we are able to make RAM disks in UNIX systems, but can we make RAM disks in MacOS X?

Does anyone know how?
Reply With Quote
  #2  
Old July 21st, 2001, 05:39 PM
slur's Avatar
Geek / Hedonist
 
Join Date: Dec 2000
Location: Florence, MA
Posts: 542
Thanks: 0
Thanked 0 Times in 0 Posts
slur is on a distinguished road
Wait for 10.1?

According to all the BSD sites I was able to scour it looks like MacOS X isn't configured to support a RAM disk. The general instructions for creating a RAM disk under most BSD systems consists of

add 'option MFS' to your kernel configuration
use for example: mount_mfs -s 4096 swap /mnt
or add an /etc/fstab entry like this: swap /var/log mfs rw 1 0


The trouble is that MacOS X doesn't seem to have a configured swap partition, nor does it appear to have been compiled with the MFS option enabled, and alas there is no /etc/fstab either. (We do have /etc/fstab.hd, .rd, and .sd however) If you try to use /dev/mem as the mount source you'll find that mount_mfs won't accept it.

Unless I'm mistaken - and it wouldn't bother me if I was! - we may have to wait for MacOS X 10.1 or beyond before we get RAM disk support.... unless you feel like recompiling your kernel.

(I might just be mistaken after all. Check out this thread and this page)
__________________
|
| slur was here
|

check out my creative music software

Last edited by slur; July 21st, 2001 at 05:52 PM.
Reply With Quote
  #3  
Old July 21st, 2001, 06:33 PM
ITz The MaN's Avatar
I am
 
Join Date: Sep 2000
Location: City of Angels
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
ITz The MaN is on a distinguished road
Recompile Kernal

Well, you can recompile your kernal if u want..... Just download the Darwin source from apple (they still have it up there, dont they?). All the bare system stuff is in there.
__________________
300Mhz B&W G3
384MB RAM
6gig internal HD w/ OS 9.2 & OS X v.10.2.3 on same partition.
60gig FireWire HD
100mb Zip Drive
Reply With Quote
  #4  
Old July 27th, 2001, 04:22 PM
Registered User
 
Join Date: May 2001
Location: Massachusetts
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
gabe is on a distinguished road
So, does Darwin support RAM disks then?

What you've both said about recompiling the kernel makes me wonder:

Does Darwin support RAM disks itself?

I can't exactly recompile my OSX kernel, now can I?

heh.
Reply With Quote
  #5  
Old July 27th, 2001, 04:55 PM
slur's Avatar
Geek / Hedonist
 
Join Date: Dec 2000
Location: Florence, MA
Posts: 542
Thanks: 0
Thanked 0 Times in 0 Posts
slur is on a distinguished road
follow the bouncing links

If you follow the links from my last post you'll find some information that strongly backs the idea that Darwin has built-in RAM disk support. You'll also learn that the RAM Disk as it exists in many BSD variants is highly inefficient in terms of memory usage but plenty fast.

You definitely can recompile the Darwin kernel. Apple has a Darwin FAQ worth reading and you can get the latest Darwin sources from this page. (The kernel itself is named 'xnu' and it's near the bottom of the page.)
__________________
|
| slur was here
|

check out my creative music software
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAM Disk for OS X? Yes indeedy. simX Apple News, Rumors & Discussion 0 May 1st, 2002 12:01 PM
OSX takes up 208 MB RAM? boi Mac OS X System & Mac Software 4 January 26th, 2002 08:53 PM
pc zip disks in osx? kafene Mac OS X System & Mac Software 11 January 18th, 2002 07:26 AM
RAM disk in OSX twitchg3 Mac OS X System & Mac Software 10 January 11th, 2002 02:25 PM
RAM in OSX, and what to do with older RAM Xandr Apple News, Rumors & Discussion 4 October 6th, 2001 01:20 PM


All times are GMT -5. The time now is 02:32 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.