Add compcache modules, allowing ubiquity installs on 256MB machines.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Baltix |
Invalid
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Andy Whitcroft |
Bug Description
The attached debdiff adds the compcache module. This module creates a swap device that stores swapped out pages in memory compressed using lzo. This greatly reduces the amount of memory required by the LiveCD before the physical swap file is created.
I have tested ubiquity+gnome installs with 180MB and 120MB of ram on 7.10 [k]ubuntu and xubuntu respectively. By comparison 7.10 Ubuntu boots but is unusable with 192MB of ram.
It appears that with compcache the ubiquity-only install in hardy will still function with only 256 MB of ram.
Overview of testing: I have tested this with
- [kx]ubuntu-7.10 and ubuntu-hardy alpha 4 and Mar 08 daily build.
- VirtualBox, Qemu [smp,nosmp], native DualCore, native P4
- 120MB through 1GB of ram.
- token testing with ia64 (but have not enabled ia64 in this patch)
- have tested that Ubuntu does not try to hibernate onto compcache partition (by default, you could probably edit text files to do this if you really wanted to shoot yourself in the foot.).
The only negative I found with compcache-0.2 is that the mouse appears more jerky under heavy load than when physical swap is used. I have provided demo patchs against gusty liveCDs at:
http://
I have build the arch using
fakeroot debian/rules binary-arch arch=i386 flavours="generic"
as suggested in debian/rules. It generates the deb fine. (also, "pbuilder build" completed successfully)
I installed the deb without any problems, and am using it now. No packages currently depend on compcache, so they cannot be broken.
Two problems that are easily worked around
1) that ubiquity tries to install onto the compcache device (on the demo cd I rename the device), and
2) compcache uses kernel memory, which is limited to 1GB on i386. To ensure we don't run out, I limit the compcache size to under 200MB so less than 100MB of kernel memory is used. (The compression ratio for the liveCD seems to be robustly 2:1).
See also
bug 193552 "Support 256MB machines in Ubiquity"
bug 200418 "Memory usage increase in LiveCD"
https:/
https:/
https:/
These currently allow.
This replaces
debian/changelog | 9
debian/config/i386 | 3
ubuntu/Makefile | 2
ubuntu/
ubuntu/
ubuntu/
ubuntu/misc/config | 2
ubuntu/misc/tlsf.c | 669 +++++++
ubuntu/misc/tlsf.h | 93 ++++++
ubuntu/
10 files changed, 1568 insertions(+)
ProblemType: Bug
Architecture: i386
Date: Mon Mar 10 16:49:01 2008
DistroRelease: Ubuntu 8.04
Package: linux-ubuntu-
PackageArchitec
SourcePackage: linux-ubuntu-
Uname: Linux 2.6.24-12-generic i686
description: | updated |
Changed in linux-ubuntu-modules-2.6.24: | |
assignee: | nobody → ubuntu-kernel-team |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in linux-ubuntu-modules-2.6.24: | |
milestone: | none → later |
BTW, compcache is not loaded by default, so the initscript that loads it is responsible for the workarounds above. see: www.ucc. asn.au/ ~mccabedj/ ccache/ patch_livecd. tar.bz2 filestoadd/ etc/init. d/compcache)
http://
(newroot/
for an example initscript. With this proper deb, the insmod-ing nastyness of the initscript is unnecessary. A simply "modprobe compcache" will do.