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).

Because the storage is in RAM, it is volatile memory, which means it will be lost in the event of power loss, whether intentional (computer reboot or shutdown) or accidental (power failure). This is sometimes desirable: for example, when working with a decrypted copy of an encrypted file, or for storing a web cache (doing this on a RAM disk can also improve the speed of loading pages).

Source: wikipedia

67 questions
29
votes
4 answers

Performance difference between ramfs and tmpfs

I need to setup an in memory storage system for around 10 GB of data, consisting of many 100 kb single files(images). There will be lots of reads and fairly periodic writes(adding new files, deleting some old ones). Now, I know that tmpfs behaves…
Ivan Kovacevic
  • 1,671
  • 3
  • 14
  • 19
9
votes
1 answer

How to Change Ramdisk Size without Restarting

I have the following line on my fstab file: ramdisk /tmp tmpfs mode=1777,size=2048m Now I want to increase the size to 4096m. What I did is change it to: ramdisk /tmp tmpfs mode=1777,size=4096m and issue the command: mount -a but when I check it…
jaYPabs
  • 279
  • 1
  • 4
  • 19
7
votes
1 answer

Failing to mount root from ramdisk while PXE boot

I have a working TFTP/DHCP PXE boot environment where I've already booted some images successful. Now I built an CentOS 6.5 diskless image and this one is failing booting with the following error: No filesystem could mount root, tried: …
marcap
  • 71
  • 3
7
votes
4 answers

Serving html from linux ramdisk

I have seen a somewhat dated tutorial that suggest serving html files with a ramdisk like this: mkfs -q /dev/ram1 102400 I also find another source that use something like this: mount -t tmpfs -o size=1024 none /mnt/rds Are these two methods…
StCee
  • 231
  • 3
  • 14
6
votes
9 answers

Rapid SSD vs. RAM in servers

Per GB prices of rapid SSD (like Intel X25-E) come close to prices of high-end RAM. So what extra advantages does SSD give you? What are particular reasons, why you buy SSD, instead of just putting more RAM in your server machine, to have it used…
vartec
  • 6,137
  • 2
  • 32
  • 49
6
votes
2 answers

how to know if the server runs out of RAM before crashing down

I have a server that keeps on crashing. I know there are several causes for a server to crashes down. But if the cause is that the system is running out of RAM before it crash down; how should I confirm that is cause? What log files should I look?…
Pelang
  • 413
  • 5
  • 9
  • 15
5
votes
3 answers

Lazy disk backup for a ramdisk on Linux?

Quick and dirty summary: I want something like a write cache that drains only when the system isn't busy. I want something along the lines of this question RAM disk and physical RAID with a slight twist. For a particular build I'm doing often, I…
kbyrd
  • 3,604
  • 2
  • 23
  • 34
5
votes
4 answers

Speeding up SQL Server temp table processing with a RAM Disk

A system we are developing consists of a Web app frontend, and a backend that does a lot of data processing using stored procedures in SQL Server 2008 R2 (please, don't ask why...). These stored procedures make heavy use of temp tables (creation,…
5
votes
3 answers

How to create a RAM Drive (RAM Disk) in Windows 2008 R2?

There are lots of tools for creating RAM drives. None of them seem to work for windows 2008 R2. Does anyone know if this is possible and if so how. Does anyone know of a tool that does work? I've tried the gavotte ram disk. It doesn't work. When i…
Mark
  • 211
  • 1
  • 4
  • 8
4
votes
1 answer

Swap Memory Anomoly

I am currently experiencing a memory issue on my centos 7.6 distro. It began with my system swapping even though up to 80GB ram should have been available. free -m total used free shared buff/cache …
GreyStone
  • 45
  • 5
4
votes
23 answers

Best use of a RAM disk?

Just wondering, have you ever made anything useful with a RAM disk in production? I wonder if the performance benefit they afford possibly outweighs their temporary nature in a specific circumstance. I've only ever used one once, and it wasn't for…
JamesHannah
  • 1,731
  • 2
  • 11
  • 22
4
votes
3 answers

What is the use of /lib/init/rw in Debian?

I just installed Debian 5 (Lenny) and I noticed that /lib/init/rw is reported as a RAM Disk (tmpfs). I've only had experience with Fedora so I'm curious what function does that directory serve in Debian. Can it be used by user written shell scripts…
GeneQ
  • 407
  • 2
  • 8
  • 17
4
votes
1 answer

What do you use for a RAM disk on Windows Server?

We currently use AR Soft RAM Disk on some Windows 2003 servers for storing short lived temporary files. Looking forward to a move to 64-bit Windows Server 2008 I'm wondering what options there are for a RAM disk since it appears AR Soft RAM Disk was…
thelsdj
  • 830
  • 1
  • 11
  • 25
4
votes
2 answers

Running KVM/XEN/Hyper-V VMs from a RAM disk, is this possible? Practical?

Currently I'm using ESX (v3 and v4) to test a scripted OS (Windows 2003) and application install DVD. The DVD ISO (8GB) is mounted on a 1Gbps NFS datastore and the VMDK's (20GB) are on an SSD mounted via NFS over a 10Gbps link. It still takes a lot…
Ausmith1
  • 1,179
  • 8
  • 12
3
votes
1 answer

Reduce writes from a specific application?

I'm logging the output of a command with command | tee file This causes tee to actually write to the disk every second or so. I'd like to reduce the frequency of the writes, by caching the output more. I know this can be done at the system level,…
MWB
  • 187
  • 8
1
2 3 4 5