9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] fossil speed
Date: Wed, 26 Jan 2005 22:26:12 +0000	[thread overview]
Message-ID: <1cc4d6a83793875fa8fdf894eceec081@vitanuova.com> (raw)
In-Reply-To: <bcad6afcd37a3dc9f5ec58a336592223@plan9.ucalgary.ca>

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

that's not too bad.

i fancy that the big difference i was seeing might have
been to do with the fact that i was creating (or destroying)
tens of thousands of tiny files, whereas your example contains
only three. also, isn't gzip somewhat more compute-intensive
than gunzip, in which case maybe what you were doing
was more cpu-bound?

one example:

	linux% time rm -r mozilla
	
	real	0m3.621s
	user	0m0.090s
	sys	0m1.180s
	linux% 

an equivalent under fossil, removing only half that
number of files took more than 5 minutes.

another:

	linux% ls -l *.bz2
	-rw-r--r--    1 rog      rog      32686249 Jan 26 20:54 firefox.tar.bz2
	linux% time sh -c 'bunzip2 < firefox.tar.bz2 | dd 'bs=512k' | tar xf -'
	
	real	1m23.266s
	user	0m36.600s
	sys	0m5.050s
	linux% 

(the big blocksize dd is there to try and reduce disk contention
between the bunzip process and the tar write).

when i did this using fossil i killed it after an hour had passed.
thanks for pointing out the dma/rwm - i hadn't in fact enabled these
when network booting.  however, even after enabling them, it still
going to take 20-40 minutes (estimate varies a bit)

it might very well be my slow disk, but i'd like to hear how other
people's systems compare.

i wonder if perhaps the rather complex fossil/venti directory structure
might be slowing things down?  also, my fossil cache size is 2000
blocks.  i would imagine this'd be sufficient to cache
parent-directory meta data, but perhaps i'm wrong.

[-- Attachment #2: Type: message/rfc822, Size: 2922 bytes --]

From: andrey mirtchovski <mirtchov@cpsc.ucalgary.ca>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] fossil speed
Date: Wed, 26 Jan 2005 14:36:29 -0700
Message-ID: <bcad6afcd37a3dc9f5ec58a336592223@plan9.ucalgary.ca>

> has anyone else found fossil to be very slow?  even when it's not
> using venti at all (e.g.  extracting a large tar archive).
> 

"almost" identical machines using ide disks (2.0 vs 2.6ghz cpu's):

on plan9:

	plan9% time tar cv xen | gzip > xen.tgz
	a xen/9pccpu 3189 blocks
	a xen/etc_xen_plan9 7 blocks
	a xen/kfs_root_image.gz 298211 blocks
	0.42u 6.48s 56.15r 	 tar cv xen
	plan9%

then this very same file was copied and untarred on the linux box:

	$ time tar cvf - xen | gzip > xen.tgz
	xen/
	xen/9pccpu
	xen/etc_xen_plan9
	xen/kfs_root_image.gz
	
	real    0m29.123s
	user    0m22.805s
	sys     0m2.635s
	$ 

i have both rwm and dma turned on.  the disks are IDE in both cases.
for Plan 9, fossil is mounted through a devfs mirror of two disks,
which should slow it down even more.

andrey

  parent reply	other threads:[~2005-01-26 22:26 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-26  2:00 [9fans] browse /sys/src YAMANASHI Takeshi
2005-01-26  2:27 ` Kenji Okamoto
2005-01-26  2:31   ` Michael H. Collins
2005-01-26  2:45     ` boyd, rounin
2005-01-26  3:50     ` Russ Cox
2005-01-26  4:28       ` Kenji Okamoto
2005-01-26  4:39         ` Kenji Okamoto
2005-01-26  8:49         ` Skip Tavakkolian
2005-01-26 10:00           ` Matthias Teege
2005-01-26 21:32       ` [9fans] fossil speed rog
2005-01-26 21:36         ` andrey mirtchovski
2005-01-26 22:09           ` Charles Forsyth
2005-01-26 22:18           ` andrey mirtchovski
2005-01-26 22:22           ` andrey mirtchovski
2005-01-26 22:48             ` rog
2005-01-26 22:26           ` rog [this message]
2005-01-26 22:13             ` Charles Forsyth
2005-01-26 22:15               ` Charles Forsyth
2005-01-26 22:40             ` andrey mirtchovski
2005-01-27  2:47               ` Russ Cox
2005-01-27 19:20                 ` rog
2005-01-27  7:51             ` Fco. J. Ballesteros
2005-01-27 21:09               ` geoff
2005-01-27 21:23                 ` andrey mirtchovski
2005-01-27 21:35                   ` Russ Cox
2005-01-27 22:28                   ` geoff
2005-01-28  2:11                     ` Kenji Okamoto
2005-01-28  4:08                       ` geoff
2005-01-28  4:39                         ` Kenji Okamoto
2005-01-28  4:54                           ` geoff
2005-01-27  3:39         ` boyd, rounin
2005-01-26  9:55 ` [9fans] browse /sys/src Fco. J. Ballesteros

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=1cc4d6a83793875fa8fdf894eceec081@vitanuova.com \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /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).