public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marc-Christian Petersen <m.c.p@wolk-project.de>
To: Hans Reiser <reiser@namesys.com>
Cc: Nikita Danilov <Nikita@namesys.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH]: reiser4 [0/8] overview
Date: Fri, 1 Nov 2002 22:01:01 +0100	[thread overview]
Message-ID: <200211012201.01990.m.c.p@wolk-project.de> (raw)
In-Reply-To: <3DC2EA6D.1070200@namesys.com>

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

On Friday 01 November 2002 21:56, Hans Reiser wrote:

Hi Hans,

> >Does not occur with ReiserFS 3 from 2.5.45 nor with any other FS doing
> > those small stress test. My personal impression is that Reiser4 is slower
> > than 3 but that might be because of above debugging.
> >I hope this helps.
> Please give us a script which is slower than v3 for us to reproduce
> with, and we will start analyzing it.
Ok. Just small ones:

1. time seq -f "%06.0f" 1 100000  | xargs touch

2. while true; do dd if=/dev/zero of=/largefile bs=16384 count=131072; done

3. attached.


ciao, Marc

[-- Attachment #2: randfiles.c --]
[-- Type: text/x-csrc, Size: 968 bytes --]

/*
 * randfiles.c
 *
 * Usage: randfiles <basename> <count> <echo?>
 *
 * For benchmarking create performance - create <count> files with
 * numbered names, in random order.  The <echo?> flag, if y, echoes
 * filenames created.  For example, 'randfiles foo 10 y' will create
 * 10 empty files with names ranging from foo0 to foo9.
 *
 * copyleft: Daniel Phillips, Oct 6, 2001, phillips@nl.linux.org
 *
 */

#include <stdlib.h>

#define swap(x, y) do { typeof(x) z = x; x = y; y = z; } while (0)

int main (int argc, char *argv[])
{
	int n = (argc > 2)? strtol(argv[2], 0, 10): 0;
	int i, size = 50, show = argc > 3 && !strncmp(argv[3], "y", 1);
	char name[size];
	int choose[n];
	for (i = 0; i < n; i++) choose[i] = i;
	
	for (i = n; i; i--)
	{
		int j = rand() % i;
		swap(choose[i-1], choose[j]);
	}
	
	for (i = 0; i < n; i++)
	{
		snprintf(name, size, "%s%i", argv[1], choose[i]);
		if (show) printf("create %s\n", name);
		close(open(name, 0100));
	}
	return 0;
}

  reply	other threads:[~2002-11-01 20:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-31 18:10 [PATCH]: reiser4 [0/8] overview Marc-Christian Petersen
2002-10-31 18:18 ` Nikita Danilov
2002-10-31 18:43   ` Marc-Christian Petersen
2002-10-31 19:21     ` Nikita Danilov
2002-11-01 20:56 ` Hans Reiser
2002-11-01 21:01   ` Marc-Christian Petersen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-31 16:02 Nikita Danilov
2002-10-31 16:07 ` Christoph Hellwig

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=200211012201.01990.m.c.p@wolk-project.de \
    --to=m.c.p@wolk-project.de \
    --cc=Nikita@namesys.com \
    --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