Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Sep 2014, 06:07
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
When to compress with upx?
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Wed 29 Jun 2005, 18:51    Post subject:  When to compress with upx?  

upx does a great job at compressing executables but I'm not 100% sure in what situations it is appropriate to use it.
If everything in /usr is part of a cram_fs filesystem then it's probably not worth compressing any executable in /usr right?

Is everything else not compressed? so should everything in /bin, /sbin be compressed?

If something is on a compressed filesystem (in the cram_fs), using upx will only slow the program down right? (since it needs uncompressed before running, no matter how fast that is).

Are there other instances when using upx is not appropriate, like maybe something that needs to be ran often so it would get loaded and decompressed a lot? (would a upx'ed application that is called 4 times in a row be decompressed 4 times or would it somehow be cached?)

what about stuff in /root? (like my-applications)

I want to make the most of my available space (disk and RAM)

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Thu 30 Jun 2005, 12:40    Post subject:  

Yes, you can compress executables in /bin and /sbin, but they're all pretty small in there anyway. The only reason I have done it is because the initial ramdisk size was chosen to be 11264K, as small as possible.

But /usr is of course separate, already compressed.

/root is also separate, usually, as it is the pupxxx file mounted on /root -- and that it initially 256M.
You can compress executables in /root, but if it is on hard drive, it's easy enough to increase the size of the pupxxx file.
Flash memory is a different story, as there is usually much more limited space.

Regarding slowdown of upx compressed files, it is only at startup, and I can't see any difference, but then I've only tried upx on very small apps so far.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0422s ][ Queries: 12 (0.0056s) ][ GZIP on ]