wiki:krg_tmpfs
close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_repos.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.

Version 5 (modified by rock, 18 years ago) (diff)

--

Use RAM in Kerrighed (tmpfs)

1. Introduction

Because Kerrighed can merge all client RAM (like shared memory architecture). So we can use partial RAM to be fast disk. We use tmpfs to accomplish.


2. Check our RAM size

$ top
Each node has 2G, we have 7 nodes. Total RAM size is 14G.


2. Use RAM in Kerrighed

We use 7g RAM to be disk.
$ mount -t tmpfs /home/ram -o size=7g
$ dd if=/dev/zero of=/home/ram/tmp_3g.img   bs=1m count=3000
$ dd if=/dev/zero of=/home/ram/tmp_3g.img2  bs=1m count=3000


3. Check RAM status

$ df -h

$ mount | grep /home/ram



Attachments (3)

Download all attachments as: .zip