Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX
systemd-zram-service
zramswapon
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zramswapon of Package systemd-zram-service
#!/bin/bash # get the amount of memory in the machine mem_total_kb=$(grep MemTotal /proc/meminfo | grep -E --only-matching '[[:digit:]]+') mem_total=$((mem_total_kb * 1024)) # load the dependency module modprobe zram # initialize the device with zstd compression algorithm echo zstd > /sys/block/zram0/comp_algorithm; echo $mem_total > /sys/block/zram0/disksize # Creating the swap filesystem mkswap /dev/zram0 # Switch the swaps on swapon -p 100 /dev/zram0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor