|
Replies:
5
-
Last Post:
Nov 9, 2009 6:06 PM
by: jdunham
|
|
|
Posts:
10
From:
US
Registered:
11/4/09
|
|
|
|
creating disk on RAM / ramdisk in Open Solaris
Posted:
Nov 4, 2009 4:35 PM
To: Communities » storage » discuss
|
|
Hi, I want to create ramdisk on a Open Solaris server. I am not very familiar with creating ramdisk and using it. The whole idea is, after creating the ramdisk we are going to use it as comstar traget device for fcoe iops evaluation purpose on a vendor NIC. Any idea on how to create the ramdisk is appreciated.
Thanks, Niranjan
|
|
|
Posts:
305
From:
US
Registered:
3/9/05
|
|
|
|
Re: [storage-discuss] creating disk on RAM / ramdisk in Open Solaris
Posted:
Nov 4, 2009 6:19 PM
in response to: nkdas
|
|
Niranjan, Hi, I want to create ramdisk on a Open Solaris server. I am not very familiar with creating ramdisk and using it. The whole idea is, after creating the ramdisk we are going to use it as comstar traget device for fcoe iops evaluation purpose on a vendor NIC. Any idea on how to create the ramdisk is appreciated.
You could either use ramdiskadm(1M), or create a file in /tmp (or other tmpfs filesystem area) with mkfile(1M) or directly with stmfadm(1M)
# ramdiskadm -a disk_A 200m /dev/ramdisk/disk_A
# stmfadm create-lu /dev/rramdisk/disk_A Logical unit created: 600144F00800271A9DF44AF23F3F0001
OR # mkfile -nv 200m /tmp/file_A /tmp/file_A 209715200 bytes
# stmfadm create-lu /tmp/file_A Logical unit created: 600144F00800271A9DF44AF240FB0002
OR
# stmfadm create-lu -s 200m /tmp/file_A Logical unit created: 600144F00800271A9DF44AF2413E0003
- Jim
_______________________________________________
storage-discuss mailing list
storage-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/storage-discuss
|
|
|
|
Jozef Hamar
hamar@jozef.name
|
|
|
|
Re: [storage-discuss] creating disk on RAM / ramdisk in Open Solaris
Posted:
Nov 6, 2009 4:10 AM
in response to: jdunham
|
|
Jim Dunham wrote:
Niranjan,
Hi,
I want to create ramdisk on a Open Solaris server. I am not very
familiar with creating ramdisk and using it. The whole idea is, after
creating the ramdisk we are going to use it as comstar traget device
for fcoe iops evaluation purpose on a vendor NIC. Any idea on how to
create the ramdisk is appreciated.
You could either use ramdiskadm(1M), or create a file in /tmp
(or other tmpfs filesystem area) with mkfile(1M) or directly with
stmfadm(1M)
# ramdiskadm -a disk_A 200m
/dev/ramdisk/disk_A
# stmfadm create-lu /dev/rramdisk/disk_A
Logical unit created: 600144F00800271A9DF44AF23F3F0001
OR
# mkfile -nv 200m /tmp/file_A
/tmp/file_A 209715200 bytes
# stmfadm create-lu /tmp/file_A
Logical unit created: 600144F00800271A9DF44AF240FB0002
OR
# stmfadm create-lu -s 200m /tmp/file_A
Logical unit created: 600144F00800271A9DF44AF2413E0003
- Jim
Hello,
excuse me for this question, but I always used for such purposes simple
mount:
mount -F tmpfs -o size swap _mountpoint_
Is there any big difference between examples above in way how they are
processed by OS?
Thanks,
Jozef Hamar
<code></code>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
storage-discuss mailing list
storage-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/storage-discuss
</pre>
_______________________________________________
storage-discuss mailing list
storage-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/storage-discuss
|
|
|
|
Posts:
305
From:
US
Registered:
3/9/05
|
|
|
|
Re: [storage-discuss] creating disk on RAM / ramdisk in Open Solaris
Posted:
Nov 6, 2009 10:19 AM
in response to: Jozef Hamar
|
|
Jozef,
Jim Dunham wrote:
Niranjan,
Hi,
I want to create ramdisk on a Open Solaris server. I am not very
familiar with creating ramdisk and using it. The whole idea is, after
creating the ramdisk we are going to use it as comstar traget device
for fcoe iops evaluation purpose on a vendor NIC. Any idea on how to
create the ramdisk is appreciated.
You could either use ramdiskadm(1M), or create a file in /tmp
(or other tmpfs filesystem area) with mkfile(1M) or directly with
stmfadm(1M)
# ramdiskadm -a disk_A 200m
/dev/ramdisk/disk_A
# stmfadm create-lu /dev/rramdisk/disk_A
Logical unit created: 600144F00800271A9DF44AF23F3F0001
OR
# mkfile -nv 200m /tmp/file_A
/tmp/file_A 209715200 bytes
# stmfadm create-lu /tmp/file_A
Logical unit created: 600144F00800271A9DF44AF240FB0002
OR
# stmfadm create-lu -s 200m /tmp/file_A
Logical unit created: 600144F00800271A9DF44AF2413E0003
- Jim
Hello,
excuse me for this question, but I always used for such purposes simple
mount:
mount -F tmpfs -o size swap _mountpoint_
Is there any big difference between examples above in way how they are
processed by OS?
Yes, COMSTAR supports backing store types being either a filesystem or block devices.
For each classification of backing store type, the will be measurable differences. For example backing stores configured on tmpfs filesystems will differ from ramdisk, even though they are both memory based. ZFS filesystems will differ from ZVOLs, even though both use the same ZFS storage pool. The same can be said for other supported data services on Solaris.
- Jim
_______________________________________________ storage-discuss mailing list storage-discuss at opensolaris dot org http://mail.opensolaris.org/mailman/listinfo/storage-discuss
_______________________________________________
storage-discuss mailing list
storage-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/storage-discuss
|
|
|
|
Posts:
80
From:
US
Registered:
7/18/05
|
|
|
|
Re: creating disk on RAM / ramdisk in Open Solaris
Posted:
Nov 9, 2009 1:56 PM
in response to: nkdas
To: Communities » storage » discuss
|
|
What tools will you use to evaluate the IOPS in this configuration?
|
|
|
|
Posts:
305
From:
US
Registered:
3/9/05
|
|
|
|
|
|