RAMDISK in Solaris 2.5.1 ... is it possible ... ?

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Morgan Zackery Hennin » Fri, 20 Dec 1996 04:00:00



Hello all!  I have a quick question:

Is a ram disk possible in Solaric 2.5.1 ?

thanks!

Morgan Henning

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Patrick Vuichar » Fri, 20 Dec 1996 04:00:00



> Hello all!  I have a quick question:

> Is a ram disk possible in Solaric 2.5.1 ?

I don't know, but I just want to remind you that, in Unix, disks are
cached in RAM. So, ram disks are not really useful...

--

========================================================================
|____            __                   | "If Buddha had intended men to |
|  ) /    __    /  ) _   __        __ | understand women,  He wouldn't |
| / /_   /(_)  / _  / ) /  ) /)/) /(_)| have given us aspirin."        |
|/ /  ( (___  (__) / ( (__/ / '( (___ |                     Confucius. |
|_____________________________________|________________________________|

========================================================================

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Birger Wathn » Fri, 20 Dec 1996 04:00:00



> Hello all!  I have a quick question:

> Is a ram disk possible in Solaric 2.5.1 ?

> thanks!

> Morgan Henning


man tmpfs

/tmp has been a tmpfs file system in all Solaris 2 releases.
tmpfs also existed in Solaris 1.x. I used it for /tmp on
4.1.3 as well.

Just remember that it isn't locked into RAM, but rather lives in swap,
so if you save big files in a tmpfs they will get swapped out
to disk. And filling a tmpfs file system uses the swap area your
apps want as memory. So make shure you have enough swap set up!

tmpfs should only be used for file systems with small and short-lived
files. That's why apps should write small files to /tmp and
large temporary files to /var/tmp.

--
Birger Wathne


 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Brendan M. Whi » Fri, 20 Dec 1996 04:00:00



: Hello all!  I have a quick question:
:
: Is a ram disk possible in Solaric 2.5.1 ?
:
yea- it's called /tmp
:)

--
                   Two households, both alike in dignity,
                  In fair Verona, where we lay our scene,
                  From ancient grudge break to new mutiny,
                Where civil * makes civil hands unclean.
                From forth the fatal loins of these two foes
               A pair of star-cross'd lovers take their life;

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Patrick Oo » Fri, 20 Dec 1996 04:00:00





>> Hello all!  I have a quick question:

>> Is a ram disk possible in Solaric 2.5.1 ?

>I don't know, but I just want to remind you that, in Unix, disks are
>cached in RAM. So, ram disks are not really useful...

Adding the following line to /etc/vfstab wil mount a 'ramdisk' (tmpfs) at the
directory /foobar. Make sure you have enough ram, otherwise your
system may run out of swap space as you fill up the 'ramdisk'.

swap      -     /foobar         tmpfs   -       yes     -

See also:  vfstab(4)

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Thor Lancelot Sim » Fri, 20 Dec 1996 04:00:00






>>> Hello all!  I have a quick question:

>>> Is a ram disk possible in Solaric 2.5.1 ?

>>I don't know, but I just want to remind you that, in Unix, disks are
>>cached in RAM. So, ram disks are not really useful...

>Adding the following line to /etc/vfstab wil mount a 'ramdisk' (tmpfs) at the
>directory /foobar. Make sure you have enough ram, otherwise your
>system may run out of swap space as you fill up the 'ramdisk'.

That is *not* a "ramdisk".  It may be freely paged out to disk as the system
feels necessary.

It would, actually, be nice if there were an option to lock the space used
into physical memory.  This is a one-liner change to the BSD mount_mfs but
might be harder for Sun to implement; I have no way of knowing.

--

 Stumbling drunk in the railyard looking for God: http://www.panix.com/~tls/

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Jason C Aust » Fri, 20 Dec 1996 04:00:00



=>
=> Hello all!  I have a quick question:
=>
=> Is a ram disk possible in Solaric 2.5.1 ?
=>
=> thanks!

        Yes, it's called tmpfs.  Try this:

        mount -F tmpfs swap /mnt

        You can also limit it's size with the "-o size=" option.  It's
most commonly used for the /tmp directory.  It's also not completely
like a PC ramdisk, since the operating system can swap out chunks of
it as needed.
--
Jason C. Austin

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Ling Wan » Sat, 21 Dec 1996 04:00:00







> >>> Hello all!  I have a quick question:

> >>> Is a ram disk possible in Solaric 2.5.1 ?

> >>I don't know, but I just want to remind you that, in Unix, disks are
> >>cached in RAM. So, ram disks are not really useful...

> >Adding the following line to /etc/vfstab wil mount a 'ramdisk' (tmpfs) at the
> >directory /foobar. Make sure you have enough ram, otherwise your
> >system may run out of swap space as you fill up the 'ramdisk'.

> That is *not* a "ramdisk".  It may be freely paged out to disk as the system
> feels necessary.

> It would, actually, be nice if there were an option to lock the space used
> into physical memory.  This is a one-liner change to the BSD mount_mfs but
> might be harder for Sun to implement; I have no way of knowing.

Just don't have swap on your system, then tmpfs would never
swap out.  You just have to get enough RAM to cover for any
memory shortfalls.
 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Jay Sco » Sat, 21 Dec 1996 04:00:00



>: Is a ram disk possible in Solaric 2.5.1 ?

e-yup.  If you're willing to do a device driver,
one of the samples you get with the device driver
writer's manual is a ram disk.

seems like a lot of bother compared to /tmpfs, but
you can "be a purist" about this if ya just wanna.
j.
--
Jay Scott               512-835-3553

Applied Research Labs, Computer Science Div.
University of Texas at Austin

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by JCarr378 » Sun, 22 Dec 1996 04:00:00


go to www.datram.com, they made a ramdisk for dec, sun etc. but how about
a bunch of 64mb simms instead. princeton univ built a sun with 2 gig of
main memory, if the memory manager is still available from sun
     UPS   SUN   SCSI   Barracudas       GSA schedule    Maryland
                   home page http://www.digitalcity.com/powerstar
ph:800-209-5556                                    

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Rory To » Wed, 25 Dec 1996 04:00:00




> Newsgroups: alt.sys.sun,comp.sys.sun.admin,comp.sys.sun.managers,comp.unix.solaris
> Date: 20 Dec 1996 14:36:38 -0600
> Organization: Applied Research Labs : The University of Texas at Austin


> >: Is a ram disk possible in Solaric 2.5.1 ?

> e-yup.  If you're willing to do a device driver,
> one of the samples you get with the device driver
> writer's manual is a ram disk.

> seems like a lot of bother compared to /tmpfs, but
> you can "be a purist" about this if ya just wanna.
> j.

Well, tmpfs isn't exactly a RAMdisk. Contents are subject to paging and
swapping, just like most everything else. I think he wants a RAMDISK whose
components won't swap out. I suppose the easiest way to do this would be to
run swapless. 8-)

--

-----------------------------------------------
2 + 2 = 5 for relatively large values of 2.

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Casper H.S. Dik - Network Security Engine » Wed, 25 Dec 1996 04:00:00



>Well, tmpfs isn't exactly a RAMdisk. Contents are subject to paging and
>swapping, just like most everything else. I think he wants a RAMDISK whose
>components won't swap out. I suppose the easiest way to do this would be to
>run swapless. 8-)

IMHO, a RAM disk is really only needed for Broken OSes that don't
do much in the way of write behind and read ahead.

Tmpfs will offer you fast meta data as well and is as good as a RAMdisk
for most purposes.  If you use some data repeatedly, it will mostlikely
remain cached in main memory, if access speed is the concern.

For the most parts, RAMdisks are a waste of memory and tmpfs is really
the "in between" you want.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Roger Salisbur » Wed, 25 Dec 1996 04:00:00



Quote:> For the most parts, RAMdisks are a waste of memory and tmpfs is really
> the "in between" you want.

        Unless you want all the benefits of tmpfs without having to worry
about running out of swap.

--
Roger Salisbury         Voice (210)967-6741
AKS4U Networking Inc.   Fax   (210)967-6735

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Andrey Ryzho » Thu, 26 Dec 1996 04:00:00




> > For the most parts, RAMdisks are a waste of memory and tmpfs is really
> > the "in between" you want.

>         Unless you want all the benefits of tmpfs without having to worry
> about running out of swap.

You can explicitly specify the size of tmpfs in vfstab
thus making sure tmpfs doesn't steal the swap space.

Regards,
Andrey

 
 
 

RAMDISK in Solaris 2.5.1 ... is it possible ... ?

Post by Casper H.S. Dik - Network Security Engine » Thu, 26 Dec 1996 04:00:00




>> For the most parts, RAMdisks are a waste of memory and tmpfs is really
>> the "in between" you want.

>    Unless you want all the benefits of tmpfs without having to worry
>about running out of swap.

Runnign out of physical memory is *much* worse.

Besides, you can limit tmpfs swap usage and not run out of swap
by filling up tmpfs.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

1. diskless booting using a ramdisk root filesystem; possible ?

I have seen packages (etherboot, netboot-nfs) that allow Linux to boot
using BOOTP and TFTP, but they all depend on NFS for the root file system.

Would it be possible to have the bootprom download a filesystem image
containing a Linux kernel, put the image into a ramdisk, and continue
booting from there ?

Has this been done ?

Thanks,
Pim
--

S-mail : Laan Copes van Cattenburch 70, 2585 GD The Hague, The Netherlands
Phone  : +31 70 3542302
Fax    : +31 70 3512837

2. qmail setup under Red Hat 6.2

3. Is a "Ramdisk" possible under SysV 3.2.2?

4. what is core file

5. ramdisk possible for 4.3.2?

6. Shadow passwords

7. RAMDISK under Linux possible?

8. HELP! Xlib error crashes my netscape (repost)

9. how many Mega byte is possible to ramdisk size.

10. In search of Solaris 2.5 Netscape Navigator 3.0 plug ins

11. problem with creating ramdisk: kernel loads, but hangs when it tries to mount ramdisk

12. - ramdisk.image.gz (0/78) Re: potato on beige G3: where is ramdisk?

13. ramdisk for linux: mount /ramdisk