On Mon, 8 Dec 2014 11:36:47 +0100 Karel Zak <kzak@xxxxxxxxxx> wrote: > On Tue, Nov 25, 2014 at 09:03:20PM +0100, Juan Orti wrote: > > Hi, I know how to manually configure the zram, but what's the best > > way to do it? > > > > I've seen the unit zram.service of anaconda-core, and it gets > > activated when booting with inst.zram=on, but it looks like very > > anaconda-centric. > > > > Should something like [1] be packaged and included in the distro? or > > maybe we should spin off the anaconda zram.service and do it more > > generic. > > > > I think this is a very interesting feature for memory constrained > > VMs and other devices. > > > > [1] https://github.com/mystilleef/FedoraZram > > > BTW, util-linux v2.26 (f22) is going to contain new command zramctl(8) > > Karel > > > $ zramctl --help > > Usage: > lt-zramctl [options] <device> > lt-zramctl -r <device> [...] > lt-zramctl [options] -f | <device> -s <size> > > Options: > -a, --algorithm lzo|lz4 compression algorithm to use can this work with HW accelerated compressors like the one in IBM Power CPUs? See eg. https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/W51a7ffcf4dfd_4b40_9d82_446ebc23c550/page/Build%20F17%20with%20Memory%20Compression Dan > -b, --bytes print sizes in bytes rather than in human > readable format -f, --find find a free device > -n, --noheadings don't print headings > -o, --output <list> columns to use for status output > --raw use raw status output format > -r, --reset reset all specified devices > -s, --size <size> device size > -t, --streams <number> number of compression streams > > -h, --help display this help and exit > -V, --version output version information and exit > > Available columns (for --output): > NAME zram device name > DISKSIZE limit on the uncompressed amount of data > DATA uncompressed size of stored data > COMPR compressed size of stored data > ALGORITHM the selected compression algorithm > STREAMS number of concurrent compress operations > ZERO-PAGES empty pages with no allocated memory > TOTAL all memory including allocator fragmentation and > metadata overhead MOUNTPOINT where the device is mounted > > For more details see zramctl(8). > > > > -- > Karel Zak <kzak@xxxxxxxxxx> > http://karelzak.blogspot.com > -- > devel mailing list > devel@xxxxxxxxxxxxxxxxxxxxxxx > https://admin.fedoraproject.org/mailman/listinfo/devel > Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct