mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Compression algorithm in cloop
@ 2004-08-11 16:45 Phillip Lougher
  2004-08-11 17:21 ` Grzegorz Kulewski
  2004-08-11 17:58 ` Lei Yang
  0 siblings, 2 replies; 7+ messages in thread
From: Phillip Lougher @ 2004-08-11 16:45 UTC (permalink / raw)
  To: leiyang; +Cc: linux-kernel

 > Hello,
 >
 > I am trying to do some experiment on compression ratios with cloop. I
 > know that currently cloop uses zlib. How can I change it to other
 > algorithms?

Changing the algorithm from gzip is going to be probably unpopular.
Cloop uses the gzip deflate library inside the kernel shared by a
large number of other programs.  To change the algorithm you'll have
to add more (private) decompression code to the kernel.  This is a retrograde
step because the shared library was only introduced in 2.4.17 to avoid lots
of private copies of gzip.

 > Where should I start from? Really a newbie to this,
 > appreciate any comments and suggestions!!

There has been discussion on this list before about adding
bzip2 support to the kernel.  Do a search on the list for this.

Regards

Phillip


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compression algorithm in cloop
  2004-08-11 17:21 ` Grzegorz Kulewski
@ 2004-08-11 17:19   ` Randy.Dunlap
  0 siblings, 0 replies; 7+ messages in thread
From: Randy.Dunlap @ 2004-08-11 17:19 UTC (permalink / raw)
  To: Grzegorz Kulewski; +Cc: phillip, leiyang, linux-kernel

On Wed, 11 Aug 2004 19:21:50 +0200 (CEST) Grzegorz Kulewski wrote:

| On Wed, 11 Aug 2004, Phillip Lougher wrote:
| 
| >> Where should I start from? Really a newbie to this,
| >> appreciate any comments and suggestions!!
| >
| > There has been discussion on this list before about adding
| > bzip2 support to the kernel.  Do a search on the list for this.
| 
| Long, long ago there was something called e2compr. They had bzip2 in the 
| kernel. I remember 40 seconds mc start time on disk compressed with bzip2 
| on i486-DX 40 MHz... :-)

still at
  http://e2compr.sourceforge.net/

--
~Randy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compression algorithm in cloop
  2004-08-11 16:45 Compression algorithm in cloop Phillip Lougher
@ 2004-08-11 17:21 ` Grzegorz Kulewski
  2004-08-11 17:19   ` Randy.Dunlap
  2004-08-11 17:58 ` Lei Yang
  1 sibling, 1 reply; 7+ messages in thread
From: Grzegorz Kulewski @ 2004-08-11 17:21 UTC (permalink / raw)
  To: Phillip Lougher; +Cc: leiyang, linux-kernel

On Wed, 11 Aug 2004, Phillip Lougher wrote:

>> Where should I start from? Really a newbie to this,
>> appreciate any comments and suggestions!!
>
> There has been discussion on this list before about adding
> bzip2 support to the kernel.  Do a search on the list for this.

Long, long ago there was something called e2compr. They had bzip2 in the 
kernel. I remember 40 seconds mc start time on disk compressed with bzip2 
on i486-DX 40 MHz... :-)


Grzegorz Kulewski


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compression algorithm in cloop
  2004-08-11 16:45 Compression algorithm in cloop Phillip Lougher
  2004-08-11 17:21 ` Grzegorz Kulewski
@ 2004-08-11 17:58 ` Lei Yang
  2004-08-11 18:24   ` Paulo Marques
  1 sibling, 1 reply; 7+ messages in thread
From: Lei Yang @ 2004-08-11 17:58 UTC (permalink / raw)
  To: Phillip Lougher; +Cc: linux-kernel


If I don't want to build a new compression library and port it to 
kernel, all I want to do is to try out the idea -- whether it could work 
on cloop, whether the compression ratio is acceptable, can I just change 
the cloop code? In other words, I just need a loopback block device with 
other compression scheme.

I know that adding the new algorithm support to kernel would be standard 
way to do this and would be helpful to more people, it's just that I 
don't have that time :(

Phillip Lougher wrote:
>  > Hello,
>  >
>  > I am trying to do some experiment on compression ratios with cloop. I
>  > know that currently cloop uses zlib. How can I change it to other
>  > algorithms?
> 
> Changing the algorithm from gzip is going to be probably unpopular.
> Cloop uses the gzip deflate library inside the kernel shared by a
> large number of other programs.  To change the algorithm you'll have
> to add more (private) decompression code to the kernel.  This is a 
> retrograde
> step because the shared library was only introduced in 2.4.17 to avoid lots
> of private copies of gzip.
> 
>  > Where should I start from? Really a newbie to this,
>  > appreciate any comments and suggestions!!
> 
> There has been discussion on this list before about adding
> bzip2 support to the kernel.  Do a search on the list for this.
> 
> Regards
> 
> Phillip
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compression algorithm in cloop
  2004-08-11 17:58 ` Lei Yang
@ 2004-08-11 18:24   ` Paulo Marques
  0 siblings, 0 replies; 7+ messages in thread
From: Paulo Marques @ 2004-08-11 18:24 UTC (permalink / raw)
  To: Lei Yang; +Cc: Phillip Lougher, linux-kernel

Lei Yang wrote:
> 
> If I don't want to build a new compression library and port it to 
> kernel, all I want to do is to try out the idea -- whether it could work 
> on cloop, whether the compression ratio is acceptable, can I just change 
> the cloop code? In other words, I just need a loopback block device with 
> other compression scheme.

If you just want to try out some wacky ideas, I suggest you take a look 
at the network block device.

It is a block device that sends all read/write requests through a socket 
  so that this requests can be fulfilled by a user space deamon.

This is not very good in terms of performance, but it is much easier to 
develop this kind of thing in userspace, without all the stack / memory 
/ atomicity / concurrency problems :)

-- 
Paulo Marques - www.grupopie.com
"In a world without walls and fences who needs windows and gates?"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compression algorithm in cloop
       [not found] ` <411A50CD.3070908@gentoo.org>
@ 2004-08-11 17:19   ` Lei Yang
  0 siblings, 0 replies; 7+ messages in thread
From: Lei Yang @ 2004-08-11 17:19 UTC (permalink / raw)
  To: Luca Barbato; +Cc: linux-kernel

Great! That certainly should help!

The problem is, how can I put the algorithm in the kernel? Is there a 
forum or mailing list for this kind of work?

Thanks!
Lei

Luca Barbato wrote:
> Lei Yang wrote:
> 
>> Hello,
>>
>> I am trying to do some experiment on compression ratios with cloop. I 
>> know that currently cloop uses zlib. How can I change it to other 
>> algorithms? Where should I start from? Really a newbie to this, 
>> appreciate any comments!!
>>
>> TIA.
>> Lei
>>
> I made a variation from cloop called gcloop it could use any algorithm 
> you can put in the kernel (I use an hack to use ucl right now)
> 
> You can find it at dev.gentoo.org/~lu_zero/gcloop
> 
> I hope it helps.
> 
> lu
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Compression algorithm in cloop
@ 2004-08-11 15:43 Lei Yang
  0 siblings, 0 replies; 7+ messages in thread
From: Lei Yang @ 2004-08-11 15:43 UTC (permalink / raw)
  To: linux-kernel, Kernel Newbies Mailing List

Hello,

I am trying to do some experiment on compression ratios with cloop. I 
know that currently cloop uses zlib. How can I change it to other 
algorithms? Where should I start from? Really a newbie to this, 
appreciate any comments and suggestions!!

TIA.
Lei

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-08-11 18:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-11 16:45 Compression algorithm in cloop Phillip Lougher
2004-08-11 17:21 ` Grzegorz Kulewski
2004-08-11 17:19   ` Randy.Dunlap
2004-08-11 17:58 ` Lei Yang
2004-08-11 18:24   ` Paulo Marques
     [not found] <411A348D.9070808@nec-labs.com>
     [not found] ` <411A50CD.3070908@gentoo.org>
2004-08-11 17:19   ` Lei Yang
  -- strict thread matches above, loose matches on Subject: below --
2004-08-11 15:43 Lei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome