Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UPX on Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
barureddy
n00b
n00b


Joined: 07 Oct 2003
Posts: 48

PostPosted: Fri Apr 11, 2008 3:56 am    Post subject: UPX on Gentoo Reply with quote

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
View user's profile Send private message
MostAwesomeDude
Guru
Guru


Joined: 12 Aug 2007
Posts: 373

PostPosted: Fri Apr 11, 2008 5:43 am    Post subject: Reply with quote

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
View user's profile Send private message
barureddy
n00b
n00b


Joined: 07 Oct 2003
Posts: 48

PostPosted: Sun Apr 13, 2008 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
MostAwesomeDude
Guru
Guru


Joined: 12 Aug 2007
Posts: 373

PostPosted: Sun Apr 13, 2008 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
nwmcsween
n00b
n00b


Joined: 25 May 2007
Posts: 41

PostPosted: Sun Apr 13, 2008 7:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1209
Location: PB, Germany

PostPosted: Wed Nov 21, 2012 1:31 pm    Post subject: Reply with quote

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...
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G | amd64:Acer Z5610 (Core2QuadQ8200),i5-3470 | amd64-prefix:OpenSuse | Lila-Theme
Back to top
View user's profile Send private message
LiamOS
n00b
n00b


Joined: 06 Jun 2012
Posts: 56
Location: Kerry/Dublin, Ireland

PostPosted: Wed Nov 21, 2012 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2363
Location: UK

PostPosted: Thu Nov 22, 2012 12:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1209
Location: PB, Germany

PostPosted: Thu Nov 22, 2012 8:37 am    Post subject: Reply with quote

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...
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G | amd64:Acer Z5610 (Core2QuadQ8200),i5-3470 | amd64-prefix:OpenSuse | Lila-Theme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum