9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] SCSI or IDE?
@ 2003-04-01  0:09 okamoto
  2003-04-01  0:09 ` Russ Cox
  0 siblings, 1 reply; 15+ messages in thread
From: okamoto @ 2003-04-01  0:09 UTC (permalink / raw)
  To: 9fans

Thanks a lot, Russ.

Now, I'm confident to go with an IDE 120GB drive and a 6GB drive
for fossil+venti.

How about to put your message to Plan 9 wiki?

Kenji



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] SCSI or IDE?
@ 2003-04-01  0:17 okamoto
  2003-04-01  1:22 ` Russ Cox
  0 siblings, 1 reply; 15+ messages in thread
From: okamoto @ 2003-04-01  0:17 UTC (permalink / raw)
  To: 9fans

> Always feel free to edit the wiki, anyone.

Wiki is an English page, and I don't want to make it
dirty by my broken Japanglish. ☺

Kenji



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] SCSI or IDE?
@ 2003-03-31 14:14 C H Forsyth
  0 siblings, 0 replies; 15+ messages in thread
From: C H Forsyth @ 2003-03-31 14:14 UTC (permalink / raw)
  To: 9fans

>>Also, Forsyth found a debugging statement I'd left
>>in the code that was making the free block allocator
>>much slower than it needed to be.  This was about
>>a week ago now.  It speeds things up a fair amount.

removing it changed the time considerably for
an initial load of a fossil system from a mkfs archive.
it went from over 6 hours (until i stopped it),
to about 11 minutes to finish.



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] SCSI or IDE?
@ 2003-03-31 13:23 Russ Cox
  0 siblings, 0 replies; 15+ messages in thread
From: Russ Cox @ 2003-03-31 13:23 UTC (permalink / raw)
  To: 9fans

> In addtion, I'm anxious of what rog said here before.
> Something like venti+fossil is slower than kfs system on his notebook. ☺
> 
> I know kfs is very slow when compared with my real file server with SCSI
> disks.   So, if venti+fossil is slower than kfs, hmmm...

Kfs and the real file server are effectively the same.
The difference is that kfs typically uses 2MB of file
system buffer while the real file server uses all
available memory, so of course the real file server
will outperform kfs.  I think that if you gave kfs as
much memory as the real server uses, you'd see
they were comparable.  Also, your kfs might be slow
because you haven't enabled dma -- it's turned off by
default in the IDE driver.  echo dma on >/dev/sdC0/ctl
and your system might get a lot faster.

There's nothing inherently slower about kfs vs fs.

Fossil+venti is slow at uncached reads, because venti
is slow at doing reads.  

> By the way, in venti document, there is a point to make it faster by
> separating index and log.

The Venti index is a giant on-disk hash table.
Read performance is dominated by random disk
seeks -- a random seek to load the right hash
bucket followed by a random seek to get to the
right place in the arenas.  Write performance is
also dominated by random disk seeks -- one random
seek to read the right hash bucket, then a write
to the arena, then a write to the hash bucket.

If you are trying to set up a production Venti server,
then you would stripe the index across ten small
disks so that there could be ten index operations
going on at once.  Even just keeping the index
on a separate disk from the arenas is a big win
for writes: if they're on the same disk, then you have
to seek away from the hash bucket to update the arena,
and then back again, so that's three big seeks instead
of one. 

At the moment, if you want blazingly fast performance,
then fossil+venti isn't the way to go.  But if you want
respectable performance for supporting a bunch of
users running Plan 9, then it's still a plenty good option.

Again, if you use IDE disks and don't turn dma on, 
your fossil will be very very slow.  Turn on dma,
give it some memory to cache with (I'm using 24MB
on my laptop, as I suggested in a previous post,
and I like it much better), and you'll be happy.

Also, Forsyth found a debugging statement I'd left
in the code that was making the free block allocator
much slower than it needed to be.  This was about
a week ago now.  It speeds things up a fair amount.

Russ



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] SCSI or IDE?
@ 2003-03-31  9:48 okamoto
  0 siblings, 0 replies; 15+ messages in thread
From: okamoto @ 2003-03-31  9:48 UTC (permalink / raw)
  To: 9fans

> I know kfs is very slow when compared with my real file server with SCSI
> disks.

s/kfs/IDE kfs/

Kenji



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] SCSI or IDE?
@ 2003-03-31  9:45 okamoto
  0 siblings, 0 replies; 15+ messages in thread
From: okamoto @ 2003-03-31  9:45 UTC (permalink / raw)
  To: 9fans

> However, it strikes me that a lot of this is quite literally, read-only
> access.  Does fossil make sense in those environments?  Or would I be
> better off with a standalone FS+CPU server combination?

In addtion, I'm anxious of what rog said here before.
Something like venti+fossil is slower than kfs system on his notebook. ☺

I know kfs is very slow when compared with my real file server with SCSI
disks.   So, if venti+fossil is slower than kfs, hmmm...

By the way, in venti document, there is a point to make it faster by
separating index and log.

Kenji



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] SCSI or IDE?
@ 2003-03-31  3:02 okamoto
  0 siblings, 0 replies; 15+ messages in thread
From: okamoto @ 2003-03-31  3:02 UTC (permalink / raw)
  To: 9fans

> Does the IDE driver use faster one, oh well, I forgot the name 
> Ultra DMA?

ATA100 or ATA133?

kenji



^ permalink raw reply	[flat|nested] 15+ messages in thread
* [9fans] SCSI or IDE?
@ 2003-03-31  1:52 okamoto
  2003-03-31  5:37 ` Dan Cross
  2003-04-07  9:06 ` PB
  0 siblings, 2 replies; 15+ messages in thread
From: okamoto @ 2003-03-31  1:52 UTC (permalink / raw)
  To: 9fans

I'm now considering to build a new venti + fossil file server.
I can choose both of SCSI and IDE HDDs, because I have to 
buy one anyway.

Which one do you recommend?
Does the IDE driver use faster one, oh well, I forgot the name 
Ultra DMA?

Kenji



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-04-07  9:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-01  0:09 [9fans] SCSI or IDE? okamoto
2003-04-01  0:09 ` Russ Cox
  -- strict thread matches above, loose matches on Subject: below --
2003-04-01  0:17 okamoto
2003-04-01  1:22 ` Russ Cox
2003-03-31 14:14 C H Forsyth
2003-03-31 13:23 Russ Cox
2003-03-31  9:48 okamoto
2003-03-31  9:45 okamoto
2003-03-31  3:02 okamoto
2003-03-31  1:52 okamoto
2003-03-31  5:37 ` Dan Cross
2003-03-31  7:32   ` Fco.J.Ballesteros
2003-03-31  7:59     ` Nigel Roles
2003-03-31  8:40       ` Fco.J.Ballesteros
2003-04-07  9:06 ` PB

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).