forked from mystilleef/FedoraZram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
72 lines (47 loc) · 1.57 KB
/
Copy pathREADME
File metadata and controls
72 lines (47 loc) · 1.57 KB
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
70
71
72
zram for Fedora
===============
zram compresses swap partitions into RAM for performance.
You need Linux kernel version 2.6.37.1 or better to use
zram.
Automated Install
-----------------
sudo make install
sudo systemctl daemon-reload
systemctl enable zram.service
systemctl start zram.service
Manual Install
--------------
There are 3 files you need to enable zram for Fedora. They
are:
- zramstart
- zramstop
- zram.service
All these files can be found in the project folder.
Place "zramstart" and "zramstop" in the following folder.
/usr/local/sbin
Place "zram.service" in the following folder.
/etc/systemd/system
Place "zram" in the following folder.
/etc/default
As root, run the following command to enable zram for
Fedora.
systemctl daemon-reload
systemctl enable zram.service
systemctl start zram.service
Run the following command to make sure the service started
properly.
systemctl status zram.service
The output should look like this.
zram.service - Enable compressed swap in memory using zram
Loaded: loaded (/etc/systemd/system/zram.service; enabled)
Active: active (exited) since Sun, 02 Oct 2011 22:46:31 -0400; 44min ago
Process: 942 ExecStart=/usr/local/sbin/zramstart (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/zram.service
That's it!
Credits:
The zramstart and zramstop scripts were written by Sergey
Davidoff of Elementary OS.
References:
http://www.webupd8.org/2011/10/increased-performance-in-linux-with.html
http://code.google.com/p/compcache
http://weirdfellow.wordpress.com/2011/05/04/compressed-ram-with-zram/