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

Filter by
Sorted by
Tagged with
13 votes
8 answers
2k views

Linux - RAM Disk as part of a Mirrored Logical Volume

We have a server with 64GB of total RAM, applications are using typically a maximum of 30GB of that available RAM. One of those applications deals with a lot of flat files, and we're having throughput ...
0 votes
0 answers
33 views

Use RAM drive for VSS?

Anyone tried, on Windows Server, 'vssadmin add shadowstorage' for a volume using a RAM drive, on a server with lots of RAM? Would it contribute to instability somehow? Should enable a nice jolt of ...
0 votes
0 answers
423 views

Memory usage: big difference in `free -m` and htop as well calculation of used memory in htop compared from /proc/meminfo

I'm aware of this question https://stackoverflow.com/questions/41224738/how-to-calculate-system-memory-usage-from-proc-meminfo-like-htop Answer seems outdated regarding memory usage and this question ...
  • 167
0 votes
0 answers
35 views

Why apache2 mod_cache_disk cant store files in ramdisk?

I use Apache2 mod_cache_disk with symlink to my ramdisk: /tmp/ramdisk/mod_cache_disk but I cant get it to work :( It only works when path leads to real directory. How can I fix this problem ?
  • 41
0 votes
0 answers
37 views

Split initrd into smaller files

I would like to know if it's possible to have a split initrd implementation. Our reason for doing this, is the fact that our Fedora based application uses a stripped version of Fedora underneath with ...
1 vote
0 answers
397 views

Virtual disks raid 10 array with ramdisk cache using bcache

I was trying to simulate a scenario with mdadm and bcache. I created 4 raw img files using qemu-img. I have created raid 10 using mdadm and created tmpfs on /mnt/ramdisk and created a raw ramdisk.img ...
-1 votes
2 answers
816 views

Will any running process be killed if I free the swap memory from my Ubuntu server?

The question (title of this question) came into my thought for the below reason. If anyone gives a solution of that reason then I don't need to free the swap memory. The Reason: After installation ...
  • 101
4 votes
1 answer
137 views

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 ...
0 votes
0 answers
181 views

ZFS on ramdrive optimal settings

After failing to configure ZFS for file creation and deletion without subsequent disk IO (Ramdisk like ZFS behavior), I'm creating ZFS over ramdrive. What to do with compression (but that part I ...
  • 111
1 vote
1 answer
690 views

Ramdisk like ZFS behavior

Is it possible to configure ZFS to avoid ramdisk usage? In next scenario: create big file (100GB for example) or a lot of small files (there is much more free RAM than total file(s) size) delete ...
  • 111
0 votes
2 answers
689 views

Networked In-Memory FileSystem w/ zram + XFS + GlusterFS - Best Practices

A few months ago I used XFS formatted zram devices strung together with GlusterFS to create a distributed / networked / replicated in-memory filesystem on a few bare metal servers (running RHEL 7.2). ...
  • 1
1 vote
1 answer
622 views

SQL TempDB on RAMDisk or PCI-E?

I asked this question over at dba.stackexchange Since we have 800 GB of memory and databases are only ~250 GB, we're planning to put SQL server's tempdb files on RAMDisk by allocating 100GB to its ...
  • 191
1 vote
1 answer
828 views

Monitor ramdisk throughput

I was wondering if there was a tool available to monitor the current ramdisk throughput. I found that with sysstat, iostat, etc. I am only able to monitor the current throughtput of physical devices. ...
  • 111
2 votes
1 answer
641 views

low network performance between Citrix XenServer and Linux iSCSI storage

I have two SuperMicro servers directly connected (no switch) by two 10 GBit Intel X540-T2 NIC. One server runs Citrix XenServer 6.2, the other runs Debian 7. I then installed open-iscsi and ...
  • 1,336
0 votes
2 answers
169 views

Mysqld.exe RAM size increasing upto 130MB and performance is poor

I have deployed my application with java 8 and mysql server. While running mysqld.exe takes upto 130 MB of RAM size and it stops increasing. But after that my application's performance is very poor. ...
3 votes
1 answer
239 views

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 ...
  • 187
0 votes
1 answer
106 views

Improving high IOps Folder (Tomcat and Vmware)

Good day. We're moving a Tomcat from a physical server to one virtual Server. In the physical, and because the high IOps for the temp folder (¡developers!) we bought a Ramdisk software. My question ...
1 vote
1 answer
131 views

What is the purpose of a ramdisk when fadvise exists?

My understanding is that fadvise will tell the system that the indicated files should be stored in the file system cache (RAM). What is the purpose of mounting a directory in a ramdisk when you can ...
  • 133
0 votes
0 answers
1k views

Is it possible to place the system temp directory in a RAM disk?

The problem is that the system temp directory is required when machine installs updates first thing after a restart. My RAM disk, however, starts through HKLM\Software\Microsoft\Windows\CurrentVerison\...
  • 691
10 votes
1 answer
7k views

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 ...
  • 289
29 votes
4 answers
32k views

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 ...
7 votes
1 answer
2k views

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 ...
  • 71
1 vote
1 answer
309 views

Linux RAMFS grows. Does it also shrink?

The RAMFS file system automatically grows as much needed and as long as there is avaiable memory. Removing files from it makes it shrink or it remain at the same size?
0 votes
1 answer
153 views

What's the benefit of placing linux bin etc user on RamDisk?

I found that on my bluehost server, it places "bin", "etc", "usr", and "php" on a 4GB ramdisk. The ramdisk usage was changing very frequent and fast. It seems when I run PHP script, it load the data ...
  • 2,378
0 votes
1 answer
2k views

Getting the ramdisk id of an amazon elastic cloud storage?

I ran ec2-describe-instances, on which i got the output as INSTANCE i-14305121 ami-bf1d8a8f ec2-54-244-161-27.us-west-2.compute.amazonaws.com ip-10-244-164-7.us-west-2.compute.internal ...
0 votes
1 answer
4k views

Is there a way I can benchmark tmpfs

I created a tmpfs which was mounted at /ramdisk using the mount command.And I tried to benchmark this tmpfs using something like this: hdparm -tT /ramdisk And I was told that /ramdisk is a directory....
5 votes
4 answers
6k views

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 ...
2 votes
1 answer
878 views

ram disk mirroring part of physical disk

What I would like to do/have is: Some kind of application/driver that creates a RAM drive/partition that is actually assigned a drive letter (eg. D:). This drive letter should be based on/mirroring a ...
  • 137
0 votes
1 answer
4k views

ESXi Cannot boot to ramdisk: boot image is corrupted

I've got an ESXI that's been running for almost 3 years fine. Yesterday, I upgraded the machine's bios, installed RAM and 2 additional hard drives. Today I added a Windows VM and changed the Gateway, ...
-2 votes
3 answers
414 views

htdocs in RAM disk?

I was wondering the other day why wouldn't one place all the htdocs related files in a RAM disk. It seems to me, that this would greatly improve the time it takes for the disk to lookup and read ...
  • 2,683
7 votes
4 answers
2k views

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 ...
  • 231
6 votes
2 answers
20k views

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 ...
  • 413
1 vote
3 answers
6k views

Possible to set size of ram disk?

When I do yum install MAKEDEV MAKEDEV ram fdisk -l /dev/ram I get the that it is 16MB. I am using MAKEDEV to get a block-device instead of tmpfs. Question Is it possible to set it to e.g. 1GB?
  • 10k
3 votes
1 answer
3k views

Is it reasonable to make a RAID-1 array with a ram disk and a physical disk to maximize read performance and protect data?

In one of the answers on SO (I forgot which one) I've seen a suggestion to make a RAID-1 array composed of a RAM disk and a physical partition. By adding the physical partition with --write-mostly and ...
  • 511
1 vote
0 answers
415 views

Take existing linux install and make it pxeboot

Is there any way I can take an existing install of debian that I have on a usb drive and make it so I can pxeboot it as a ramdisk image? Almost everything I find online is about making a image boot ...
  • 19
3 votes
3 answers
1k views

failsafe RAM drive solution [closed]

I'm looking for a production solution to create a RAM drive that will be safely synchronized with HDD. I have a piece of custom software with heavy I/O load (this is some kind of proprietary document-...
1 vote
2 answers
5k views

Create a 2GB ram disk results in error

I'm trying to crete a ramdisk of 2gb in centOS 6.2 and the error I get is the following. Any help would be greatly appreciated. [root@ssb1 ~]# mkfs -q /dev/ram0 2147483648 mkfs.ext2: Filesystem ...
  • 2,871
3 votes
4 answers
4k views

Would a PHP application benefit from being served from a RAM drive?

I am in charge of hosting a PHP application that is large and slow, but easy to scale. The application is entirely static, with writable disk storage needed. We've profiled the application, and the ...
1 vote
1 answer
257 views

CentOS tmpfs mount doubling up?

Everytime I mount a ramdisk with the following command, I get two instead of one ramdisk? mount -t tmpfs -o size=1024M tmpfs /home/site/public_html/var/cache Mount shows no ramdisks mounted prior, ...
1 vote
1 answer
778 views

How to move linux executables to a ramdisk?

i've made a ramdisk this way: mkdir -p /media/ramdisk mount -t tmpfs -o size=512M tmpfs /media/ramdisk/ The reason for this is because i run a lot of node.js scripts and their execution time is very ...
  • 127
1 vote
2 answers
2k views

Is using a RAM Disk to serve IIS ASP.net beneficial on a VM Webserver?

Setup: Windows Server 2008 R2, Hosted on HyperV Virtual Machine allocated 3GB Memory. I've setup a RAMDisk (capacity of 512MB more than sufficient for our requirements) using ImDisk on this virtual ...
2 votes
3 answers
1k views

Limit RAM usage on Server 2008 R2 Standard 64 bit

We are assembling a new Server, using 32 GB RAM and Server 2008 R2 Standard. We like to test some kind of RAMDisk to decide whether we upgrade to Enterprise and add a lot of memory or not. Problem is,...
3 votes
1 answer
2k views

Create variable sized RAM-backed file systems (Ext4 and Btrfs)

For benchmarking purposes I need to format and mount variable sized ram-backed block devices with Ext4 and Btrfs. Unfortunately the only solution I have come across uses ramdisks which seem to be ...
1 vote
1 answer
439 views

FreeBSD VirtualBox disk performance using mdmfs

I am having some trouble with poor I/O running a Windows 7 VM on VirtualBox on FreeBSD 9.0. I would like to change my virtual disk type to immutable, and then change the location of the differencing ...
  • 247
1 vote
2 answers
3k views

best ramdisk without swap on linux?

I want a ramdisk on linux. There is ramfs and tmpfs. Tmpfs is what I want because it acts like a disk (size limits, etc.). However, it uses swap which means it may touch disk if it gets full. IF I ...
  • 113
1 vote
3 answers
3k views

How to avoid out-of-disk-space on ramdisk?

I am considering placing the tempdir of my MySQL database onto a ramdisk under Linux. The reason for this is to work around the 4 gb maximum of in-memory temporary tables in MySQL. My only worry is ...
  • 437
1 vote
2 answers
4k views

Can't create ramdisks of different size with module brd. (Linux)

I'm creating ram block devices on a linux machine for a project we're working on. I don't want to use tmpfs. When I use module brd to create a ramdisk I run the command modprobe brd rd_size=1048576 ...
2 votes
1 answer
392 views

Linux RAMDisk filesystem with blocking writes when filesystem is full

I need to set up a Linux RAMDisk to implement a queue. The basic idea is there will be processes writing to the RAMDisk. At the same time there are processes that watch for new files and read and ...
0 votes
1 answer
3k views

Why is RAM Disk so much faster than an SSD drive? [closed]

Why is RAM Disk so much faster than an SSD drive?
  • 165
3 votes
5 answers
4k views

Improving Exim performance: mounting message queue on RAMdisk

I have an email server that's part of a messaging application, and it's going to see a lot of throughput. I want to mount Exim's message queue on a RAMdisk to maximize performance; throughput speed ...
  • 41