Questions tagged [tmpfs]

69 questions
2
votes
2 answers

start mysql service after syncing data dir to tmpfs

hej there! I'm maintaining a network of 8 Pandaboards. One of them is acting as server to host a php-based browser game, others are clients running that game. The server runs Debian Wheezy from SD card, which is pretty slow. To improve game…
ronso0
  • 33
  • 3
2
votes
3 answers

tmpfs - auto create whole path when write to file

I have mounted tmpfs .e.g. /tmspfs/cache As we expect, so after restart server is ram empty and all content from mount is away. It is ok. But I have in my system some full path e.g. /tmpfs/cache/user1/file - error is /tmpfs/cache/user1/ is not…
Pavel
  • 417
  • 1
  • 7
  • 17
2
votes
1 answer

Is there anything wrong with making your documentroot tmpfs, if you've got the ram to spare?

As the title says, it strikes me that if I have an old mason webapp which is basically a few hundred perl scripts and components on disk, would it not run quicker if I made the documentroot a tmpfs? I know mason does some caching, but there's little…
pacifist
  • 181
  • 6
2
votes
1 answer

Speeding up page load times by using tmpfs

I have a Wordpress site which uses a file cache to store various object information. Now I would like the time to access the data in the cache to be much shorter, and I have heard various people on the net suggesting that it would be a good idea to…
Tola Odejayi
  • 334
  • 1
  • 4
  • 19
2
votes
2 answers

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 don't have swap turned on, will it still work? I…
drudru
  • 123
  • 1
  • 5
2
votes
1 answer

memcached vs. tmpfs

Are there any advantages of using memcached locally over using a mounted tmpfs? Maybe, when the memory-caching system resides on the same host, it's better to use file hierarchy on tmpfs which gives the ability to use standard system API and…
kolypto
  • 11,058
  • 12
  • 54
  • 66
1
vote
0 answers

How can I measure RAM/tmpfs IOPS from a specific application?

I am running a hadoop-based application (hadoop 1.2.1), where I had discovered a hard-disk bottleneck; monitoring the hard disk IOPS with iotop resulted in ~160 MB/sec, which was the writing speed I was getting by benchmarking the disk with…
Adama
  • 111
  • 4
1
vote
1 answer

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. What I'm looking for is a tool which generates an…
fasseg
  • 111
  • 3
1
vote
0 answers

Linux - set tmpfs ram size rather than overall size

I have the following setup on my server: 16G RAM 64G swap I want to setup a tmpfs partition with the following options: use up to 50% RAM (8G) have the total size of tmpfs 8G + swap size = 72G In other words, I want the first 8G of data in tmpfs…
Karolis
  • 169
  • 2
  • 7
1
vote
1 answer

How to prevent tmpfs /tmp causing machine to run out of memory?

I have a virtual server (Debian 8.5, OpenVZ) that seems to run out of memory* when tmpfs-based /tmp is about 60% full. (* while the system reports 2GB of memory still free, processes start to behave erratically, /tmp writes fail with ENOSPC, forking…
Kornel
  • 1,105
  • 1
  • 11
  • 16
1
vote
0 answers

FastCGI and tmpfs

I read some articles about using tmpfs for /tmp and PHP sessions directories for better performance, and it sounds interesting. I'm using Centos 6 server with LAMP stack (+FastCGI) and in my fcgid.conf I can see two configurations that are…
Rotem
  • 147
  • 1
  • 14
1
vote
0 answers

How to properly automount tmpfs inside encrypted home folder on login?

I have a user with encrypted home folder which is automounted on login with pam_ecryptfs module. I would also like to have several folders automounted as tmpfs using local configuration file from luserconf entry, but it seems that…
dannote
  • 11
  • 1
  • 2
1
vote
1 answer

Re-ocurring issue with keys on temp tables

We run a large forum with lots of reads and writes, particularly to the posts and topics tables which are both innodb. Last week I started doing 12 hourly backups with innobackupex because mysqldump just takes forever (7+ million rows in posts…
Christian
  • 789
  • 1
  • 13
  • 31
1
vote
0 answers

MySQL binlog rsync from tmpfs to HDD causes write slowdown on ramdisk

I have a mysql database server and am testing writing my binlogs to ramdisk to speed some things up. A curious thing happens.. fairly often, I get major job slowdown at the same time the rsync is happening. Updates that take almost zero seconds…
T. B.
  • 323
  • 1
  • 2
  • 8
1
vote
2 answers

Creating tmpfs file system in xen server to store VM

i want to create a tmpfs file system for one of my vm to run on,using XEN Server. On the host machine i tried this but is not working,. xe sr-create device-config:device=/dev/shm name-label="RAM" type=tmpfs Is it possible to make a tmpfs file…
Kevin Parker
  • 757
  • 1
  • 13
  • 32