Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755264AbXEYCiv (ORCPT ); Thu, 24 May 2007 22:38:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751843AbXEYCim (ORCPT ); Thu, 24 May 2007 22:38:42 -0400 Received: from nz-out-0506.google.com ([64.233.162.229]:63488 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751323AbXEYCil (ORCPT ); Thu, 24 May 2007 22:38:41 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=J6z9H7co6n0n4PkKaspLnNKiiioq/9mBJII4ht1GbEI2+LZaNqh+m0WQ9hQDhjIzG4GRNGcJsuCDxZqPGCvljbSsBteGuFFkxcuiQVM+uhsc6PtikQshNjGiejQuQSSmEFqn3bvm0/YphiM5tIUi72nlI1edJWUYwScxgcYzXvI= Message-ID: Date: Thu, 24 May 2007 19:38:40 -0700 From: "Bret Towe" To: "Nitin Gupta" Subject: Re: [RFC] LZO de/compression support - take 3 Cc: linux-kernel@vger.kernel.org, "Richard Purdie" , linux-mm-cc@laptop.org, "Satyam Sharma" In-Reply-To: <4cefeab80705240648k2f3c22ddw13374c9d6b2f521a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4cefeab80705230127r58e8f9e1sa644092e95eb81eb@mail.gmail.com> <4cefeab80705240648k2f3c22ddw13374c9d6b2f521a@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1776 Lines: 51 On 5/24/07, Nitin Gupta wrote: > On 5/23/07, Bret Towe wrote: > > On 5/23/07, Nitin Gupta 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 module against 2.6.22-rc2 with this LZO patch. Then > testing can be done as: > 1- Mount DebugFS somewhere e.g: > mkdir /debug; mount -t debugfs debugfs /debug > 2- Load the module and do: > cat /path/to/some_file > /debug/compress_test/compress > (/var/log/messages should show that compression was successful) > 3- Then decompress this file as: > cat /debug/compress_test/decompress > /tmp/t > (/var/log/messages should show that decompression was successful) > 4- For extra verification do: > diff /tmp/t /path/to/some_file -- O/P must be empty > > > Thanks! > Nitin > > the test worked fine on amd64 from dmesg: LZO compress successful: orig_size=17448, comp_size=8183 LZO decompress successful: decomp_size=17448 and input and output files I gave it: sha1sum test-input output 2221c586e3eb869af7f4333d4f56b441b9aa8414 test-input 2221c586e3eb869af7f4333d4f56b441b9aa8414 output (will be giving the ppc box the same file to test btw when I get to it) and I don't know if it matters much but I tried feeding it a 260k file and it didn't like it cat /usr/bin/yelp > /debug/compress_test/compress cat: write error: No space left on device - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/