Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zram script
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vinícius Fontoura
zram script
Commits
f368fb2b
Commit
f368fb2b
authored
2 years ago
by
Vinícius Fontoura
Browse files
Options
Downloads
Patches
Plain Diff
added log_path
parent
a9fddc92
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
get_free_ram.sh
+3
-0
3 additions, 0 deletions
get_free_ram.sh
get_ram_speed.sh
+4
-0
4 additions, 0 deletions
get_ram_speed.sh
with
7 additions
and
0 deletions
get_free_ram.sh
0 → 100755
+
3
−
0
View file @
f368fb2b
#!/bin/bash
LOG_PATH
=
$1
free |
awk
'NR==2 {print $4}'
>>
$LOG_PATH
\ No newline at end of file
This diff is collapsed.
Click to expand it.
get_ram_speed.sh
0 → 100755
+
4
−
0
View file @
f368fb2b
#!/bin/bash
LOG_PATH
=
$1
sysbench
--test
=
memory
--num-threads
=
1 run
>
$LOG_PATH
cat
$LOG_PATH
|
grep
Total
\
operations: |
awk
'{print $4}'
|
cut
-c2-
>>
$LOG_PATH
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment