LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to disable/turn-off "zram"
#1
Hi All,

Hoping this is the right section for this.?
I'm trying to find out how and where to disable "zram"
I have the following in dmesg.log file
Code:
zram: module is from the staging directory, the quality is unknown, you have been warned.
Disabling lock debugging due to kernel taint
zram: num_devices not specified. Using default: 1
zram: Creating 1 devices ...
udevd[115]: starting version 175
Adding 7946824k swap on /dev/zram0.  Priority:100 extents:1 across:7946824k SS

From what I have been able to deduce, it was included from 12.04LTS onwards.
By default it allocates 50% of available ram to a Ram Swap device, here is what I have:
Code:
wirezfree@asus-lili:~$ sudo blkid
[sudo] password for wirezfree:
/dev/zram0: UUID="ccba7a93-559d-4a53-99ae-8ad8cb2865e7" TYPE="swap"
/dev/sda1: LABEL="root" UUID="a1c54d22-71f7-442f-9637-61a1db3550a9" TYPE="ext4"
/dev/sda2: UUID="a94d69e0-65a6-4970-9008-e8096b885bac" TYPE="swap"
/dev/sdb1: LABEL="home" UUID="f3f71049-bef3-45d6-8140-e0b838ba6e89" TYPE="ext4"
/dev/sdb2: LABEL="myfiles" UUID="076d5297-3f91-49a1-bb56-e3c43aef6a60" TYPE="ext4"
/dev/sdb3: LABEL="winlin" UUID="791816BE35757417" TYPE="ntfs"
/dev/sdb4: LABEL="myvms" UUID="11b60602-5871-423e-a796-d5e615759d42" TYPE="ext4"
and
Code:
wirezfree@asus-lili:~$ cat /proc/swaps
Filename                Type        Size    Used    Priority
/dev/zram0                              partition    7946824    0    100
/dev/sda2                               partition    17612796    0    -1
wirezfree@asus-lili:~$

There is an additional configuration option available:
Code:
sudo apt-get install zram-config
Which is supposed to create "zram" device(s) based on number of cpu's & available memory.
However it got a bug...
https://bugs.launchpad.net/ubuntu/+sourc...bug/996535
and it fails, and produces this in dmesg.log
Code:
zram: module is from the staging directory, the quality is unknown, you have been warned.
Disabling lock debugging due to kernel taint
zram: num_devices not specified. Using default: 1
zram: Creating 1 devices ...
udevd[115]: starting version 175
Adding 7946824k swap on /dev/zram0.  Priority:100 extents:1 across:7946824k SS
Cannot change disksize for initialized device
init: zram-config pre-start process (1146) terminated with status 1

I have un-installed the "zram-config", and I'm back to the original situation

To verify that it's not a "fixed" feature I checked on another Ubuntu based distro on my Laptop, Zorin.
Code:
wirezfree@zorin-hp:~$ sudo blkid
[sudo] password for wirezfree:
/dev/sda1: UUID="a179c840-1bde-48c9-b11e-11a080929c55" TYPE="ext4"
/dev/sda2: UUID="76478879-9d5e-4194-999b-4f3162cd4a5d" TYPE="swap"
/dev/sda3: UUID="5e5fc6c6-fd93-4aa9-9f13-3ad2986bd892" TYPE="ext4"
and
Code:
wirezfree@zorin-hp:~$ cat /proc/swaps
Filename                Type        Size    Used    Priority
/dev/sda2                               partition    15722492    0    -1
wirezfree@zorin-hp:~$

There is no base "zram" devices enabled, and no "zram" entries showing in dmesg.log

So how can I turn off the base "zram" configuration in LinuxLite..??

Many Thanks... David
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks Smile

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
Reply
#2
to turn off or remove zram go to Light Tweaks. it's at the bottom. i turned mine off because it slowed my system to a crawl.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)