root@boc:~# rdsinit /dev/sdc7 /dev/sdc5
rvm_initialize succeeded.
============================================================
Getting parameters for RDS
============================================================
1) length of data segment file/device
There will be two regions in the segment:
one is for the heap, the other is for the static.
Some extra space (usually one page) will also
be needed for the segment header.
Length of data segment must be a multiple of pagesize.
Please make sure you have enough space in your disk.
==> please enter length of data segment:0x19500000
====> You have entered 0x19500000 (in decimal 424673280). Accept ? (y|n|q) y
2) starting address of rvm
This is where heap and static will be mapped into virtual memory, it
must be larger than the largest possible break point of your
application, and it should not be in conflict other use of vm (such as
shared libraries). Also, it must be on a page boundary
(In CMU, we use 0x20000000 (536870912) with Linux and BSD44,
0x70000000 (1879048192) with Mach and BSD44 without problem.)
==> please enter starting address of rvm: 0x20000000
====> You have entered 0x20000000 (in decimal 536870912). Accept ? (y|n|q) y
3) heap length
It is the size of the dynamic heap to be managed by RDS,
it must be an integral multiple of pagesize.
==> please enter the heap length: 0x17D2000
====> You have entered 0x17d2000 (in decimal 24977408). Accept ? (y|n|q) y
4) static length
It is the size of the statically allocated location to be
managed by your application.
It must be an integral multiple of pagesize.
==> please enter the static length: 0x17D000
====> You have entered 0x17d000 (in decimal 1560576). Accept ? (y|n|q) y
5) nlists
It is the number of free list used by RDS.
(nlist=100 is a reasonable choice.)
==> please enter a decimal value for nlists: 100
====> You have entered 100 (in hex 0x64). Accept ? (y|n|q) y
6) chunksize
The free list are maintained in sizes of one chunk to n chunk,
where n is the number of free lists.
It must be an integral multiple of sizeof(char *) of your system,
and must at least be RDS_MIN_CHUNK_SIZE.
(chunksize=32 is a reasonable choice.)
==> please enter a decimal value for chunksize: 32
====> You have entered 32 (in hex 0x20). Accept ? (y|n|q) y
The following parameters are chosen:
length of data segment: 0x19500000 ( 424673280)
starting address of rvm: 0x20000000 ( 536870912)
heap len: 0x17d2000 ( 24977408)
static len: 0x17d000 ( 1560576)
nlists: 0x64 ( 100)
chunk size: 0x20 ( 32)
Do you agree with these parameters ? (y|n|q) y
Going to initialize data file to zero, could take awhile.
done.
rds_zap_heap completed successfully.
rvm_terminate succeeded.