Computing.Net > Forums > Solaris > max ramdisk size

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

max ramdisk size

Reply to Message Icon

Original Message
Name: u98f6s14
Date: December 23, 2004 at 07:29:04 Pacific
Subject: max ramdisk size
OS: Solaris 9
CPU/Ram: 32GB
Comment:

I am using Solaris 9 and have 32GB Physical Memory in my server. I would like to create a 16GB ramdisk. Since, by default, the percentage of available physical memory that can be allocated to ramdisks is fixed at 25%, I can't create a 16GB ramdisk. I have tried to add "set rd_percent_physmem=50" in /etc/system, but that doesn't work. Does anyone know how I can increase the percentage of available physical memory that can be allocated to the ramdisks? I would be very grateful if anyone could help me out. Thanks.



Report Offensive Message For Removal


Response Number 1
Name: joem33
Date: December 29, 2004 at 08:44:47 Pacific
Reply: (edit)

Just as a quick bit of information, Solaris 9 needs at least 128 MB for Minimum RAM. As far as ramdisk. Are you sure you are not looking just to increase your swap? you can do a mkfile as follows.

you can add swap space by using free space from another partition.

To create a swapfile:
mkfile size swapfile

Here is an example to create an additional 512M swapfile:
mkfile 512M /swapfile

Add the swapfile to system swap space:
swap -a /swapfile

Add an /etc/vfstab entry to have the swapfile added after each reboot:
/swapfile - - swap - no -



Report Offensive Follow Up For Removal

Response Number 2
Name: u98f6s14
Date: December 29, 2004 at 15:14:28 Pacific
Reply: (edit)

I will need to create a RAMDISK. Using the swap can't do what I need to do. But, anyway, I really appreciate your response. Thanks!


Report Offensive Follow Up For Removal

Response Number 3
Name: bw
Date: January 6, 2005 at 08:39:05 Pacific
Reply: (edit)

The solaris docs are incorrect, try using
the following command to set the percent:

set ramdisk:rd_percent_physmem xx

where xx is your percent.


Report Offensive Follow Up For Removal

Response Number 4
Name: bw
Date: January 7, 2005 at 08:55:13 Pacific
Reply: (edit)

oops - sorry I had a typo use = instead of " "

set ramdisk:rd_percent_physmem=xx

where xx is your percent.


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 7 Days.
Discuss in The Lounge
Poll History




Data Recovery Software