Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zram
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
zram
Commits
93fa8c61
Commit
93fa8c61
authored
May 26, 2020
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default swap should be 66% of physical RAM
parent
1ec87215
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
zram
zram
+2
-4
zramstart
zramstart
+1
-1
No files found.
zram
View file @
93fa8c61
# The factor is how much (from 0 to 100, percentage)
# The factor is RAM/swap ratio (from 0 to 100, percentage)
# of system RAM to allocate to ZRAM block devices
FACTOR=66
# Too big, and your system will start killing off processes
FACTOR=33
zramstart
View file @
93fa8c61
#!/bin/sh
#!/bin/sh
FACTOR
=
33
FACTOR
=
66
[
-f
/etc/sysconfig/zram
]
&&
source
/etc/sysconfig/zram
||
true
[
-f
/etc/sysconfig/zram
]
&&
source
/etc/sysconfig/zram
||
true
factor
=
$FACTOR
# percentage
factor
=
$FACTOR
# percentage
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment