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 Wed 06 May 2015, 23:38
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 Posts_count  
Author Message

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 
Puppy Master

Joined: 09 May 2005
Posts: 7438
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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
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 attach files in this forum
You can download files in this forum

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