You are not logged in.

#1 2013-06-26 03:29:38

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Is it possible to compress /usr these days in Arch?

Between aufs2 not being in the kernel, and systemd, and the move to symlink /bin and /usr/bin, etc, is it possible to compress /usr?

I'd still like to do it if it is reasonably manageable to do. My hard drive and its slow speed is a cause of much angst for me.

Offline

#2 2013-06-26 03:33:42

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 3,495
Website

Re: Is it possible to compress /usr these days in Arch?

BtrFS can do compression on the fly. Do you mean like that?

Offline

#3 2013-06-26 04:12:02

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: Is it possible to compress /usr these days in Arch?

I mean even more compression. It's my understanding that btrfs compression is limited by the 4k block size, whereas the squashfs+aufs method can have large block sizes, and thus better compression.

Offline

#4 2013-06-26 04:12:07

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Is it possible to compress /usr these days in Arch?

@ drcouzelis- On the wiki there are old instructions on how to use a unionfs and squashfs as a way to make /usr writeable while taking advantage of everything else being expanded into memory from a squashfs.

Yes this is possible, but it would take a lot of work not only to get going, but also to maintain.  This is beause as you have already figured out, aufs2 is not in the kernel, but exists as a patchset.  There is a pf-kernel user repo though, and the pf patchset includes aufs2.  So I guess there is the possibility that it won't necessarily have to be as much a PITA to maintain as doing all of it manually.

Offline

#5 2013-06-26 14:02:32

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,095
Website

Re: Is it possible to compress /usr these days in Arch?

You'd need to write your own usr hook for the initramfs and possibly modify the shutdown script as well.

Why you'd want to do this is a mystery, though.

Offline

#6 2013-07-04 20:31:24

GI Jack
Member
Registered: 2010-12-29
Posts: 85

Re: Is it possible to compress /usr these days in Arch?

you can always use the aufs_friendly kernel in AUR, and aufs3, also in AUR.

why you'd want to or need to compress /usr in today's world is beyond me.

Offline

Board footer

Powered by FluxBB