Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Bret Towe
On 5/26/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: Hi Bret, On 5/25/07, Bret Towe <[EMAIL PROTECTED]> wrote: > > [ 237.556167] LZO compress successful: orig_size=17448, comp_size=8183 > [ 253.320760] LZO decompress successful: decomp_size=17448 > > 2221c586e3eb869af7f4333d4f56b441b9aa8414

Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Nitin Gupta
Hi Bret, On 5/25/07, Bret Towe <[EMAIL PROTECTED]> wrote: [ 237.556167] LZO compress successful: orig_size=17448, comp_size=8183 [ 253.320760] LZO decompress successful: decomp_size=17448 2221c586e3eb869af7f4333d4f56b441b9aa8414 test-input 2e6c96b687274b629308b29835cebd3af989e0c7 output

Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Nitin Gupta
Hi Pavel, Just did some benchmarking; results below. On 5/25/07, Pavel Machek <[EMAIL PROTECTED]> wrote: What is the performance difference between safe and unsafe version? File size: 256K - Following as tests for original test code - not any kernel port of this. - Test with each block

Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Michael-Luke Jones
On 25 May 2007, at 11:42, Pavel Machek wrote: What is the performance difference between safe and unsafe version? On 24 May 2007, at 23:26, Richard Purdie wrote: For my minilzo kernel patch, the safe version showed a 7.2% performance hit. The conclusion seemed to be that we should drop

Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Pavel Machek
Hi! > Perhaps you have opinion of maintaining diffability with > original LZO > code which differs from mine. Since the code is now just > ~500 lines it > should be fair enough to have major overhauls for sake > of clean > KernelStyle(tm) code. It shouldn't be that hard to > verify this small

Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Pavel Machek
Hi! Perhaps you have opinion of maintaining diffability with original LZO code which differs from mine. Since the code is now just ~500 lines it should be fair enough to have major overhauls for sake of clean KernelStyle(tm) code. It shouldn't be that hard to verify this small code

Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Michael-Luke Jones
On 25 May 2007, at 11:42, Pavel Machek wrote: What is the performance difference between safe and unsafe version? On 24 May 2007, at 23:26, Richard Purdie wrote: For my minilzo kernel patch, the safe version showed a 7.2% performance hit. The conclusion seemed to be that we should drop

Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Nitin Gupta
Hi Pavel, Just did some benchmarking; results below. On 5/25/07, Pavel Machek [EMAIL PROTECTED] wrote: What is the performance difference between safe and unsafe version? File size: 256K - Following as tests for original test code - not any kernel port of this. - Test with each block size

Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Nitin Gupta
Hi Bret, On 5/25/07, Bret Towe [EMAIL PROTECTED] wrote: [ 237.556167] LZO compress successful: orig_size=17448, comp_size=8183 [ 253.320760] LZO decompress successful: decomp_size=17448 2221c586e3eb869af7f4333d4f56b441b9aa8414 test-input 2e6c96b687274b629308b29835cebd3af989e0c7 output

Re: [RFC] LZO de/compression support - take 3

2007-05-26 Thread Bret Towe
On 5/26/07, Nitin Gupta [EMAIL PROTECTED] wrote: Hi Bret, On 5/25/07, Bret Towe [EMAIL PROTECTED] wrote: [ 237.556167] LZO compress successful: orig_size=17448, comp_size=8183 [ 253.320760] LZO decompress successful: decomp_size=17448 2221c586e3eb869af7f4333d4f56b441b9aa8414 test-input

Re: [RFC] LZO de/compression support - take 3

2007-05-25 Thread Nitin Gupta
On 5/25/07, Bret Towe <[EMAIL PROTECTED]> wrote: On 5/24/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > On 5/25/07, Bret Towe <[EMAIL PROTECTED]> wrote: > > On 5/24/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > > > On 5/23/07, Bret Towe <[EMAIL PROTECTED]> wrote: > > > > On 5/23/07, Nitin Gupta

Re: [RFC] LZO de/compression support - take 3

2007-05-25 Thread Bret Towe
On 5/24/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: On 5/25/07, Bret Towe <[EMAIL PROTECTED]> wrote: > On 5/24/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > > On 5/23/07, Bret Towe <[EMAIL PROTECTED]> wrote: > > > On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > > > > > > For now, tested on

Re: [RFC] LZO de/compression support - take 3

2007-05-25 Thread Bret Towe
On 5/24/07, Nitin Gupta [EMAIL PROTECTED] wrote: On 5/25/07, Bret Towe [EMAIL PROTECTED] wrote: On 5/24/07, Nitin Gupta [EMAIL PROTECTED] wrote: On 5/23/07, Bret Towe [EMAIL PROTECTED] wrote: On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: For now, tested on x86 only. If you

Re: [RFC] LZO de/compression support - take 3

2007-05-25 Thread Nitin Gupta
On 5/25/07, Bret Towe [EMAIL PROTECTED] wrote: On 5/24/07, Nitin Gupta [EMAIL PROTECTED] wrote: On 5/25/07, Bret Towe [EMAIL PROTECTED] wrote: On 5/24/07, Nitin Gupta [EMAIL PROTECTED] wrote: On 5/23/07, Bret Towe [EMAIL PROTECTED] wrote: On 5/23/07, Nitin Gupta [EMAIL PROTECTED]

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Nitin Gupta
On 5/25/07, Bret Towe <[EMAIL PROTECTED]> wrote: On 5/24/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > On 5/23/07, Bret Towe <[EMAIL PROTECTED]> wrote: > > On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > > > > For now, tested on x86 only. > > > > If you have a program to test this I can run

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Bret Towe
On 5/24/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: On 5/23/07, Bret Towe <[EMAIL PROTECTED]> wrote: > On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > > For now, tested on x86 only. > > If you have a program to test this I can run it on an amd64 and a g4 ppc > Attached is the kernel module

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Richard Purdie
On Thu, 2007-05-24 at 15:54 -0700, Andrew Morton wrote: > On Thu, 24 May 2007 23:41:22 +0100 > Richard Purdie <[EMAIL PROTECTED]> wrote: > > > I'll not send a "rename to unsafe" patch for the LZO core until Andrew > > decides whether to drop the unsafe version entirely or not as per your > >

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Andrew Morton
On Thu, 24 May 2007 23:41:22 +0100 Richard Purdie <[EMAIL PROTECTED]> wrote: > I'll not send a "rename to unsafe" patch for the LZO core until Andrew > decides whether to drop the unsafe version entirely or not as per your > patch. If he doesn't due to the potential use by the compressed cache >

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Richard Purdie
On Wed, 2007-05-23 at 15:33 +0100, Michael-Luke Jones wrote: > On 23 May 2007, at 15:21, Nitin Gupta wrote: > > > If somebody is up to including compression he must be having head > > to use the right > > decompress version depending on this scenario :-) > > By that logic, experienced kernel

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Satyam Sharma
On 5/24/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: [...] > > > diff --git a/lib/lzo1x/lzo1x_int.h b/lib/lzo1x/lzo1x_int.h > > > [...] > > > +/* Macros for 'safe' decompression */ > > > +#ifdef LZO1X_DECOMPRESS_SAFE > > > + > > > +#define lzo1x_decompress lzo1x_decompress_safe > > > +#define

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Satyam Sharma
On 5/24/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: On 5/24/07, Satyam Sharma <[EMAIL PROTECTED]> wrote: > Hmm. The wrappers would clearly be inline, but if we want a common > low-level decompress function, we'd also need to introduce the "if (safe &&)" > kind of tests for those

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Nitin Gupta
On 5/24/07, Satyam Sharma <[EMAIL PROTECTED]> wrote: Hmm. The wrappers would clearly be inline, but if we want a common low-level decompress function, we'd also need to introduce the "if (safe &&)" kind of tests for those differently-defined macros which could impact performance (for the _unsafe

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Nitin Gupta
On 5/24/07, Richard Purdie <[EMAIL PROTECTED]> wrote: On Thu, 2007-05-24 at 01:04 +0530, Satyam Sharma wrote: > On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: I remember this being mentioned. My answer was that this is the same behaviour as the zlib library and you do not want to

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Nitin Gupta
On 5/23/07, Bret Towe <[EMAIL PROTECTED]> wrote: On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > For now, tested on x86 only. If you have a program to test this I can run it on an amd64 and a g4 ppc Attached is the kernel module (compress-test) to test this LZO code. Just compile

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Satyam Sharma
Hi Richard, On 5/24/07, Richard Purdie <[EMAIL PROTECTED]> wrote: On Thu, 2007-05-24 at 01:04 +0530, Satyam Sharma wrote: > On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > > [...] > > +/* Macros for 'safe' decompression */ > > +#ifdef LZO1X_DECOMPRESS_SAFE > > + > > +#define

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Satyam Sharma
On 5/24/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: On 5/24/07, Satyam Sharma <[EMAIL PROTECTED]> wrote: > [...] > Just defining and exporting LZO1X_WORKMEM_SIZE may not be enough > to guarantee that users _will_ pass in workmem of size exactly that much. > > If this workmem is really merely a

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Richard Purdie
On Thu, 2007-05-24 at 01:04 +0530, Satyam Sharma wrote: > On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > > diff --git a/include/linux/lzo1x.h b/include/linux/lzo1x.h > > [...] > > +/* Size of temp buffer (workmem) required by lzo1x_compress */ > > +#define LZO1X_WORKMEM_SIZE ((size_t)

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Richard Purdie
On Thu, 2007-05-24 at 01:04 +0530, Satyam Sharma wrote: On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: diff --git a/include/linux/lzo1x.h b/include/linux/lzo1x.h [...] +/* Size of temp buffer (workmem) required by lzo1x_compress */ +#define LZO1X_WORKMEM_SIZE ((size_t) (16384L *

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Satyam Sharma
On 5/24/07, Nitin Gupta [EMAIL PROTECTED] wrote: On 5/24/07, Satyam Sharma [EMAIL PROTECTED] wrote: [...] Just defining and exporting LZO1X_WORKMEM_SIZE may not be enough to guarantee that users _will_ pass in workmem of size exactly that much. If this workmem is really merely a temp buffer

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Satyam Sharma
Hi Richard, On 5/24/07, Richard Purdie [EMAIL PROTECTED] wrote: On Thu, 2007-05-24 at 01:04 +0530, Satyam Sharma wrote: On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: [...] +/* Macros for 'safe' decompression */ +#ifdef LZO1X_DECOMPRESS_SAFE + +#define lzo1x_decompress

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Nitin Gupta
On 5/23/07, Bret Towe [EMAIL PROTECTED] wrote: On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: For now, tested on x86 only. If you have a program to test this I can run it on an amd64 and a g4 ppc Attached is the kernel module (compress-test) to test this LZO code. Just compile this

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Nitin Gupta
On 5/24/07, Richard Purdie [EMAIL PROTECTED] wrote: On Thu, 2007-05-24 at 01:04 +0530, Satyam Sharma wrote: On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: snip I remember this being mentioned. My answer was that this is the same behaviour as the zlib library and you do not want to

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Nitin Gupta
On 5/24/07, Satyam Sharma [EMAIL PROTECTED] wrote: Hmm. The wrappers would clearly be inline, but if we want a common low-level decompress function, we'd also need to introduce the if (safe ) kind of tests for those differently-defined macros which could impact performance (for the _unsafe

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Satyam Sharma
On 5/24/07, Nitin Gupta [EMAIL PROTECTED] wrote: On 5/24/07, Satyam Sharma [EMAIL PROTECTED] wrote: Hmm. The wrappers would clearly be inline, but if we want a common low-level decompress function, we'd also need to introduce the if (safe ) kind of tests for those differently-defined macros

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Satyam Sharma
On 5/24/07, Nitin Gupta [EMAIL PROTECTED] wrote: [...] diff --git a/lib/lzo1x/lzo1x_int.h b/lib/lzo1x/lzo1x_int.h [...] +/* Macros for 'safe' decompression */ +#ifdef LZO1X_DECOMPRESS_SAFE + +#define lzo1x_decompress lzo1x_decompress_safe +#define TEST_IP(ip ip_end)

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Richard Purdie
On Wed, 2007-05-23 at 15:33 +0100, Michael-Luke Jones wrote: On 23 May 2007, at 15:21, Nitin Gupta wrote: If somebody is up to including compression he must be having head to use the right decompress version depending on this scenario :-) By that logic, experienced kernel dev Richard

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Richard Purdie
On Thu, 2007-05-24 at 15:54 -0700, Andrew Morton wrote: On Thu, 24 May 2007 23:41:22 +0100 Richard Purdie [EMAIL PROTECTED] wrote: I'll not send a rename to unsafe patch for the LZO core until Andrew decides whether to drop the unsafe version entirely or not as per your patch. If he

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Andrew Morton
On Thu, 24 May 2007 23:41:22 +0100 Richard Purdie [EMAIL PROTECTED] wrote: I'll not send a rename to unsafe patch for the LZO core until Andrew decides whether to drop the unsafe version entirely or not as per your patch. If he doesn't due to the potential use by the compressed cache people,

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Bret Towe
On 5/24/07, Nitin Gupta [EMAIL PROTECTED] wrote: On 5/23/07, Bret Towe [EMAIL PROTECTED] wrote: On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: For now, tested on x86 only. If you have a program to test this I can run it on an amd64 and a g4 ppc Attached is the kernel module

Re: [RFC] LZO de/compression support - take 3

2007-05-24 Thread Nitin Gupta
On 5/25/07, Bret Towe [EMAIL PROTECTED] wrote: On 5/24/07, Nitin Gupta [EMAIL PROTECTED] wrote: On 5/23/07, Bret Towe [EMAIL PROTECTED] wrote: On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: For now, tested on x86 only. If you have a program to test this I can run it on an amd64 and

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
Hi Satyam, Thanks for you comments. On 5/24/07, Satyam Sharma <[EMAIL PROTECTED]> wrote: On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: > diff --git a/include/linux/lzo1x.h b/include/linux/lzo1x.h > [...] > +/* Size of temp buffer (workmem) required by lzo1x_compress */ > +#define

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
On 5/23/07, Richard Purdie <[EMAIL PROTECTED]> wrote: On Wed, 2007-05-23 at 09:16 -0700, Andrew Morton wrote: > On Wed, 23 May 2007 19:51:44 +0530 "Nitin Gupta" <[EMAIL PROTECTED]> wrote: > > On 5/23/07, Michael-Luke Jones <[EMAIL PROTECTED]> wrote: > If so, it was quite inappropriate that a

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Satyam Sharma
Hi Nitin, On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: [...] diff --git a/Makefile b/Makefile index 34210af..88053ba 100644 --- a/Makefile +++ b/Makefile @@ -826,11 +826,18 @@ include/config/kernel.release: include/config/auto.conf FORCE # Listed in dependency order PHONY += prepare

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Richard Purdie
On Wed, 2007-05-23 at 09:16 -0700, Andrew Morton wrote: > On Wed, 23 May 2007 19:51:44 +0530 "Nitin Gupta" <[EMAIL PROTECTED]> wrote: > > On 5/23/07, Michael-Luke Jones <[EMAIL PROTECTED]> wrote: > > If I rename 'nonsafe' version as such then it will seem like its a > > 'broken' implementation

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Andrew Morton
On Wed, 23 May 2007 19:51:44 +0530 "Nitin Gupta" <[EMAIL PROTECTED]> wrote: > On 5/23/07, Michael-Luke Jones <[EMAIL PROTECTED]> wrote: > > On 23 May 2007, at 15:03, Nitin Gupta wrote: > > > > >> Perhaps a rename is in order: > > >> lzo1x_decompress() => lzo1x_decompress_unsafe() > > >>

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Bret Towe
On 5/23/07, Nitin Gupta <[EMAIL PROTECTED]> wrote: Hi, This contains LZO1X-1 compressor and LZO1X decompressor (safe and standard version). This includes changes suggested by various people - Thanks to all who reviewed previous patches for this LZO port. Changelog vs original LZO 2.02 code: -

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Michael-Luke Jones
On 23 May 2007, at 15:21, Nitin Gupta wrote: If somebody is up to including compression he must be having head to use the right decompress version depending on this scenario :-) By that logic, experienced kernel dev Richard Purdie is not up to using compression (?!) To me, it looks like

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
On 5/23/07, Michael-Luke Jones <[EMAIL PROTECTED]> wrote: On 23 May 2007, at 15:03, Nitin Gupta wrote: >> Perhaps a rename is in order: >> lzo1x_decompress() => lzo1x_decompress_unsafe() >> lzo1x_decompress_safe => lzo1x_decompress() > > Or perhaps make reiserfs use _safe() instead - I think

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Michael-Luke Jones
On 23 May 2007, at 15:03, Nitin Gupta wrote: Perhaps a rename is in order: lzo1x_decompress() => lzo1x_decompress_unsafe() lzo1x_decompress_safe => lzo1x_decompress() Or perhaps make reiserfs use _safe() instead - I think Richard has already submitted patch for same. If someone's already

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
On 5/23/07, Michael-Luke Jones <[EMAIL PROTECTED]> wrote: Fair enough. However, this rather important issue is pretty much undocumented (source code comments don't count) If header file for public interface ( documents about 'unsafe' vs. 'safe' then it should be enough. and Reiser4 is

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Michael-Luke Jones
On 23 May 2007, at 12:39, Nitin Gupta wrote: Hi Michael, On 5/23/07, Michael-Luke Jones <[EMAIL PROTECTED]> wrote: I understand that the 'safe' decompression code is 'somewhat slower' and that decompressor performance is a key feature of this algorithm. However, I am concerned about the

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
Hi Michael, On 5/23/07, Michael-Luke Jones <[EMAIL PROTECTED]> wrote: On 23 May 2007, at 09:27, Nitin Gupta wrote: > This contains LZO1X-1 compressor and LZO1X decompressor (safe and > standard version). I understand that the 'safe' decompression code is 'somewhat slower' and that

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Michael-Luke Jones
On 23 May 2007, at 09:27, Nitin Gupta wrote: This contains LZO1X-1 compressor and LZO1X decompressor (safe and standard version). I understand that the 'safe' decompression code is 'somewhat slower' and that decompressor performance is a key feature of this algorithm. However, I am

[RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
Hi, This contains LZO1X-1 compressor and LZO1X decompressor (safe and standard version). This includes changes suggested by various people - Thanks to all who reviewed previous patches for this LZO port. Changelog vs original LZO 2.02 code: - Chopped down huge parts of original code that were

[RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
Hi, This contains LZO1X-1 compressor and LZO1X decompressor (safe and standard version). This includes changes suggested by various people - Thanks to all who reviewed previous patches for this LZO port. Changelog vs original LZO 2.02 code: - Chopped down huge parts of original code that were

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Michael-Luke Jones
On 23 May 2007, at 09:27, Nitin Gupta wrote: This contains LZO1X-1 compressor and LZO1X decompressor (safe and standard version). I understand that the 'safe' decompression code is 'somewhat slower' and that decompressor performance is a key feature of this algorithm. However, I am

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
Hi Michael, On 5/23/07, Michael-Luke Jones [EMAIL PROTECTED] wrote: On 23 May 2007, at 09:27, Nitin Gupta wrote: This contains LZO1X-1 compressor and LZO1X decompressor (safe and standard version). I understand that the 'safe' decompression code is 'somewhat slower' and that decompressor

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Michael-Luke Jones
On 23 May 2007, at 12:39, Nitin Gupta wrote: Hi Michael, On 5/23/07, Michael-Luke Jones [EMAIL PROTECTED] wrote: I understand that the 'safe' decompression code is 'somewhat slower' and that decompressor performance is a key feature of this algorithm. However, I am concerned about the safety

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
On 5/23/07, Michael-Luke Jones [EMAIL PROTECTED] wrote: Fair enough. However, this rather important issue is pretty much undocumented (source code comments don't count) If header file for public interface (linux/lzo1x.h documents about 'unsafe' vs. 'safe' then it should be enough. and

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Michael-Luke Jones
On 23 May 2007, at 15:03, Nitin Gupta wrote: Perhaps a rename is in order: lzo1x_decompress() = lzo1x_decompress_unsafe() lzo1x_decompress_safe = lzo1x_decompress() Or perhaps make reiserfs use _safe() instead - I think Richard has already submitted patch for same. If someone's already made

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
On 5/23/07, Michael-Luke Jones [EMAIL PROTECTED] wrote: On 23 May 2007, at 15:03, Nitin Gupta wrote: Perhaps a rename is in order: lzo1x_decompress() = lzo1x_decompress_unsafe() lzo1x_decompress_safe = lzo1x_decompress() Or perhaps make reiserfs use _safe() instead - I think Richard has

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Michael-Luke Jones
On 23 May 2007, at 15:21, Nitin Gupta wrote: If somebody is up to including compression he must be having head to use the right decompress version depending on this scenario :-) By that logic, experienced kernel dev Richard Purdie is not up to using compression (?!) To me, it looks like

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Bret Towe
On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: Hi, This contains LZO1X-1 compressor and LZO1X decompressor (safe and standard version). This includes changes suggested by various people - Thanks to all who reviewed previous patches for this LZO port. Changelog vs original LZO 2.02 code: -

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Andrew Morton
On Wed, 23 May 2007 19:51:44 +0530 Nitin Gupta [EMAIL PROTECTED] wrote: On 5/23/07, Michael-Luke Jones [EMAIL PROTECTED] wrote: On 23 May 2007, at 15:03, Nitin Gupta wrote: Perhaps a rename is in order: lzo1x_decompress() = lzo1x_decompress_unsafe() lzo1x_decompress_safe =

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Richard Purdie
On Wed, 2007-05-23 at 09:16 -0700, Andrew Morton wrote: On Wed, 23 May 2007 19:51:44 +0530 Nitin Gupta [EMAIL PROTECTED] wrote: On 5/23/07, Michael-Luke Jones [EMAIL PROTECTED] wrote: If I rename 'nonsafe' version as such then it will seem like its a 'broken' implementation which is not the

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Satyam Sharma
Hi Nitin, On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: [...] diff --git a/Makefile b/Makefile index 34210af..88053ba 100644 --- a/Makefile +++ b/Makefile @@ -826,11 +826,18 @@ include/config/kernel.release: include/config/auto.conf FORCE # Listed in dependency order PHONY += prepare

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
On 5/23/07, Richard Purdie [EMAIL PROTECTED] wrote: On Wed, 2007-05-23 at 09:16 -0700, Andrew Morton wrote: On Wed, 23 May 2007 19:51:44 +0530 Nitin Gupta [EMAIL PROTECTED] wrote: On 5/23/07, Michael-Luke Jones [EMAIL PROTECTED] wrote: If so, it was quite inappropriate that a filesystem be

Re: [RFC] LZO de/compression support - take 3

2007-05-23 Thread Nitin Gupta
Hi Satyam, Thanks for you comments. On 5/24/07, Satyam Sharma [EMAIL PROTECTED] wrote: On 5/23/07, Nitin Gupta [EMAIL PROTECTED] wrote: diff --git a/include/linux/lzo1x.h b/include/linux/lzo1x.h [...] +/* Size of temp buffer (workmem) required by lzo1x_compress */ +#define