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 17 Sep 2014, 05:38
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
mksquashfs with lowest compression for speed
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
Peterm321

Joined: 29 Jan 2009
Posts: 228

PostPosted: Mon 07 Oct 2013, 21:29    Post subject:  mksquashfs with lowest compression for speed  

I am attaching this build of mksquashfs as I have found it rather useful.

Apologies in advance if this idea has already been posted someplace else.

In a nutshell this is a fairly recent version of mksquashfs compiled without lzma support, but with the gzip compression level set to 1 rather than the default 9. Being set at compression level 1 has enhanced the speed at a small (around 5% typically) penalty in terms of squash file system size.

If, like me, you use mksquashfs quite a lot to back up a ext2/4 partition and/or to remaster the squashed filesystems on Live CD ISOs you may find the speed enhancement worth it particularly on a slower machine.
mksquashfs.zip
Description 
zip

 Download 
Filename  mksquashfs.zip 
Filesize  61.09 KB 
Downloaded  210 Time(s) 
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8252

PostPosted: Sat 15 Feb 2014, 09:11    Post subject:  

Interesting indeed. Lxma can be disabled on the command line (or the one from slax does at least) but there is no control of gzip compression level... one that perhaps would be a nice feature but I will save that for the squashfs site unless its being added as we type. Smile

I get segmentation fault on our pentium 3's so would want to compile for older cpu.

Would you mind posting the config used and/or the hack to create this

thank you

mike
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8252

PostPosted: Sat 15 Feb 2014, 10:24    Post subject:  

Ok I found it.....

built on a pentium 3 machine on puppy 4.12 ...so good for older stuff... of course newer kernels needed to use the resultant files.

the change is in gzip_wrapper.c

line 41
res = deflateInit(stream, 1);

was 9 before

mike
mksquashfs-fast-oldcpu.tar.gz
Description 
gz

 Download 
Filename  mksquashfs-fast-oldcpu.tar.gz 
Filesize  49.28 KB 
Downloaded  95 Time(s) 
Back to top
View user's profile Send private message 
Peterm321

Joined: 29 Jan 2009
Posts: 228

PostPosted: Sat 15 Feb 2014, 17:50    Post subject:  

I compiled my version on a Pentium 4 class machine so there may be issues on earlier Pentiums and/or early versions of Puppy with older glibc.

I suppose an alteration could be made to provide a command line option to set the compression level but as level 1 is the level I prefer both for mksquashfs and the zip command line program I didnt try this.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8252

PostPosted: Sat 15 Feb 2014, 19:49    Post subject:  

Its a nice hack...and as you mention makes only a small size penalty for subtantial speed increase. I suspect reading is faster too.

This mod is more popular than the thread suggests...quite a few of us have taken an interest...thanks for submitting.

I am looking at trying it with my sfs save method which at the moment uses no compression for speed reasons.

mike
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2326
Location: Heart of Texas

PostPosted: Sat 15 Feb 2014, 21:52    Post subject:  

where is source.. would like to make 64bit..
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8252

PostPosted: Sun 16 Feb 2014, 06:59    Post subject:  

http://squashfs.sourceforge.net/

info and links... just grab the latest release.

mike
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2326
Location: Heart of Texas

PostPosted: Tue 18 Feb 2014, 23:06    Post subject:  

lol only half a meg to download source feel so foolish.. on to compile this for 64bit.

then to rip that slow multisession package to a speedly tests... Have fatdog on the table prepped for surgery.. Very Happy
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2326
Location: Heart of Texas

PostPosted: Tue 18 Feb 2014, 23:09    Post subject:  

need to save this

usr sbin fatdog

remaster 423 439

multisession 87 96

split initrd 98 119
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.0602s ][ Queries: 13 (0.0049s) ][ GZIP on ]