View previous topic :: View next topic |
Author |
Message |
barureddy n00b
Joined: 07 Oct 2003 Posts: 48
|
Posted: Fri Apr 11, 2008 3:56 am Post subject: UPX on Gentoo |
|
|
For those who do no know about upx, upx is a compressor of executable files that doesn't require any special software and works on the fly.
Does anyone have any experience of compressing all/some their programs with upx under linux/gentoo? |
|
Back to top |
|
|
MostAwesomeDude Guru
Joined: 12 Aug 2007 Posts: 373
|
Posted: Fri Apr 11, 2008 5:43 am Post subject: |
|
|
UPX works fine. You can emerge it:
Code: | # emerge -av app-arch/upx |
I don't recommend using it on the entire system; besides the obvious speed problems, I think that there are some programs that get upset if you UPX them. _________________ Don't believe the "n00b" under my name. |
|
Back to top |
|
|
barureddy n00b
Joined: 07 Oct 2003 Posts: 48
|
Posted: Sun Apr 13, 2008 5:40 pm Post subject: |
|
|
I was thinking of UPXing my entire system mostly due to my laptop's abysmal HD performance (nothing to do with linux, because it sucks in winxp too). I see this as a way my my system more responsive.
Does anyone have experience with doing this to their entire system? Additionally is there a list of programs that are not compatible well with upx? |
|
Back to top |
|
|
MostAwesomeDude Guru
Joined: 12 Aug 2007 Posts: 373
|
Posted: Sun Apr 13, 2008 6:46 pm Post subject: |
|
|
A couple searches suggest that nobody has been intrepid (or foolhardy) enough to attempt to UPX their entire system.
What's wrong with your laptop's hard drive? _________________ Don't believe the "n00b" under my name. |
|
Back to top |
|
|
nwmcsween n00b
Joined: 25 May 2007 Posts: 41
|
Posted: Sun Apr 13, 2008 7:17 pm Post subject: |
|
|
This is a bad idea since almost all hard drives have DMA access it goes from HDA-> Memory when you UPX it has to go through HDA -> Processor -> Memory _________________ Vanilla kernel without PITA |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1771 Location: PB, Germany
|
Posted: Wed Nov 21, 2012 1:31 pm Post subject: |
|
|
Interesting idea. At least Arch has this recommendation about their Firefox_Tweaks.
I have an idea of a UPX ebuild including some cronjob and configuration such as prelink (note that prelink doesn't work on UPX compressed files). There it would be possible to have a list of binaries such as firefox that should be re-compressed after updates, as well as excluding these from the prelink cronjob... _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
LiamOS n00b
Joined: 06 Jun 2012 Posts: 64 Location: Ireland
|
Posted: Wed Nov 21, 2012 5:46 pm Post subject: |
|
|
If you want to use compression, you could consider btrfs, as it compresses files on disk. I wouldn't expect it to be hugely effective, but it should give some improvement on larger binaries. _________________ CFLAGS=" -O999999" |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Thu Nov 22, 2012 12:38 am Post subject: |
|
|
You would probably have a more meaningful improvement by using squashfs + XZ + BCJ filters on /usr/{bin,lib} instead of either of those methods, since then your binaries would both be efficiently compressed (by an executable-specific compressor) and contiguous on disk. |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1771 Location: PB, Germany
|
Posted: Thu Nov 22, 2012 8:37 am Post subject: |
|
|
Yes, I already use squashfs in combination with aufs3 by mv's squash_dir scripts for portage, /var/db etc. for better performance.
But I did not think about using it for binaries. Maybe that would work and just needs to be re-squashed after updates. So I could just start and add /usr/lib64/firefox... _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
|