1 |
On 2017-05-24 19:05, Kai Krakow wrote: |
2 |
|
3 |
> To get in line with Rich Freeman: I didn't want to imply that zswap |
4 |
> only works with swap, neither that tmpfs only works with swap. Both |
5 |
> work without. But if you want to put some serious amount of data into |
6 |
> tmpfs, you need swap as a backing device sooner or later. |
7 |
|
8 |
Looking at zswap, I have several questions |
9 |
(even after reading linux/Documentation/vm/zswap.txt). |
10 |
|
11 |
1. How does it know which swap device to use as backing store, if any? |
12 |
Clearly at boot time no swap configuration exists, even if |
13 |
initrd/initramfs is used, which here it is not. So when the kernel sees |
14 |
zswap.enable=1 in the command line, what happens? |
15 |
|
16 |
2. The doc says it can be turned on at runtime by means of |
17 |
/sys/module/zswap/parameters/enabled. But kconfig doesn't make it |
18 |
possible to build the support as a module, only built-in, and so it is |
19 |
not surprising that this path doesn't exist. |
20 |
|
21 |
3. It seems to require zbud to also be turned on, but this is not |
22 |
enforced by kconfig. Is this a bug or what? |
23 |
|
24 |
4. Quoting: |
25 |
|
26 |
Zswap seeks to be simple in its policies. Sysfs attributes allow for one user |
27 |
controlled policy: |
28 |
* max_pool_percent - The maximum percentage of memory that the compressed |
29 |
pool can occupy. |
30 |
|
31 |
Does this mean this is another (hypothetical) node in |
32 |
/sys/module/zswap/parameters/ ? |
33 |
|
34 |
-- |
35 |
Please *no* private Cc: on mailing lists and newsgroups |
36 |
Personal signed mail: please _encrypt_ and sign |
37 |
Don't clear-text sign: |
38 |
http://primate.net/~itz/blog/the-problem-with-gpg-signatures.html |