Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion mnesia sync_transactions not fsynced?

Received: by 10.205.116.5 with SMTP id fg5mr1214252bkc.3.1319972397259;
        Sun, 30 Oct 2011 03:59:57 -0700 (PDT)
X-BeenThere: erlang-programming@googlegroups.com
Received: by 10.204.26.200 with SMTP id f8ls3497723bkc.0.gmail; Sun, 30 Oct
 2011 03:59:56 -0700 (PDT)
Received: by 10.204.156.155 with SMTP id x27mr1196243bkw.7.1319972396810;
        Sun, 30 Oct 2011 03:59:56 -0700 (PDT)
Received: by 10.204.156.155 with SMTP id x27mr1196242bkw.7.1319972396796;
        Sun, 30 Oct 2011 03:59:56 -0700 (PDT)
Return-Path: <erlang-questions-boun...@erlang.org>
Received: from hades.cslab.ericsson.net (hades.cslab.ericsson.net. [192.121.151.104])
        by gmr-mx.google.com with ESMTP id a16si2230209bku.3.2011.10.30.03.59.56;
        Sun, 30 Oct 2011 03:59:56 -0700 (PDT)
Received-SPF: pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) client-ip=192.121.151.104;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) smtp.mail=erlang-questions-boun...@erlang.org; dkim=neutral (body hash did not verify) header...@gmail.com
Received: from hades.cslab.ericsson.net (hades [192.121.151.104])
	by hades.cslab.ericsson.net (Postfix) with ESMTP id 7B22F5C050;
	Sun, 30 Oct 2011 11:59:50 +0100 (CET)
X-Original-To: erlang-questi...@erlang.org
Delivered-To: erlang-questi...@erlang.org
Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com
 [209.85.212.53])
 by hades.cslab.ericsson.net (Postfix) with ESMTP id DCF3F5C008
 for <erlang-questi...@erlang.org>; Sun, 30 Oct 2011 11:59:48 +0100 (CET)
Received: by vws19 with SMTP id 19so512207vws.40
 for <erlang-questi...@erlang.org>; Sun, 30 Oct 2011 03:59:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type;
 bh=OamV17XYZaWB9KqGdJNGcNnTS4KzmNmqTOum4UfbHmo=;
 b=CgYrf0EvCIEwBh+lykVYTput3IYYWIVfaZSLP/CD5FiEq84hWgyugdhHkNml9zClcN
 EQ7DtUX4e8G+MSJVTkbRuRSKUTkpoKontnj4RAHM5bNhwJDmuAMnDsC4ySQY696uGOor
 WELmNa5TL35GAKVCxee2CqIqpfk1RS/8uLt0w=
MIME-Version: 1.0
Received: by 10.220.65.16 with SMTP id g16mr1685035vci.68.1319972387842; Sun,
 30 Oct 2011 03:59:47 -0700 (PDT)
Received: by 10.220.0.81 with HTTP; Sun, 30 Oct 2011 03:59:47 -0700 (PDT)
In-Reply-To: <CAJgyHGO=3Pt+HtkrTou89Y96dYXUum33uCyQz02y8GrZ=bk...@mail.gmail.com>
References: <4EA93DE3.1060...@rabbitmq.com>
 <CAJgyHGM4z5H57rUrZTc6hJkMkwFcVROShrHkf_fH+hvN6b9...@mail.gmail.com>
 <CANX4uuN9tF-XXQ7xeWSaYXrGmwNE-2T0zA2JVh0Tk9xKH+V...@mail.gmail.com>
 <CAJgyHGO=3Pt+HtkrTou89Y96dYXUum33uCyQz02y8GrZ=bk...@mail.gmail.com>
Date: Sun, 30 Oct 2011 11:59:47 +0100
Message-ID: <CANX4uuO0SZjJmOFWo2Mnx6eTgf_GDjYD=2iwiG7qND+NBZN...@mail.gmail.com>
From: Dan Gudmundsson <dan...@gmail.com>
To: Jon Watte <jwa...@gmail.com>
Cc: erlang-questi...@erlang.org
Subject: Re: [erlang-questions] mnesia sync_transactions not fsynced?
X-BeenThere: erlang-questi...@erlang.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: General Erlang/OTP discussions <erlang-questions.erlang.org>
List-Unsubscribe: <http://erlang.org/mailman/options/erlang-questions>,
 <mailto:erlang-questions-requ...@erlang.org?subject=unsubscribe>
List-Archive: <http://erlang.org/pipermail/erlang-questions>
List-Post: <mailto:erlang-questi...@erlang.org>
List-Help: <mailto:erlang-questions-requ...@erlang.org?subject=help>
List-Subscribe: <http://erlang.org/mailman/listinfo/erlang-questions>,
 <mailto:erlang-questions-requ...@erlang.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: erlang-questions-boun...@erlang.org
Sender: erlang-questions-boun...@erlang.org

As far as mnesia is concerned it is logged to disc. It have left
mnesia call chain and it's nothing
more mnesia can do, except sync the disk.
Which is a performance penalty that is not acceptable per transaction.

I have been reminded why the disc_log cache was implemented, when you
push transactions
in a short loop, you are pushing more transaction then what can be
pushed to disc.
So that everything was stuck in disc_logs message queue.
The way to improve that was to write larger chunks to the disc.
So removing the timeout in disc_log will probably not change the
situation only that message
will be stuck on message queue instead. It will still not be written
to the disc fast enough.

/Dan

On Sun, Oct 30, 2011 at 2:24 AM, Jon Watte <jwa...@gmail.com> wrote:
>
>
> On Fri, Oct 28, 2011 at 12:18 AM, Dan Gudmundsson <dan...@gmail.com> wrote:
>>
>> Disk log cashes writes as well so you can loose many writes when
>> halting the process.
>>
>> /Dan
>>
>>
>
>
> This means that the implementation does not match the documentation. I think
> one or the other should change :-)
> Or the documentation writers have another understanding of the words "logged
> to disk" than I do :-)
> Sincerely,
> jw
>
>
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions