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
85c8c598
Commit
85c8c598
authored
May 26, 2020
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zramstat is redundant - we have zramctl
parent
5d3f3f96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
Makefile
Makefile
+0
-1
zramstat
zramstat
+0
-13
No files found.
Makefile
View file @
85c8c598
all
:
install
-m
0755 zramstart /usr/sbin
install
-m
0755 zramstop /usr/sbin
install
-m
0755 zramstat /usr/sbin
install
-m
0644 mkzram.service /lib/systemd/system
install
-m
0644 zram /etc/sysconfig
zramstat
deleted
100755 → 0
View file @
5d3f3f96
#!/bin/sh
ls
/sys/block/zram
*
>
/dev/null 2>&1
||
exit
0
for
i
in
/sys/block/zram
*
;
do
compr
=
$(
<
$i
/compr_data_size
)
orig
=
$(
<
$i
/orig_data_size
)
ratio
=
0
if
[
$compr
-gt
0
]
;
then
ratio
=
$(
echo
"scale=2;
$orig
*100/
$compr
"
| bc
-q
)
fi
echo
-e
"/dev/
${
i
/*\/
}
:
\t
$ratio
% (
$orig
->
$compr
)"
done
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