lkml.org 
[lkml]   [1999]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRAM disk question
1) Is it true that one cannot change the default ramdisk size
without changing the source code if ramdisk was compiled as
module? (The ramdisk_size boot parameter does not seem to work
in this case).

2) How do I free the ramdisk? Does kernel do it automatically?
If so, what are the conditions for this? And what would be the
consequences in the case of a large RAM disks (~100 MB)?

There is in example of an old freeramdisk program which does smth
like

f=open(ram_device,O_RDWR);
ioctl(f,BLKFLSBUF);
close(f);

Will it do the job? Will it work on arbitrary ramdisk size?

Please CC me if you reply to the list.

Thanks.


--
----------------------------------------
Constantine Gavrilov
Unix System Administrator and Programmer
Orbotech
Yavne 81102, Israel
Phone: (972-8)-942-3064
Fax: (972-8)-942-3800
----------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2011 Jasper Spaans