File: flashcache.markdown

package info (click to toggle)
flashcache 3.1.3%2Bgit20150701-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,116 kB
  • ctags: 1,310
  • sloc: ansic: 9,797; sh: 403; perl: 329; makefile: 201
file content (69 lines) | stat: -rw-r--r-- 2,092 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
% FLASHCACHE(7) flashcache
%
% September 2011

# NAME

flashcache - overview of operation

# SYNOPSIS

modprobe flashcache

Flashcache consists of a kernel module and userspace utilities. The module is
named "flashcache". The kernel module can be controlled with *flashcache_create*(8),
*flashcache_load*(8) and *flashcache_destroy*(8) utilities.


# DESCRIPTION

Flashcache is a block cache for Linux, built as a kernel module,
using the device mapper. Flashcache supports **writeback**, **writethrough** and
**writearound** caching modes. See *flashcache_create*(8) for a description
of caching modes.

Flascache allows one to use a fast block device such as Solid State Drives (SSD)
as cache to accelerate a slower drive used as backstore. 

Originally, Flashcache was built as a block device cache for I/O intensive
database applications, for example to run an accelerated InnoDB store for
*mysqld*(8), but it can be used as general purpose backend for filesystems as
well.


# USAGE

Before using Flashcache, it might be a good idea to check if device mapper works
properly. Assuming the partition /dev/md0p1 shall be used as flash cache, one
may try to create a linear device with following command:

**echo 0 1024 linear /dev/md0p1 0 | dmsetup create tmpdisk**

It this works, *flashcache_create* should be able to create its device.

Remove tmpdisk with command:

**dmsetup remove tmpdisk**

Before creating a flashcache device using the *flashcache_create* command, the
deivce must not be mounted.


# SEE ALSO

`flashcache_create`(8), `flashcache_load`(8), `flashcache_destroy`(8)

*README* and other documents in **/usr/share/doc/flashcache-utils**. In
particular, see **flashcache-sa-guide.txt** for configuring the flashcache
kernel module through its */proc* interface.

The flashcache source code and all documentation may be downloaded from
<https://github.com/facebook/flashcache/>.


# AUTHORS

Flashcache is developed by Mohan Srinivasan <mohan@fb.com>

This man page was written by Dmitry Smirnov <onlyjob@member.fsf.org>
for Debian GNU/Linux (but may be used by others).