linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Edward Shishkin <edward@namesys.com>
To: Jens Axboe <axboe@suse.de>
Cc: Hans Reiser <reiser@namesys.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Reiserfs mail-list <Reiserfs-List@namesys.com>
Subject: Re: random minor benchmark: Re: Copy 20 tarfiles: ext2 vs (reiser4, unixfile) vs (reiser4,cryptcompress)
Date: Thu, 26 Jan 2006 23:41:15 +0300	[thread overview]
Message-ID: <43D933EB.6080009@namesys.com> (raw)
In-Reply-To: <20060126185612.GM4311@suse.de>

Jens Axboe wrote:

>On Thu, Jan 26 2006, Edward Shishkin wrote:
>  
>
>>Jens Axboe wrote:
>>
>>    
>>
>>>On Wed, Jan 25 2006, Hans Reiser wrote:
>>>
>>>
>>>      
>>>
>>>>Notice how CPU speed (and number of cpus) completely determines
>>>>compression performance.
>>>>
>>>>cryptcompress refers to the reiser4 compression plugin, (unix file)
>>>>refers to the reiser4 non-compressing plugin.
>>>>
>>>>Edward Shishkin wrote:
>>>>
>>>>  
>>>>
>>>>        
>>>>
>>>>>Here are the tests that vs asked for:
>>>>>Creation (dd) of 20 tarfiles (the original 200M file is in ramfs)
>>>>>Kernel: 2.6.15-mm4 + current git snapshot of reiser4
>>>>>
>>>>>------------------------------------------
>>>>>
>>>>>Laputa workstation
>>>>>Uni Intel Pentium 4 (2.26 GHz) 512M RAM
>>>>>
>>>>>ext2:
>>>>>real 2m, 15s
>>>>>sys 0m, 14s
>>>>>
>>>>>reiser4(unix file)
>>>>>real 2m, 7s
>>>>>sys  0m, 23s
>>>>>
>>>>>reiser4(cryptcompress, lzo1, 64K)
>>>>>real 2m, 13s
>>>>>sys 0m, 11s
>>>>>    
>>>>>
>>>>>          
>>>>>
>>>Just curious - does your crypt plugin reside in user space?
>>>
>>>
>>>
>>>      
>>>
>>Nop.
>>This is just wrappers for linux crypto api, zlib, etc..
>>so user time is zero and not interesting.
>>    
>>
>
>Then why is the sys time lower than the "plain" writes on ext2 and
>reiser4? Surely compressing isn't for free, yet the sys time is lower on
>the compression write than the others.
>
>  
>

I guess this is because real compression is going in background
flush, not in sys_write->write_cryptcompress (which just copies
user's data to page cache). So in this case we have something
very similar to ext2. Reiser4 plain write (write_unix_file) is
more complex, and currently we try to reduce its sys time.

Edward.



  reply	other threads:[~2006-01-26 20:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <43D7C6BE.1010804@namesys.com>
2006-01-25 18:59 ` random minor benchmark: Re: Copy 20 tarfiles: ext2 vs (reiser4, unixfile) vs (reiser4,cryptcompress) Hans Reiser
2006-01-26 15:33   ` Jens Axboe
2006-01-26 18:17     ` Edward Shishkin
2006-01-26 18:56       ` Jens Axboe
2006-01-26 20:41         ` Edward Shishkin [this message]
2006-01-27  7:43           ` Hans Reiser
2006-01-27  8:09             ` Jens Axboe
2006-01-27  8:06           ` Jens Axboe
2006-01-27  8:14             ` Hans Reiser
2006-01-27  8:21               ` Jens Axboe
2006-01-27  8:41                 ` Hans Reiser
2006-01-28 16:53         ` Alexander Zarochentsev
2006-01-27  7:30     ` Hans Reiser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43D933EB.6080009@namesys.com \
    --to=edward@namesys.com \
    --cc=Reiserfs-List@namesys.com \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reiser@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).