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
0 votes
1 answer
270 views

freeze on "Loading initial ramdisk" debian 9

I have a functional debian 9 (kernel 4.9.0-19-amd64) on an old pc, I made an image of this debian with clonezilla and I put it on a newer pc... I know it's bad ^^ My concern is that when I boot ...
ArnOCP's user avatar
  • 11
0 votes
1 answer
122 views

Creating a ramdisk with lvmvdo persistent across reboot?

I am trying to create a persistent ramdisk with lvmvdo with the below unit file but it does not seem to work.I have not added the --type vdo option to the lvcreate command yet ( this is for RHEL9 ) [...
munish's user avatar
  • 151
14 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 ...
Shayne Fitzgerald's user avatar
1 vote
0 answers
909 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 ...
Hannes's user avatar
  • 307
0 votes
0 answers
56 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 ?
Macsurf's user avatar
  • 41
0 votes
0 answers
43 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 ...
jbbletterman's user avatar
1 vote
0 answers
489 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 ...
Gediz GÜRSU's user avatar
-1 votes
2 answers
1k 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 ...
Shamim's user avatar
  • 101
4 votes
1 answer
181 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 ...
GreyStone's user avatar
0 votes
0 answers
215 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 ...
ISanych's user avatar
  • 111
1 vote
1 answer
750 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 ...
ISanych's user avatar
  • 111
0 votes
2 answers
762 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). ...
Victor's user avatar
  • 1
1 vote
1 answer
695 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 ...
d-_-b's user avatar
  • 191
1 vote
1 answer
892 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. ...
fasseg's user avatar
  • 111
2 votes
1 answer
735 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 ...
nn4l's user avatar
  • 1,336
0 votes
2 answers
211 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. ...
user_1992's user avatar
3 votes
1 answer
246 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 ...
MWB's user avatar
  • 187
0 votes
1 answer
110 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 ...
Carlos Garcia's user avatar
1 vote
1 answer
147 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 ...
Philip's user avatar
  • 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\...
mark's user avatar
  • 745
11 votes
1 answer
8k 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 ...
jaYPabs's user avatar
  • 299
32 votes
4 answers
34k 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 ...
Ivan Kovacevic's user avatar
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 ...
marcap's user avatar
  • 71
1 vote
1 answer
351 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?
Vinícius Gobbo A. de Oliveira's user avatar
0 votes
1 answer
164 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 ...
garconcn's user avatar
  • 2,408
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 ...
kenzo450D's user avatar
0 votes
1 answer
5k 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....
Steven Jang's user avatar
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 ...
mramirez's user avatar
2 votes
1 answer
939 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 ...
nl-x's user avatar
  • 147
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, ...
EfficionDave's user avatar
-2 votes
3 answers
416 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 ...
Alix Axel's user avatar
  • 2,813
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 ...
StCee's user avatar
  • 241
6 votes
2 answers
21k 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 ...
Pelang's user avatar
  • 413
1 vote
3 answers
7k 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?
Sandra's user avatar
  • 10.4k
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 ...
Petr's user avatar
  • 613
1 vote
0 answers
431 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 ...
NoName's user avatar
  • 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-...
user1450663's user avatar
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 ...
egorgry's user avatar
  • 2,901
3 votes
4 answers
5k 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 ...
Tom Marthenal's user avatar
1 vote
1 answer
263 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, ...
cappuccino's user avatar
1 vote
1 answer
822 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 ...
alfa64's user avatar
  • 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 ...
killercowuk's user avatar
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,...
helpless's user avatar
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 ...
Noah Watkins's user avatar
1 vote
1 answer
449 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 ...
javanix's user avatar
  • 247
2 votes
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 ...
drudru's user avatar
  • 123
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 ...
David's user avatar
  • 447
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 ...
loosebazooka's user avatar
2 votes
1 answer
461 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 ...
Juan Carlos Petruzza's user avatar
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?
RBZ's user avatar
  • 165