[BusyBox] LZMA (Patches for busybox and buildroot)

Arkadiusz Patyk areq at areq.eu.org
Sat Jun 11 17:30:14 UTC 2005


On Thu, 5 May 2005 12:43:07 +0200, you wrote:

>I am crossposting this and not putting it on the bug tracking (yet) as
>this is more or less a "total package" for both busybox and buildroot.
>
>I have added lzma support to both. It has saved me quite alot of space
>since it has the best compression I have seen so far. The downside of
>lzma (of which we have added to) is that there seems to be no real
>standard on how the files are made which makes the different utils
>incompatible with eachother.

I try lzmacat - works.
but memory usage is disqualification ;(

121M    live.tar
35M     live.tar.lzma
 
./lzmacat live.tar.lzma > live2.tar

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
13730 areq      25   0  157m 133m 1804 R 99.9  5.2   0:09.79 lzmacat


open("live.tar.lzma", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=36077622, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40017000
fstat64(4, {st_mode=S_IFREG|0644, st_size=36077622, ...}) = 0
_llseek(4, 36077568, [36077568], SEEK_SET) = 0
read(4, "%\nQ.8\366\34\254\321u*\315r\35\367!\260\337\363uxuUc\3"...,
54) = 54
mmap2(NULL, 36081664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40160000
_llseek(4, 0, [0], SEEK_SET)            = 0
read(4, "]\0\0\200\0\0P\200\7\0\0\0\0\0006\32K2\341Pj\301\17\242"...,
4096) = 4096
read(4, "O\375\373\326\22O\37\234\203\315u{\261\265\322\270\372"...,
36073472) = 36073472
read(4, "%\nQ.8\366\34\254\321u*\315r\35\367!\260\337\363uxuUc\3"...,
4096) = 54
close(4)                                = 0
munmap(0x40017000, 4096)                = 0
brk(0x8203000)                          = 0x8203000
mmap2(NULL, 125853696, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x423c9000
fstat64(1, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x49bcf000
write(1, "live/\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
125849600) = 125849600

-- 
Arkadiusz Patyk [areq(at)pld-linux.org] [http://rescuecd.pld-linux.org/]
[IRC:areq ICQ:16231667  GG:1383]  [AP3-6BONE] [AP14126-RIPE]



More information about the busybox mailing list