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
3
votes
1 answer

Getting the kernel ID and ram disk ID from aws instance or ami

I have an aws instance and if I look at it from the console or use the aws describe command, there doesn't seem to be a valid kernel ID or ram disk ID. Looking at the ami I used to create the instance results in the same thing. How can I find out…
jamesatha
  • 7,280
  • 14
  • 37
  • 54
3
votes
2 answers

How to reduce File IO on legacy app that writes to disk, and app that reads it in real time (.NET)

My situation is I have a legacy app which I don't have the code for which writes out data to disk every second or so. I have a C# program I wrote which every second reads what was written to disk and uses the data. The data is written to a few text…
Luke Belbina
  • 5,708
  • 12
  • 52
  • 75
3
votes
1 answer

How does initdb of PostgreSQL work? How to use it for testing?

Many suggestions for integration testing which includes Postgres Database say that I can initdb a new whole cluster in RAM disk and work on it. As far as I understand initdb is a new folder like thing related to databases. According to Postgres…
Tarun Maganti
  • 3,076
  • 2
  • 35
  • 64
3
votes
1 answer

Trick to read data from hard drive faster between sucessive compilations

I am developing code with a compiled language (Fortran 95) that does certain calculations on a huge galaxy catalog. Each time I implement some change, I compile and run the code, and it takes about 3 minutes just reading the ASCII file with the…
Mephisto
  • 640
  • 1
  • 6
  • 12
3
votes
1 answer

not syncing: No init found. for jffs2 filesystem

I am working on mpc8309-twr board with kernel 2.6.33.7, when i am creating my rootfs image with ramdisk file system (rootfs.ext2.gz.uboot) i am able to mount my file system and my board is able to boot successfully. But, when i am trying with…
3
votes
1 answer

How to set the capacity of the ramdisk

I compile the ramdisk as a module in the kernel.Then I want use the cmd :insmod brd rd_size = 10000 to set the capacity of the ramdisk.But it says I give the wrong parameters. Then I go to see the source code of this module. static int __init…
qyanqing
  • 313
  • 2
  • 5
  • 10
3
votes
2 answers

Problem with boost memory mapped files: they go to disk instead of RAM

I am trying to understand how Boost memory mapped files work. The following code works, it does what it is supposed to do, but the problem is that the file it generates is stored on disk (in the same directory of the executable) instead of memory.…
Pietro
  • 12,086
  • 26
  • 100
  • 193
3
votes
1 answer

php sessions saved in ramdisk

I'm trying to save my php session on ramdisk. I have a permission problem but i can't see what where it's the problem. I have the ramdisk: /dev/ram0 407M 2.4M 404M 1% /var/lib/php/session/ramd I have the permissions: drwxrwx---. 3 root …
Crsr
  • 624
  • 3
  • 9
3
votes
4 answers

emulating a physical disk to speed up execution?

We have a command line exe that takes input from a text file and produces an output text file. It is used for complex industrial simulations. The source code for this exe is long gone. Now it was easy enough to create a .NET wrapper which controls…
Alex
  • 3,099
  • 6
  • 41
  • 56
3
votes
2 answers

Mount /var on ramdisk at boot - Bash Script Issue

I have an embedded device where i need to put my /var and /tmp in ram in order to diminish the number of writes on the drive (Compact flash). I know how to do it with /tmp as i don't have to recover anything whenever i reboot or shutdown. But the…
2
votes
3 answers

Linux: writing status often to a small file, where?

I want this program of mine to expose its status for others to read. The first thing that comes to my mind is to write this to a file, but the flow of my program makes it convenient to update this status several times a second which makes it stupid…
haraldk
  • 21
  • 2
2
votes
3 answers

Using Memory Disk for I/O unit tests

I have a following setup in C# - I have a component which gets a folder path in the constructor, and later, some huge data are processed by it and written out to disk in form of several files (order of magnitude about 1Gb, very IO intensive). On…
Petr Osipov
  • 621
  • 6
  • 16
2
votes
1 answer

Run MySQL in memory with slave for persistence

Let's presume that I need to maximize my write performance and am willing to take a risk of a few minutes of lost data. My use case is a "burst" of activity for a few hours which will subside. The workload is append-heavy. Let's presume, for the…
Paul Prescod
  • 443
  • 1
  • 4
  • 17
2
votes
2 answers

How to speed up reading of a fixed set of small files on linux?

I have 100'000 1kb files. And a program that reads them - it is really slow. My best idea for improving performance is to put them on ramdisk. But this is a fragile solution, every restart need to setup the ramdisk again. (and file copying is slow…
Łukasz Lew
  • 48,526
  • 41
  • 139
  • 208
2
votes
0 answers

Separate image and container data in windows docker

I have a Windows server 2019 server with ~770GB ram and 2TB SSD which I do not utilize fully in my CI therefore I decided to create a ramdisk with ~50% of the available memory to speedup my builds. Since all my pipelines run in docker, I wanted to…
user3396919
  • 141
  • 1
  • 10
1 2
3
9 10