All of lore.kernel.org
 help / color / mirror / Atom feed
* External journals and NVRAM devices
@ 2002-11-01  5:38 Jeremy Howard
  2002-11-01  6:29 ` Andreas Dilger
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Jeremy Howard @ 2002-11-01  5:38 UTC (permalink / raw)
  To: ReiserFS List

Hi all,

I'm looking at buying solid state drives / NVRAM drives for our servers
to hold an external ReiserFS journal.

We are using 2.4.20pre11, and Chris Mason's data logging patches.

I'm looking for any tips on how large the journal is when using
data=journal, and whether the external log patches are stable and work OK
in data=journal mode. Is there a command to show the current journal
size? Does the size vary over time? We need to ensure we buy a card with
enough memory so this is important information for us.

Is anyone currently using NVRAM for the journal? If so, how do you find
the performance of this configuration?

TIA,
   Jeremy



^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: External journals and NVRAM devices
@ 2002-11-01  7:29 JP Howard
  2002-11-01  7:49 ` Serge Kolodeznyh
  2002-11-01 15:10 ` Edward Shishkin
  0 siblings, 2 replies; 21+ messages in thread
From: JP Howard @ 2002-11-01  7:29 UTC (permalink / raw)
  To: Andreas Dilger; +Cc: ReiserFS List

On Thu, 31 Oct 2002 23:29:57 -0700, "Andreas Dilger"
<adilger@clusterfs.com> said:
> When people were testing this with ext3 external journals, they just
> used a RAMDISK for getting the performance measurements.  Obviously,
> (I hope ;-) this is not something you can do in real life, but for
> performance measurement it is OK.
> 
> Most people found that the ramdisk (and presumably the NVRAM device too)
> didn't perform much, if any, better than having a separate fast disk for
> the journal, because you are doing sequential I/O to the journal anyways.
<...>

Yes, I'd heard something like this. Our servers aren't going to have a
spare drive bay, I think, so a PCI NVRAM card may turn out to be a more
economical solution (although I haven't received quotes back from the
vendors yet...).

If I do find a spare drive bay, how unsafe would it be to use a single
drive, rather than RAID 1 mirroring? What does ReiserFS do if it gets an
IO error on the journal device? Could that bring down our whole system? I
assume that it would--in which case using NVRAM would actually save two
drive bays, since it should be reliable enough to not need redundency.

So, how big is a ReiserFS journal when using data=journal anyways?...

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: External journals and NVRAM devices
@ 2002-11-01 20:38 JP Howard
  2002-11-01 20:57 ` Valdis.Kletnieks
  2002-11-01 21:57 ` Edward Shishkin
  0 siblings, 2 replies; 21+ messages in thread
From: JP Howard @ 2002-11-01 20:38 UTC (permalink / raw)
  To: Edward Shishkin; +Cc: Andreas Dilger, ReiserFS List

On Fri, 01 Nov 2002 17:30:18 +0300, "Edward Shishkin"
<edward@namesys.com> said:
> Yes. And the experience said that external logging brings a bit better
> effect for this journal mode then for other ones. 
> 
> > >Is there a command to show the current journal size? 
> 
> #debugreiserfs main_device
> 
Hmmm...
----
Blocksize: 4096
<...>
Journal parameters:
<...>
	Size 8193 blocks (including 1 for journal header) (first block
	18)
----

So my journal is only 32k? With Ext3 I used 192MB journal in data=journal
mode. Should I be using a size around that when using data=journal with
ReiserFS too? Why is the default so low?--is it because the data logging
patches don't automatically change it?
> 
> The journal size remains the same unless you specify another one by
> reiserfstune utility.  
> 
And non-standard journal sizes don't work under 2.4, right? Or are there
patches for this that are reasonably stable?

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: External journals and NVRAM devices
@ 2002-11-01 21:37 JP Howard
  2002-11-04 13:16 ` Chris Mason
  2002-11-05 21:23 ` reiser
  0 siblings, 2 replies; 21+ messages in thread
From: JP Howard @ 2002-11-01 21:37 UTC (permalink / raw)
  To: Edward Shishkin, Andreas Dilger, ReiserFS List, Oleg Drokin

On Sat, 02 Nov 2002 00:58:40 +0300, "Edward Shishkin"
<edward@namesys.com> said:
> > > ----
> > > Blocksize: 4096
> > > <...>
> > > Journal parameters:
> > > <...>
> > >         Size 8193 blocks (including 1 for journal header) (first block
> > >         18)
> > > ----
> > >
> > > So my journal is only 32k?
> > 
> > Yes. Standard journal can be only 32K.
> 
> Sorry, 32M!
> 
Apologies to all for my lack of reading comprehension. Yes, of course
that shows 32M...

When the 2.4.20 journal-size patches are out I'll try and do some
benchmarking with larger journals on NVRAM devices. We use Cyrus IMAPd
which is very fsync intensive, so I expect an NVRAM journal may make a
big difference...

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: External journals and NVRAM devices
@ 2002-11-05 22:12 JP Howard
  0 siblings, 0 replies; 21+ messages in thread
From: JP Howard @ 2002-11-05 22:12 UTC (permalink / raw)
  To: Hans Reiser, Chris Mason
  Cc: Edward Shishkin, Andreas Dilger, ReiserFS List, Oleg Drokin

On Tue, 05 Nov 2002 13:23:30 -0800, "reiser" <reiser@namesys.com> said:
> Chris Mason wrote:
> >The data logging patches include a ton of reiserfs writeback changes
> >that allow good performance with small transactions (like mail server
> >workloads) and small log sizes.
> >
> >With ext3, a 128M or bigger log can really improve performance because
> >so much of the writeback is done through bdflush/kupdate. 
> >
> Please explain the because clause of the sentence above in more detail.
> 
I've just ordered some 1GB Umem NVRAM cards (they're battery-backed RAM
cards that look to Linux like a standard block device). I'd like to use
them to improve performance as much as possible.

Our application is fsync intensive (Cyrus IMAPd server). We have heaps of
RAM, NVRAM, and CPU to spare, but are IO bound. Is there any way to tune
ReiserFS data=journal to improve IO performance by taking advantage of
our spare RAM/NVRAM?

TIA for any info,
  Jeremy

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

end of thread, other threads:[~2002-11-06 20:42 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-01  5:38 External journals and NVRAM devices Jeremy Howard
2002-11-01  6:29 ` Andreas Dilger
2002-11-01 14:30   ` Edward Shishkin
2002-11-01 20:40 ` Hans Reiser
2002-11-01 21:45   ` Edward Shishkin
2002-11-01 20:41 ` Hans Reiser
2002-11-02  3:04   ` Andrew Clausen
  -- strict thread matches above, loose matches on Subject: below --
2002-11-01  7:29 JP Howard
2002-11-01  7:49 ` Serge Kolodeznyh
2002-11-01 15:33   ` Len Sorensen
2002-11-01 15:10 ` Edward Shishkin
2002-11-01 20:38 JP Howard
2002-11-01 20:57 ` Valdis.Kletnieks
2002-11-01 21:57 ` Edward Shishkin
2002-11-01 21:58   ` Edward Shishkin
2002-11-01 21:37 JP Howard
2002-11-04 13:16 ` Chris Mason
2002-11-05 21:23 ` reiser
2002-11-06 20:18   ` Andreas Dilger
2002-11-06 20:42     ` Chris Mason
2002-11-05 22:12 JP Howard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.