Questions tagged [ramdisk]

A RAM disk or RAM drive is a block of RAM (primary storage or volatile memory) that a computer's software is treating as if the memory were a disk drive (secondary storage)

A RAM disk or RAM drive is a block of RAM (primary storage or volatile memory) that a computer's software is treating as if the memory were a disk drive (secondary storage)

149 questions
2
votes
2 answers

Create Large File in /dev/shm in parallel: performance

I need to create a large file (several gbytes) in /dev/shm. which is a RAMdisk on Linux machines. This must be as fast as possible. I'm currently using 5 separate POSIX threads in C to create sequential 100 mbyte segments, then I have another…
JB_User
  • 3,117
  • 7
  • 31
  • 51
2
votes
2 answers

How to copy files in python?

Basically, what I want to do is this (in a psuedo bash-ish code) #create ramdisk raid diskutil erasevolume HFS+ "r1" `hdiutil attach -nomount ram://4661720`; diskutil erasevolume HFS+ "r2" `hdiutil attach -nomount ram://4661720`; diskutil createRAID…
Broseph
  • 1,655
  • 1
  • 18
  • 38
2
votes
2 answers

How to mount a ramdisk in Android before it starts?

Is it possible to mount a ramdisk in Android before the Android framework starts, but after the underlying Linux kernel has started? If so, what commands should I use? Thanks!
user1118764
  • 9,255
  • 18
  • 61
  • 113
2
votes
1 answer

Is it possible and safe to create a RamDisk on an existing EC2 instance? If possible, how to do that?

I have an EC2 instance that currently hold our web site, and we are thinking about pointing our "Temporary ASP.NET Files" Compilation Folder to a RamDisk on EC2. Not sure if it's a good idea and couldn't find much info around.
Lamas
  • 21
  • 1
  • 2
1
vote
2 answers

solaris 10, java 6 , file.exists cant see the existing file

i have a code that composes millions of small files into tar archives, and therefore i decided to use the /tmp folder of my solaris machine. then i created a ramdisk and instead of /tmp i now use ramdisk (/ramdata) i created.. here is what i did to…
iteyran
  • 125
  • 3
  • 15
1
vote
1 answer

solaris 10 (sparc64) ramdisk (like shmfs or tmpfs)

There is an ramdisk capability in Linux, which is achieved with mounting shmfs of tmpfs, like: # mount -t shm shmfs -o size=20g /dev/shm or # mount –t tmpfs tmpfs /dev/shm Also, some linuxes have ramfs, which is "ramfs is similar to shmfs, except…
osgx
  • 90,338
  • 53
  • 357
  • 513
1
vote
2 answers

Fast multi-part file merge on Linux

I have 6,369 files of 256 MB each (1.63 TB total) stored in a RAM disk volume on a Linux server equipped with 4 TB of RAM. I need to merge them into a single file stored in the same RAM disk. What kind of merge operation would give me the best…
Ismael Ghalimi
  • 3,515
  • 2
  • 22
  • 25
1
vote
1 answer

What is the best file system for a small ramdisk under Linux?

An embedded Linux system I am working on has a 4MB ram disk. It is currently formatted with ext2. It seems that even when empty, there is only about 50% free space ! At the moment, it is used for about 50 smallish (1 or 2KB) files that total about…
Neil
  • 11,059
  • 3
  • 31
  • 56
1
vote
4 answers

Running Visual Studio and sites inside a VMware RAM Disk

I have a machine with 24 GB so I was planning to install Vista 64-bit and nothing on it but VMware workstation 6.5 Vista Image, that will be installed on a RAM Disk that I will make on the main Vista. The whole VMware Image will be in RAM, so I will…
DevMania
  • 2,311
  • 4
  • 25
  • 43
1
vote
1 answer

Linux initrd optimization

I am investigating Linux initrd mechanism. I learned the following code: bool __init initrd_load(void) { if (mount_initrd) { create_dev("/dev/ram", Root_RAM0); /* * Load the initrd data into /dev/ram0. Execute it as…
1
vote
1 answer

Unzip file into memory, tweak file, zip and stream to the client (Node.js)

I am trying to dynamically serve Zip files, I would like to unzip a file 1x on script launch, and on every request, include a string in a text file and stream the whole zip file to the client. To handle decent sized concurrency my best solution so…
Lerchmo
  • 189
  • 1
  • 12
1
vote
2 answers

RAM disks in GCP Dataflow - is it possible?

Google Compute Engine support RAM disks - see here. I develop a project that will reuse existing code which manipulate local files. For scalability, I am going to use Dataflow. The files are in GCS, and I will send it to the Dataflow workers for…
1
vote
0 answers

How to make a whole docker container volatile?

I need to use a (bad) image with a lot of I/O inside its container. So I have a lot of I/O on my disk. I would like the whole container not to write to the disk but only to memory (tmpfs). I don't care if this data is lost because I made volumes for…
1
vote
1 answer

Format a RAM disk with no drive letter by using `Format-Volume` cmdlet

Background I have a RAM disk created with ImDisk Toolkit. The drive letter is "R". I can access the RAM disk properly (Get-ChildItem R: shows directory entries properly). I want to format the RAM disk in my powershell script (it runs a benchmark)…
SATO Yusuke
  • 1,600
  • 15
  • 39
1
vote
1 answer

How to load a matlab MAT file from memory?

Let's say I have an array of the bytes of a mat file loaded into my Matlab shell. One way to parse this data is to write it to the disk, and then use Matlab load function. Is there a way to do that without writing to the hard drive (on windows)? I…
Dani
  • 73
  • 8