Skip to contentSkip to conversation

a 15 GB file on tmpfs

DISCUSSION Andrew Burgess 1 participant 1 message Jul 21, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Bastiaan Naber

I have a 15 GB file which I want to place in memory via tmpfs. I want to do this because I need to have this data accessible with a very low seek time.

You don't want tmpfs. You want either (1) ramfs and copy the data once at boot time or (2) any filesystem and mmap and lock which will read the data every time your app starts.

Tmpfs is backed by swap so other system activity will potentially cause some of the file to go to swap which kills your latency spec.

HTH